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

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

Issue 451733002: Make Element::elementData() / ensureUniqueElementData() protected (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/core/css/resolver/SharedStyleFinder.cpp ('k') | Source/core/html/ClassList.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 bd2e0b29ceb3484252b9994aa58c2184728a1bb3..15b7bfa44dc3bb91c8fe11bba1a5a8dab9448e01 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -298,8 +298,7 @@ public:
// Remove attributes that might introduce scripting from the vector leaving the element unchanged.
void stripScriptingAttributes(Vector<Attribute>&) const;
- const ElementData* elementData() const { return m_elementData.get(); }
- UniqueElementData& ensureUniqueElementData();
+ bool sharesSameElementData(const Element& other) const { return elementData() == other.elementData(); }
void synchronizeAllAttributes() const;
@@ -513,6 +512,9 @@ public:
protected:
Element(const QualifiedName& tagName, Document*, ConstructionType);
+ const ElementData* elementData() const { return m_elementData.get(); }
+ UniqueElementData& ensureUniqueElementData();
+
void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPropertyID, CSSValueID identifier);
void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPropertyID, double value, CSSPrimitiveValue::UnitType);
void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPropertyID, const String& value);
« no previous file with comments | « Source/core/css/resolver/SharedStyleFinder.cpp ('k') | Source/core/html/ClassList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698