diff options
author | Jeremy Henty <onepoint@starurchin.org> | 2010-12-18 17:18:13 +0000 |
---|---|---|
committer | Jeremy Henty <onepoint@starurchin.org> | 2010-12-18 17:18:13 +0000 |
commit | b0bdd878746015a9c03904cea587e46f27b971c9 (patch) | |
tree | e4b9c62bbddccce3576b8604dd886202f3d7fb5e | |
parent | fdaee88f5528b9c22b05b54e12c2e56c873c5837 (diff) |
CssParser::parseImport(): call ignoreStatement().
-rw-r--r-- | src/cssparser.cc | 7 |
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); |