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

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

Issue 1319343004: Add property parser code path based on CSSParserTokenRange (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tests Created 5 years, 4 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/css/parser/CSSPropertyParser.h
diff --git a/Source/core/css/parser/CSSPropertyParser.h b/Source/core/css/parser/CSSPropertyParser.h
index 4f199bb0754e1cc97e8fbe871cdbc1374f578949..ea3a897948d7080e7310df11b408f7be9ed651dd 100644
--- a/Source/core/css/parser/CSSPropertyParser.h
+++ b/Source/core/css/parser/CSSPropertyParser.h
@@ -39,6 +39,7 @@ class CSSGradientValue;
class CSSGridLineNamesValue;
class CSSLineBoxContainValue;
struct CSSParserString;
+class CSSParserTokenRange;
struct CSSParserValue;
class CSSParserValueList;
class CSSPrimitiveValue;
@@ -72,7 +73,7 @@ public:
};
static bool parseValue(CSSPropertyID, bool important,
- CSSParserValueList*, const CSSParserContext&,
+ CSSParserValueList*, CSSParserTokenRange*, const CSSParserContext&,
WillBeHeapVector<CSSProperty, 256>&, StyleRule::Type);
static bool isSystemColor(CSSValueID);
@@ -83,6 +84,7 @@ private:
WillBeHeapVector<CSSProperty, 256>&, StyleRule::Type);
bool parseValue(CSSPropertyID, bool important);
+ PassRefPtrWillBeRawPtr<CSSValue> parseSingleValue(CSSPropertyID);
bool inShorthand() const { return m_inParseShorthand; }
bool inQuirksMode() const { return isQuirksModeBehavior(m_context.mode()); }
@@ -366,6 +368,7 @@ private:
private:
// Inputs:
CSSParserValueList* m_valueList;
+ CSSParserTokenRange* m_range;
const CSSParserContext& m_context;
// Outputs:

Powered by Google App Engine
This is Rietveld 408576698