Index: Source/core/dom/ElementRareData.h |
diff --git a/Source/core/dom/ElementRareData.h b/Source/core/dom/ElementRareData.h |
index ce94cc2a281382ed8d71ecd8f9aa741edc24c1c5..cfc7cfd1455166975599248f314c12f5682bf4c5 100644 |
--- a/Source/core/dom/ElementRareData.h |
+++ b/Source/core/dom/ElementRareData.h |
@@ -32,6 +32,7 @@ |
#include "core/html/ClassList.h" |
#include "core/html/ime/InputMethodContext.h" |
#include "core/rendering/style/StyleInheritedData.h" |
+#include "platform/heap/Handle.h" |
#include "wtf/OwnPtr.h" |
namespace WebCore { |
@@ -40,9 +41,9 @@ class HTMLElement; |
class ElementRareData : public NodeRareData { |
public: |
- static PassOwnPtr<ElementRareData> create(RenderObject* renderer) |
+ static RawPtr<ElementRareData> create(RenderObject* renderer) |
{ |
- return adoptPtr(new ElementRareData(renderer)); |
+ return new ElementRareData(renderer); |
} |
~ElementRareData(); |
@@ -119,6 +120,8 @@ public: |
void setCustomElementDefinition(PassRefPtr<CustomElementDefinition> definition) { m_customElementDefinition = definition; } |
CustomElementDefinition* customElementDefinition() const { return m_customElementDefinition.get(); } |
+ void traceAfterDispatch(Visitor*); |
+ |
private: |
short m_tabindex; |
@@ -129,7 +132,7 @@ private: |
OwnPtr<ElementShadow> m_shadow; |
OwnPtr<NamedNodeMap> m_attributeMap; |
OwnPtr<InputMethodContext> m_inputMethodContext; |
- OwnPtrWillBePersistent<ActiveAnimations> m_activeAnimations; |
+ OwnPtrWillBeMember<ActiveAnimations> m_activeAnimations; |
OwnPtr<InlineCSSStyleDeclaration> m_cssomWrapper; |
RefPtr<RenderStyle> m_computedStyle; |
@@ -146,11 +149,14 @@ inline ElementRareData::ElementRareData(RenderObject* renderer) |
: NodeRareData(renderer) |
, m_tabindex(0) |
{ |
+ m_isElementRareData = true; |
} |
inline ElementRareData::~ElementRareData() |
{ |
+#if !ENABLE(OILPAN) |
ASSERT(!m_shadow); |
+#endif |
ASSERT(!m_generatedBefore); |
ASSERT(!m_generatedAfter); |
ASSERT(!m_backdrop); |