Chromium Code Reviews| Index: Source/core/dom/ElementRareData.h |
| diff --git a/Source/core/dom/ElementRareData.h b/Source/core/dom/ElementRareData.h |
| index 956eda783b4e507214e46bbdbead22154cef6b81..574d3e4cc8b7ad0bf5180f76605520611273e63a 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.get(); |
|
adamk
2013/10/16 15:17:21
Nit: you can remove the .get()
Inactive
2013/10/16 15:20:17
Done.
|
| } |
| NamedNodeMap* attributeMap() const { return m_attributeMap.get(); } |