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

Unified Diff: third_party/WebKit/Source/core/editing/commands/RemoveCSSPropertyCommand.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/editing/commands/RemoveCSSPropertyCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/RemoveCSSPropertyCommand.cpp b/third_party/WebKit/Source/core/editing/commands/RemoveCSSPropertyCommand.cpp
index 99183c7e2291aa831cc075cd97fb97d4ca1c53eb..80ebee59c2b968cdf9cca042e36fd02d76be7d91 100644
--- a/third_party/WebKit/Source/core/editing/commands/RemoveCSSPropertyCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/RemoveCSSPropertyCommand.cpp
@@ -57,12 +57,12 @@ void RemoveCSSPropertyCommand::doApply(EditingState*) {
// script. Setting to null string removes the property. We don't have internal
// version of removeProperty.
m_element->style()->setPropertyInternal(m_property, String(), String(), false,
- IGNORE_EXCEPTION);
+ nullptr, IGNORE_EXCEPTION);
}
void RemoveCSSPropertyCommand::doUnapply() {
- m_element->style()->setPropertyInternal(m_property, String(), m_oldValue,
- m_important, IGNORE_EXCEPTION);
+ m_element->style()->setPropertyInternal(
+ m_property, String(), m_oldValue, m_important, nullptr, IGNORE_EXCEPTION);
}
DEFINE_TRACE(RemoveCSSPropertyCommand) {

Powered by Google App Engine
This is Rietveld 408576698