Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(813)

Unified Diff: Source/core/dom/custom/CustomElementRegistrationContext.h

Issue 296703009: Oilpan: move custom element objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..1602c7cdc9ecf123720fcbba959cafe564805882 100644
--- a/Source/core/dom/custom/CustomElementRegistrationContext.h
+++ b/Source/core/dom/custom/CustomElementRegistrationContext.h
@@ -49,9 +49,9 @@ 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();
~CustomElementRegistrationContext() { }
@@ -64,6 +64,8 @@ public:
void resolve(Element*, const CustomElementDescriptor&);
+ void trace(Visitor*);
+
protected:
CustomElementRegistrationContext() { }
@@ -76,7 +78,7 @@ private:
CustomElementRegistry m_registry;
// Element creation
- CustomElementUpgradeCandidateMap m_candidates;
+ OwnPtrWillBeMember<CustomElementUpgradeCandidateMap> m_candidates;
};
}

Powered by Google App Engine
This is Rietveld 408576698