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); |