Index: Source/core/dom/Document.h |
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h |
index b3174858388be150e06810fb1a6907f66f18364d..73ca04bb7cd9da3c062f50171f3f47a4d9b3f585 100644 |
--- a/Source/core/dom/Document.h |
+++ b/Source/core/dom/Document.h |
@@ -323,8 +323,8 @@ public: |
PassRefPtrWillBeRawPtr<ProcessingInstruction> createProcessingInstruction(const String& target, const String& data, ExceptionState&); |
PassRefPtrWillBeRawPtr<Attr> createAttribute(const AtomicString& name, ExceptionState&); |
PassRefPtrWillBeRawPtr<Attr> createAttributeNS(const AtomicString& namespaceURI, const AtomicString& qualifiedName, ExceptionState&, bool shouldIgnoreNamespaceChecks = false); |
- PassRefPtr<Node> importNode(Node* importedNode, ExceptionState&); |
- PassRefPtr<Node> importNode(Node* importedNode, bool deep, ExceptionState&); |
+ PassRefPtrWillBeRawPtr<Node> importNode(Node* importedNode, ExceptionState&); |
+ PassRefPtrWillBeRawPtr<Node> importNode(Node* importedNode, bool deep, ExceptionState&); |
PassRefPtrWillBeRawPtr<Element> createElementNS(const AtomicString& namespaceURI, const AtomicString& qualifiedName, ExceptionState&); |
PassRefPtrWillBeRawPtr<Element> createElement(const QualifiedName&, bool createdByParser); |
@@ -683,7 +683,7 @@ public: |
void didMergeTextNodes(Text& oldNode, unsigned offset); |
void didSplitTextNode(Text& oldNode); |
- void clearDOMWindow() { m_domWindow = 0; } |
+ void clearDOMWindow() { m_domWindow = nullptr; } |
DOMWindow* domWindow() const { return m_domWindow; } |
// Helper functions for forwarding DOMWindow event related tasks to the DOMWindow if it exists. |
@@ -1189,7 +1189,7 @@ private: |
PendingSheetLayout m_pendingSheetLayout; |
LocalFrame* m_frame; |
- DOMWindow* m_domWindow; |
+ RawPtrWillBeWeakMember<DOMWindow> m_domWindow; |
HTMLImportsController* m_importsController; |
RefPtrWillBeMember<ResourceFetcher> m_fetcher; |