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

Unified Diff: third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.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/CSSComputedStyleDeclaration.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp b/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp
index 560cdf9049e3e82e25b1c3ec8cdf89104ace64f8..58fc7791df98a85bdaccb9bd3f07e679ce131b4a 100644
--- a/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp
+++ b/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp
@@ -515,7 +515,8 @@ bool CSSComputedStyleDeclaration::isPropertyImplicit(const String&) {
return false;
}
-void CSSComputedStyleDeclaration::setProperty(const String& name,
+void CSSComputedStyleDeclaration::setProperty(const ExecutionContext*,
+ const String& name,
const String&,
const String&,
ExceptionState& exceptionState) {
@@ -555,6 +556,7 @@ void CSSComputedStyleDeclaration::setPropertyInternal(
const String&,
const String&,
bool,
+ const ExecutionContext*,
ExceptionState& exceptionState) {
// TODO(leviw): This code is currently unreachable, but shouldn't be.
exceptionState.throwDOMException(

Powered by Google App Engine
This is Rietveld 408576698