Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/PropertyRegistration.cpp |
| diff --git a/third_party/WebKit/Source/core/css/PropertyRegistration.cpp b/third_party/WebKit/Source/core/css/PropertyRegistration.cpp |
| index ed25ec77536f94dced75c8e13c3f68c4ab15d0a5..c0d18570d0dab2d2a2d1d4bc9e909cd959a67bed 100644 |
| --- a/third_party/WebKit/Source/core/css/PropertyRegistration.cpp |
| +++ b/third_party/WebKit/Source/core/css/PropertyRegistration.cpp |
| @@ -10,6 +10,7 @@ |
| #include "core/css/CSSVariableReferenceValue.h" |
| #include "core/css/PropertyDescriptor.h" |
| #include "core/css/PropertyRegistry.h" |
| +#include "core/css/parser/CSSParserContext.h" |
| #include "core/css/parser/CSSTokenizer.h" |
| #include "core/css/parser/CSSVariableParser.h" |
| #include "core/dom/Document.h" |
| @@ -107,8 +108,8 @@ void PropertyRegistration::registerProperty( |
| if (descriptor.hasInitialValue()) { |
| CSSTokenizer tokenizer(descriptor.initialValue()); |
| bool isAnimationTainted = false; |
| - const CSSValue* initial = |
| - syntaxDescriptor.parse(tokenizer.tokenRange(), isAnimationTainted); |
| + const CSSValue* initial = syntaxDescriptor.parse( |
| + tokenizer.tokenRange(), strictCSSParserContext(), isAnimationTainted); |
|
Timothy Loh
2017/01/16 00:33:36
This is probably not right, I think we need a prop
fs
2017/01/16 13:18:01
Thanks, fixed.
|
| if (!initial) { |
| exceptionState.throwDOMException( |
| SyntaxError, |