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

Unified Diff: Source/core/dom/DocumentInit.h

Issue 304323010: Oilpan: have DocumentInit use transition types throughout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add WeakPtrWillBeMember transition type 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 ffe4e9293cacc1d16874a681048dbddc7b441bdf..3458f02678ee6ba92ed2c26341e383c5e82261ae 100644
--- a/Source/core/dom/DocumentInit.h
+++ b/Source/core/dom/DocumentInit.h
@@ -47,7 +47,7 @@ class Settings;
class DocumentInit FINAL {
STACK_ALLOCATED();
public:
- explicit DocumentInit(const KURL& = KURL(), LocalFrame* = 0, WeakPtr<Document> = WeakPtr<Document>(), HTMLImportsController* = 0);
+ explicit DocumentInit(const KURL& = KURL(), LocalFrame* = 0, WeakPtrWillBeRawPtr<Document> = nullptr, HTMLImportsController* = 0);
tkent 2014/06/02 07:56:07 WeakPtr(std::nullptr_t) is necessary because RawPt
sof 2014/06/02 08:01:34 Yes, exactly so. As RawPtr() (for the Oilpan case)
DocumentInit(const DocumentInit&);
~DocumentInit();
@@ -70,18 +70,18 @@ public:
DocumentInit& withRegistrationContext(CustomElementRegistrationContext*);
DocumentInit& withNewRegistrationContext();
PassRefPtrWillBeRawPtr<CustomElementRegistrationContext> registrationContext(Document*) const;
- WeakPtr<Document> contextDocument() const;
+ WeakPtrWillBeRawPtr<Document> contextDocument() const;
- static DocumentInit fromContext(WeakPtr<Document> contextDocument, const KURL& = KURL());
+ static DocumentInit fromContext(WeakPtrWillBeRawPtr<Document> contextDocument, const KURL& = KURL());
private:
LocalFrame* frameForSecurityContext() const;
KURL m_url;
LocalFrame* m_frame;
- RefPtr<Document> m_parent;
- RefPtr<Document> m_owner;
- WeakPtr<Document> m_contextDocument;
+ RefPtrWillBeMember<Document> m_parent;
+ RefPtrWillBeMember<Document> m_owner;
+ WeakPtrWillBeMember<Document> m_contextDocument;
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