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

Unified Diff: Source/core/dom/Element.h

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
Index: Source/core/dom/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index bfc1d9afeab083839a28b8bb943f1217a29f3546..47b73856dc5c16e603b1f109f413091b1b05e691 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -531,6 +531,7 @@ public:
void synchronizeAttribute(const AtomicString& localName) const;
MutableStylePropertySet* ensureMutableInlineStyle();
+ void clearMutableInlineStyleIfEmpty();
protected:
Element(const QualifiedName& tagName, Document* document, ConstructionType type)
@@ -580,6 +581,8 @@ protected:
Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&);
private:
+ void removeSynchronizedLazyAttribute(const QualifiedName&);
+
void styleAttributeChanged(const AtomicString& newStyleString, AttributeModificationReason);
void updatePresentationAttributeStyle();

Powered by Google App Engine
This is Rietveld 408576698