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

Unified Diff: third_party/WebKit/Source/core/css/PropertyRegistration.cpp

Issue 2632083002: Provide a CSSParserContext to CSSSyntaxDescriptor (Closed)
Patch Set: Created 3 years, 11 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/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,
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSVariableData.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698