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

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: Address review comments Created 5 years, 3 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 09d58231b296046b555a6546cd167bb86d586b97..d86c3bb1b56d1a6e49f62c40b83af64525ace56d 100644
--- a/Source/core/css/parser/CSSPropertyParser.h
+++ b/Source/core/css/parser/CSSPropertyParser.h
@@ -26,6 +26,7 @@
#include "core/css/CSSGradientValue.h"
#include "core/css/CSSGridTemplateAreasValue.h"
#include "core/css/CSSPropertySourceData.h"
+#include "core/css/parser/CSSParserTokenRange.h"
#include "platform/Length.h"
namespace blink {
@@ -71,17 +72,18 @@ public:
};
static bool parseValue(CSSPropertyID, bool important,
- CSSParserValueList*, const CSSParserContext&,
+ const CSSParserTokenRange&, const CSSParserContext&,
WillBeHeapVector<CSSProperty, 256>&, StyleRule::Type);
static bool isSystemColor(CSSValueID);
static bool isColorKeyword(CSSValueID);
private:
- CSSPropertyParser(CSSParserValueList*, const CSSParserContext&,
+ CSSPropertyParser(CSSParserValueList*, const CSSParserTokenRange&, const CSSParserContext&,
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()); }
@@ -364,6 +366,7 @@ private:
private:
// Inputs:
CSSParserValueList* m_valueList;
+ CSSParserTokenRange m_range;
const CSSParserContext& m_context;
// Outputs:

Powered by Google App Engine
This is Rietveld 408576698