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

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: Fix compilation issue pointed out by clang 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..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;
};
}
« no previous file with comments | « Source/core/dom/custom/CustomElementObserver.cpp ('k') | Source/core/dom/custom/CustomElementRegistrationContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698