#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"
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.
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;
}