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

Unified Diff: Source/core/css/parser/CSSParser.h

Issue 1182933004: Split up inspector interfaces to CSSParser::parse(Sheet/DeclarationList) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/core/css/StyleSheetContents.cpp ('k') | Source/core/css/parser/CSSParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSParser.h
diff --git a/Source/core/css/parser/CSSParser.h b/Source/core/css/parser/CSSParser.h
index 5b94c4b567e0043a9178691f40839a8e110149c0..f728ca1e6beace0195deb9a83edf74ac07ea3a64 100644
--- a/Source/core/css/parser/CSSParser.h
+++ b/Source/core/css/parser/CSSParser.h
@@ -29,11 +29,9 @@ class CORE_EXPORT CSSParser {
public:
// As well as regular rules, allows @import and @namespace but not @charset
static PassRefPtrWillBeRawPtr<StyleRuleBase> parseRule(const CSSParserContext&, const String&);
- // TODO(timloh): Split into parseSheet and parseSheetForInspector
- static void parseSheet(const CSSParserContext&, StyleSheetContents*, const String&, CSSParserObserver*);
+ static void parseSheet(const CSSParserContext&, StyleSheetContents*, const String&);
static void parseSelector(const CSSParserContext&, const String&, CSSSelectorList&);
- // TODO(timloh): Split into parseDeclarationList and parseDeclarationListForInspector
- static bool parseDeclarationList(const CSSParserContext&, MutableStylePropertySet*, const String&, CSSParserObserver*);
+ static bool parseDeclarationList(const CSSParserContext&, MutableStylePropertySet*, const String&);
// Returns whether anything was changed.
static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedProperty, const String&, bool important, CSSParserMode, StyleSheetContents*);
@@ -55,6 +53,9 @@ public:
static bool parseSystemColor(RGBA32& color, const String&);
static StyleColor colorFromRGBColorString(const String&);
+ static void parseSheetForInspector(const CSSParserContext&, const String&, CSSParserObserver&);
+ static void parseDeclarationListForInspector(const CSSParserContext&, const String&, CSSParserObserver&);
+
private:
static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedProperty, const String&, bool important, const CSSParserContext&);
};
« no previous file with comments | « Source/core/css/StyleSheetContents.cpp ('k') | Source/core/css/parser/CSSParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698