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

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
« no previous file with comments | « Source/core/css/VariablesIterator.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index bfc1d9afeab083839a28b8bb943f1217a29f3546..f1293c041634d78de827194f2903b95bd6b753c3 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -100,8 +100,11 @@ public:
bool hasAttribute(const QualifiedName&) const;
const AtomicString& getAttribute(const QualifiedName&) const;
+
+ // Passing nullAtom as the second parameter removes the attribute when calling either of these set methods.
void setAttribute(const QualifiedName&, const AtomicString& value);
void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString& value);
+
void removeAttribute(const QualifiedName&);
// Typed getters and setters for language bindings.
@@ -531,6 +534,7 @@ public:
void synchronizeAttribute(const AtomicString& localName) const;
MutableStylePropertySet* ensureMutableInlineStyle();
+ void clearMutableInlineStyleIfEmpty();
protected:
Element(const QualifiedName& tagName, Document* document, ConstructionType type)
« no previous file with comments | « Source/core/css/VariablesIterator.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698