Index: Source/core/dom/ElementRareData.h |
diff --git a/Source/core/dom/ElementRareData.h b/Source/core/dom/ElementRareData.h |
index 956eda783b4e507214e46bbdbead22154cef6b81..06085318dbef48a98e102d1bcd3cdf5fb1df7973 100644 |
--- a/Source/core/dom/ElementRareData.h |
+++ b/Source/core/dom/ElementRareData.h |
@@ -98,11 +98,11 @@ public: |
void clearShadow() { m_shadow = nullptr; } |
ElementShadow* shadow() const { return m_shadow.get(); } |
- ElementShadow* ensureShadow() |
+ ElementShadow& ensureShadow() |
{ |
if (!m_shadow) |
m_shadow = ElementShadow::create(); |
- return m_shadow.get(); |
+ return *m_shadow; |
} |
NamedNodeMap* attributeMap() const { return m_attributeMap.get(); } |