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

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

Issue 2607403002: Disallow setting invalid values for registered properties via CSSOM (Closed)
Patch Set: fix comments Created 3 years, 12 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/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 a6f4e2c1f7b5622bca790d6295d40245f42463aa..b0c557b4aa6e67c6121052b44112280a222c9f0e 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParser.cpp
@@ -109,6 +109,7 @@ MutableStylePropertySet::SetResult CSSParser::parseValue(
MutableStylePropertySet::SetResult CSSParser::parseValueForCustomProperty(
MutableStylePropertySet* declaration,
const AtomicString& propertyName,
+ const PropertyRegistry* registry,
const String& value,
bool important,
StyleSheetContents* styleSheet,
@@ -125,8 +126,9 @@ MutableStylePropertySet::SetResult CSSParser::parseValueForCustomProperty(
context = styleSheet->parserContext();
context.setMode(parserMode);
}
- return CSSParserImpl::parseVariableValue(
- declaration, propertyName, value, important, context, isAnimationTainted);
+ return CSSParserImpl::parseVariableValue(declaration, propertyName, registry,
+ value, important, context,
+ isAnimationTainted);
}
ImmutableStylePropertySet* CSSParser::parseCustomPropertySet(
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSParser.h ('k') | third_party/WebKit/Source/core/css/parser/CSSParserImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698