Index: Source/core/dom/custom/CustomElementRegistrationContext.h |
diff --git a/Source/core/dom/custom/CustomElementRegistrationContext.h b/Source/core/dom/custom/CustomElementRegistrationContext.h |
index 8a420ca32facb9c85c9b09d1208841280925d188..6f8b9ff7151416113e7007aad6d78f3f35658fcd 100644 |
--- a/Source/core/dom/custom/CustomElementRegistrationContext.h |
+++ b/Source/core/dom/custom/CustomElementRegistrationContext.h |
@@ -49,9 +49,12 @@ class Document; |
class Element; |
class ExceptionState; |
-class CustomElementRegistrationContext : public RefCounted<CustomElementRegistrationContext> { |
+class CustomElementRegistrationContext FINAL : public RefCountedWillBeGarbageCollectedFinalized<CustomElementRegistrationContext> { |
public: |
- static PassRefPtr<CustomElementRegistrationContext> create(); |
+ static PassRefPtrWillBeRawPtr<CustomElementRegistrationContext> create() |
+ { |
+ return adoptRefWillBeNoop(new CustomElementRegistrationContext()); |
+ } |
~CustomElementRegistrationContext() { } |
@@ -64,8 +67,10 @@ public: |
void resolve(Element*, const CustomElementDescriptor&); |
+ void trace(Visitor*); |
+ |
protected: |
- CustomElementRegistrationContext() { } |
+ CustomElementRegistrationContext(); |
// Instance creation |
void didGiveTypeExtension(Element*, const AtomicString& type); |
@@ -76,7 +81,7 @@ private: |
CustomElementRegistry m_registry; |
// Element creation |
- CustomElementUpgradeCandidateMap m_candidates; |
+ OwnPtrWillBeMember<CustomElementUpgradeCandidateMap> m_candidates; |
}; |
} |