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

Unified Diff: third_party/WebKit/Source/core/editing/Position.cpp

Issue 1885453002: Rename Node::treeScope() to Node::treeScopeOrDocument() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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: third_party/WebKit/Source/core/editing/Position.cpp
diff --git a/third_party/WebKit/Source/core/editing/Position.cpp b/third_party/WebKit/Source/core/editing/Position.cpp
index a7b62df97ea9442ffdd480ef06862b5190a989a7..25387f6ec0b1815ea986cf563f1fd64c35768964 100644
--- a/third_party/WebKit/Source/core/editing/Position.cpp
+++ b/third_party/WebKit/Source/core/editing/Position.cpp
@@ -46,7 +46,7 @@ const TreeScope* PositionTemplate<Strategy>::commonAncestorTreeScope(const Posit
{
if (!a.computeContainerNode() || !b.computeContainerNode())
return nullptr;
- return a.computeContainerNode()->treeScope().commonAncestorTreeScope(b.computeContainerNode()->treeScope());
+ return a.computeContainerNode()->treeScopeOrDocument().commonAncestorTreeScope(b.computeContainerNode()->treeScopeOrDocument());
}

Powered by Google App Engine
This is Rietveld 408576698