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

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

Issue 2607403002: Disallow setting invalid values for registered properties via CSSOM (Closed)
Patch Set: 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/StylePropertySet.cpp
diff --git a/third_party/WebKit/Source/core/css/StylePropertySet.cpp b/third_party/WebKit/Source/core/css/StylePropertySet.cpp
index 3f1e38898552e389336ba75cba2d29bca3c6afab..2446f3f6b1069507df4b23b9ba1731c189efac36 100644
--- a/third_party/WebKit/Source/core/css/StylePropertySet.cpp
+++ b/third_party/WebKit/Source/core/css/StylePropertySet.cpp
@@ -322,6 +322,7 @@ MutableStylePropertySet::SetResult MutableStylePropertySet::setProperty(
MutableStylePropertySet::SetResult MutableStylePropertySet::setProperty(
const AtomicString& customPropertyName,
+ const PropertyRegistry* registry,
const String& value,
bool important,
StyleSheetContents* contextStyleSheet,
@@ -331,9 +332,9 @@ MutableStylePropertySet::SetResult MutableStylePropertySet::setProperty(
bool didChange = removeProperty(customPropertyName);
return MutableStylePropertySet::SetResult{didParse, didChange};
}
- return CSSParser::parseValueForCustomProperty(this, customPropertyName, value,
- important, contextStyleSheet,
- isAnimationTainted);
+ return CSSParser::parseValueForCustomProperty(
+ this, customPropertyName, registry, value, important, contextStyleSheet,
+ isAnimationTainted);
}
void MutableStylePropertySet::setProperty(CSSPropertyID propertyID,

Powered by Google App Engine
This is Rietveld 408576698