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

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

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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/ContainerNode.cpp ('k') | Source/core/dom/ContainerNodeAlgorithms.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ContainerNodeAlgorithms.h
diff --git a/Source/core/dom/ContainerNodeAlgorithms.h b/Source/core/dom/ContainerNodeAlgorithms.h
index ebd52637d6f5ee3a542477c2d58e09d30707e169..e9ff73f7fad5a5ddb7c7f955deb4b2299099682d 100644
--- a/Source/core/dom/ContainerNodeAlgorithms.h
+++ b/Source/core/dom/ContainerNodeAlgorithms.h
@@ -213,9 +213,9 @@ inline void ChildNodeInsertionNotifier::notify(Node* node)
{
ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden());
- InspectorInstrumentation::didInsertDOMNode(node->document(), node);
+ InspectorInstrumentation::didInsertDOMNode(&node->document(), node);
- RefPtr<Document> protectDocument(node->document());
+ RefPtr<Document> protectDocument(&node->document());
RefPtr<Node> protectNode(node);
if (m_insertionPoint->inDocument())
@@ -250,7 +250,7 @@ inline void ChildNodeRemovalNotifier::notify(Node* node)
{
if (node->inDocument()) {
notifyNodeRemovedFromDocument(node);
- node->document()->notifyRemovePendingSheetIfNeeded();
+ node->document().notifyRemovePendingSheetIfNeeded();
} else if (node->isContainerNode())
notifyNodeRemovedFromTree(toContainerNode(node));
}
« no previous file with comments | « Source/core/dom/ContainerNode.cpp ('k') | Source/core/dom/ContainerNodeAlgorithms.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698