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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp

Issue 2041363002: Move isColorKeyword out of CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Alternative using StyleColor Created 4 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
Index: third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
index 7467c610b3ca6b023483e32c2fc81298ca8d2b67..b4e834106660a9cb4b98eda4312a4ca50f1b1f57 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp
@@ -8,8 +8,6 @@
#include "core/css/CSSColorValue.h"
#include "core/css/CSSStringValue.h"
#include "core/css/CSSValuePair.h"
-// TODO(timloh): Remove this dependency
-#include "core/css/parser/CSSPropertyParser.h"
namespace blink {
@@ -447,7 +445,7 @@ static bool parseColorFunction(CSSParserTokenRange& range, RGBA32& result)
CSSValue* consumeColor(CSSParserTokenRange& range, CSSParserMode cssParserMode, bool acceptQuirkyColors)
{
CSSValueID id = range.peek().id();
- if (CSSPropertyParser::isColorKeyword(id)) {
+ if (StyleColor::isColorKeyword(id)) {
if (!isValueAllowedInMode(id, cssParserMode))
return nullptr;
return consumeIdent(range);

Powered by Google App Engine
This is Rietveld 408576698