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

Unified Diff: third_party/WebKit/Source/core/css/DOMWindowCSS.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/DOMWindowCSS.cpp
diff --git a/third_party/WebKit/Source/core/css/DOMWindowCSS.cpp b/third_party/WebKit/Source/core/css/DOMWindowCSS.cpp
index c1196921398871840477101b6e00af728e1a4ede..46c90a4218e188aefb0c9d833db582802b0000e9 100644
--- a/third_party/WebKit/Source/core/css/DOMWindowCSS.cpp
+++ b/third_party/WebKit/Source/core/css/DOMWindowCSS.cpp
@@ -46,8 +46,9 @@ bool DOMWindowCSS::supports(const String& property, const String& value) {
MutableStylePropertySet* dummyStyle =
MutableStylePropertySet::create(HTMLStandardMode);
bool isAnimationTainted = false;
- return CSSParser::parseValueForCustomProperty(
- dummyStyle, "--valid", value, false, nullptr, isAnimationTainted)
+ return CSSParser::parseValueForCustomProperty(dummyStyle, "--valid",
+ nullptr, value, false,
+ nullptr, isAnimationTainted)
.didParse;
}

Powered by Google App Engine
This is Rietveld 408576698