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

Unified Diff: Source/core/dom/DocumentInit.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
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/DocumentInit.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentInit.h
diff --git a/Source/core/dom/DocumentInit.h b/Source/core/dom/DocumentInit.h
index 087301d67094ae5587ec968fb3d495560e18fd4b..ffe4e9293cacc1d16874a681048dbddc7b441bdf 100644
--- a/Source/core/dom/DocumentInit.h
+++ b/Source/core/dom/DocumentInit.h
@@ -30,6 +30,7 @@
#include "core/dom/SandboxFlags.h"
#include "core/dom/SecurityContext.h"
+#include "platform/heap/Handle.h"
#include "platform/weborigin/KURL.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
@@ -43,7 +44,8 @@ class LocalFrame;
class HTMLImportsController;
class Settings;
-class DocumentInit {
+class DocumentInit FINAL {
+ STACK_ALLOCATED();
public:
explicit DocumentInit(const KURL& = KURL(), LocalFrame* = 0, WeakPtr<Document> = WeakPtr<Document>(), HTMLImportsController* = 0);
DocumentInit(const DocumentInit&);
@@ -67,7 +69,7 @@ public:
DocumentInit& withRegistrationContext(CustomElementRegistrationContext*);
DocumentInit& withNewRegistrationContext();
- PassRefPtr<CustomElementRegistrationContext> registrationContext(Document*) const;
+ PassRefPtrWillBeRawPtr<CustomElementRegistrationContext> registrationContext(Document*) const;
WeakPtr<Document> contextDocument() const;
static DocumentInit fromContext(WeakPtr<Document> contextDocument, const KURL& = KURL());
@@ -80,8 +82,8 @@ private:
RefPtr<Document> m_parent;
RefPtr<Document> m_owner;
WeakPtr<Document> m_contextDocument;
- HTMLImportsController* m_importsController;
- RefPtr<CustomElementRegistrationContext> m_registrationContext;
+ RawPtrWillBeMember<HTMLImportsController> m_importsController;
+ RefPtrWillBeMember<CustomElementRegistrationContext> m_registrationContext;
bool m_createNewRegistrationContext;
};
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/DocumentInit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698