Index: Source/core/dom/Element.h |
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h |
index 6db11f9558b94d9bbed6a02d1b81a55b338f8c0f..9b1b62264a160ba9a937a3a3496e6944ce103e40 100644 |
--- a/Source/core/dom/Element.h |
+++ b/Source/core/dom/Element.h |
@@ -285,7 +285,7 @@ public: |
void stripScriptingAttributes(Vector<Attribute>&) const; |
const ElementData* elementData() const { return m_elementData.get(); } |
- UniqueElementData* ensureUniqueElementData(); |
+ UniqueElementData& ensureUniqueElementData(); |
void synchronizeAllAttributes() const; |
@@ -789,11 +789,11 @@ inline bool Element::hasClass() const |
return elementData() && elementData()->hasClass(); |
} |
-inline UniqueElementData* Element::ensureUniqueElementData() |
+inline UniqueElementData& Element::ensureUniqueElementData() |
{ |
if (!elementData() || !elementData()->isUnique()) |
createUniqueElementData(); |
- return static_cast<UniqueElementData*>(m_elementData.get()); |
+ return static_cast<UniqueElementData&>(*m_elementData); |
} |
// Put here to make them inline. |