summaryrefslogtreecommitdiff
path: root/src/cssparser.cc
diff options
context:
space:
mode:
authorJeremy Henty <onepoint@starurchin.org>2010-12-18 17:18:13 +0000
committerJeremy Henty <onepoint@starurchin.org>2010-12-18 17:18:13 +0000
commitb0bdd878746015a9c03904cea587e46f27b971c9 (patch)
treee4b9c62bbddccce3576b8604dd886202f3d7fb5e /src/cssparser.cc
parentfdaee88f5528b9c22b05b54e12c2e56c873c5837 (diff)
CssParser::parseImport(): call ignoreStatement().
Diffstat (limited to 'src/cssparser.cc')
-rw-r--r--src/cssparser.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc
index 16efc487..5886a1e1 100644
--- a/src/cssparser.cc
+++ b/src/cssparser.cc
@@ -1430,12 +1430,7 @@ void CssParser::parseImport(DilloHtml *html, DilloUrl *baseUrl)
else if (ttype == CSS_TK_STRING)
urlStr = dStrdup (tval);
- /* Skip all tokens until the expected end. */
- while (!(ttype == CSS_TK_END ||
- (ttype == CSS_TK_CHAR && (tval[0] == ';'))))
- nextToken();
-
- nextToken();
+ ignoreStatement();
if (urlStr) {
MSG("CssParser::parseImport(): @import %s\n", urlStr);