Index: Source/core/html/canvas/CanvasStyle.cpp |
diff --git a/Source/core/html/canvas/CanvasStyle.cpp b/Source/core/html/canvas/CanvasStyle.cpp |
index 28877cd99ef4debd23e9d4d7ee2e606db7cac509..f0c2801dea4fa0386da20e56fe2f14dfe6c1c14b 100644 |
--- a/Source/core/html/canvas/CanvasStyle.cpp |
+++ b/Source/core/html/canvas/CanvasStyle.cpp |
@@ -46,7 +46,8 @@ static ColorParseResult parseColor(RGBA32& parsedColor, const String& colorStrin |
{ |
if (equalIgnoringCase(colorString, "currentcolor")) |
return ParsedCurrentColor; |
- if (BisonCSSParser::parseColor(parsedColor, colorString)) |
+ const bool useStrictParsing = true; |
+ if (BisonCSSParser::parseColor(parsedColor, colorString, useStrictParsing)) |
return ParsedRGBA; |
if (BisonCSSParser::parseSystemColor(parsedColor, colorString)) |
return ParsedSystemColor; |