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

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

Issue 1145383003: strict WIP Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 4 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSParser.cpp
index 151f5cb6f3ed637e9ef965064d7ef435721151dd..6125fc29d20c2d7730eda032d50a3112441d4ede 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParser.cpp
@@ -145,10 +145,10 @@ bool CSSParser::parseColor(Color& color, const String& string, bool strict)
return true;
}
- RefPtrWillBeRawPtr<CSSValue> value = CSSParserFastPaths::parseColor(string, strict ? HTMLStandardMode : HTMLQuirksMode);
- // TODO(timloh): Why is this always strict mode?
+ CSSParserContext context(strict ? HTMLStandardMode : HTMLQuirksMode, 0);
+ RefPtrWillBeRawPtr<CSSValue> value = CSSParserFastPaths::parseColor(string, context.mode());
if (!value)
- value = parseSingleValue(CSSPropertyColor, string, strictCSSParserContext());
+ value = parseSingleValue(CSSPropertyColor, string, context);
if (!value || !value->isColorValue())
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698