Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1091)

Unified Diff: Source/core/inspector/InspectorStyleSheet.cpp

Issue 112933010: Split out CSSParser public API Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/InspectorStyleSheet.cpp
diff --git a/Source/core/inspector/InspectorStyleSheet.cpp b/Source/core/inspector/InspectorStyleSheet.cpp
index d918d2f71ee54043e56eb51b856e5d42f9bd840c..c642c2b17cb2f8a02b5caefdb07d9e1c7867da25 100644
--- a/Source/core/inspector/InspectorStyleSheet.cpp
+++ b/Source/core/inspector/InspectorStyleSheet.cpp
@@ -33,7 +33,7 @@
#include "bindings/v8/ScriptRegexp.h"
#include "core/css/CSSKeyframesRule.h"
#include "core/css/CSSMediaRule.h"
-#include "core/css/parser/BisonCSSParser.h"
+#include "core/css/parser/CSSParser.h"
#include "core/css/CSSRuleList.h"
#include "core/css/CSSStyleRule.h"
#include "core/css/CSSStyleSheet.h"
@@ -132,10 +132,10 @@ PassRefPtr<WebCore::CSSRuleSourceData> ParsedStyleSheet::ruleSourceDataAt(unsign
namespace WebCore {
-static PassOwnPtr<BisonCSSParser> createCSSParser(Document* document)
+static PassOwnPtr<CSSParser> createCSSParser(Document* document)
{
UseCounter* counter = 0;
- return adoptPtr(new BisonCSSParser(document ? CSSParserContext(*document) : strictCSSParserContext(), counter));
+ return adoptPtr(new CSSParser(document ? CSSParserContext(*document) : strictCSSParserContext(), counter));
}
namespace {
@@ -178,7 +178,7 @@ private:
RuleSourceDataList* m_result;
RuleSourceDataList m_currentRuleDataStack;
RefPtr<CSSRuleSourceData> m_currentRuleData;
- OwnPtr<BisonCSSParser> m_commentParser;
+ OwnPtr<CSSParser> m_commentParser;
unsigned m_propertyRangeStart;
unsigned m_selectorRangeStart;
unsigned m_commentRangeStart;
@@ -409,7 +409,7 @@ void StyleSheetHandler::endComment(unsigned offset)
m_commentParser = createCSSParser(m_document);
RuleSourceDataList sourceData;
- // FIXME: Use another subclass of BisonCSSParser::SourceDataHandler and assert that
+ // FIXME: Use another subclass of CSSParserObserver and assert that
// no comments are encountered (will not need m_document and m_styleSheetContents).
StyleSheetHandler handler(commentText, m_document, m_styleSheetContents, &sourceData);
RefPtr<MutableStylePropertySet> tempMutableStyle = MutableStylePropertySet::create();

Powered by Google App Engine
This is Rietveld 408576698