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

Unified Diff: Source/core/editing/ApplyStyleCommand.cpp

Issue 119533003: Clear mutable inline style when it is empty. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed typo. Created 7 years 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
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/editing/RemoveCSSPropertyCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/ApplyStyleCommand.cpp
diff --git a/Source/core/editing/ApplyStyleCommand.cpp b/Source/core/editing/ApplyStyleCommand.cpp
index 35fa0e67c8ae2e4acbde78ecb53f546aae08353d..eeb18cb903bc437e0a70737c3d25d95f9ff6b7da 100644
--- a/Source/core/editing/ApplyStyleCommand.cpp
+++ b/Source/core/editing/ApplyStyleCommand.cpp
@@ -957,10 +957,6 @@ bool ApplyStyleCommand::removeCSSStyle(EditingStyle* style, HTMLElement* element
for (size_t i = 0; i < properties.size(); i++)
removeCSSProperty(element, properties[i]);
- // No need to serialize <foo style=""> if we just removed the last css property
- if (element->inlineStyle()->isEmpty())
- removeNodeAttribute(element, styleAttr);
-
if (isSpanWithoutAttributesOrUnstyledStyleSpan(element))
removeNodePreservingChildren(element);
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/editing/RemoveCSSPropertyCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698