| Index: Source/core/css/StyleSheetContents.cpp
|
| diff --git a/Source/core/css/StyleSheetContents.cpp b/Source/core/css/StyleSheetContents.cpp
|
| index dca9ceae2a8d7843a8743e7429efbf7b823c5dcf..9a602a05ea7560a6457c7c50ca16bebc552ca9b2 100644
|
| --- a/Source/core/css/StyleSheetContents.cpp
|
| +++ b/Source/core/css/StyleSheetContents.cpp
|
| @@ -21,12 +21,12 @@
|
| #include "config.h"
|
| #include "core/css/StyleSheetContents.h"
|
|
|
| -#include "core/css/parser/BisonCSSParser.h"
|
| #include "core/css/CSSStyleSheet.h"
|
| #include "core/css/MediaList.h"
|
| #include "core/css/StylePropertySet.h"
|
| #include "core/css/StyleRule.h"
|
| #include "core/css/StyleRuleImport.h"
|
| +#include "core/css/parser/CSSParser.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/Node.h"
|
| #include "core/dom/StyleEngine.h"
|
| @@ -327,8 +327,7 @@ void StyleSheetContents::parseAuthorStyleSheet(const CSSStyleSheetResource* cach
|
| String sheetText = cachedStyleSheet->sheetText(enforceMIMEType, &hasValidMIMEType);
|
|
|
| CSSParserContext context(parserContext(), UseCounter::getFrom(this));
|
| - BisonCSSParser p(context);
|
| - p.parseSheet(this, sheetText, TextPosition::minimumPosition(), 0, true);
|
| + CSSParser::parseSheet(context, this, sheetText, TextPosition::minimumPosition(), 0, true);
|
|
|
| // If we're loading a stylesheet cross-origin, and the MIME type is not standard, require the CSS
|
| // to at least start with a syntactically valid CSS rule.
|
| @@ -350,8 +349,7 @@ bool StyleSheetContents::parseString(const String& sheetText)
|
| bool StyleSheetContents::parseStringAtPosition(const String& sheetText, const TextPosition& startPosition, bool createdByParser)
|
| {
|
| CSSParserContext context(parserContext(), UseCounter::getFrom(this));
|
| - BisonCSSParser p(context);
|
| - p.parseSheet(this, sheetText, startPosition, 0, createdByParser);
|
| + CSSParser::parseSheet(context, this, sheetText, startPosition, 0, createdByParser);
|
|
|
| return true;
|
| }
|
|
|