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

Unified Diff: third_party/WebKit/Source/core/editing/commands/RemoveCSSPropertyCommand.cpp

Issue 1405293012: [Variables] Enable get/setProperty and similar APIs from the CSSOM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use static_assert. Created 5 years, 1 month 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 6853498417baf794df2e1c36bbda7ed734b20b9e..8b403cebd54a721cc45959d196aca27b32c61926 100644
--- a/third_party/WebKit/Source/core/editing/commands/RemoveCSSPropertyCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/RemoveCSSPropertyCommand.cpp
@@ -58,12 +58,12 @@ void RemoveCSSPropertyCommand::doApply()
// Mutate using the CSSOM wrapper so we get the same event behavior as a script.
// Setting to null string removes the property. We don't have internal version of removeProperty.
- m_element->style()->setPropertyInternal(m_property, String(), false, IGNORE_EXCEPTION);
+ m_element->style()->setPropertyInternal(m_property, String(), String(), false, IGNORE_EXCEPTION);
}
void RemoveCSSPropertyCommand::doUnapply()
{
- m_element->style()->setPropertyInternal(m_property, m_oldValue, m_important, IGNORE_EXCEPTION);
+ m_element->style()->setPropertyInternal(m_property, String(), m_oldValue, m_important, IGNORE_EXCEPTION);
}
DEFINE_TRACE(RemoveCSSPropertyCommand)

Powered by Google App Engine
This is Rietveld 408576698