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

Unified Diff: third_party/WebKit/Source/core/editing/DOMSelection.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/DOMSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/DOMSelection.cpp b/third_party/WebKit/Source/core/editing/DOMSelection.cpp
index 342e161710946f6799587e44ce41b700345f3e1e..80f882bf6b01ce0fad08cb0ce2feaa24e4ddebe6 100644
--- a/third_party/WebKit/Source/core/editing/DOMSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/DOMSelection.cpp
@@ -423,7 +423,7 @@ void DOMSelection::addRange(Range* newRange)
addConsoleError("The given range does not belong to the current selection's document.");
return;
}
- if (originalRange->startContainer()->treeScope() != newRange->startContainer()->treeScope()) {
+ if (originalRange->startContainer()->treeScopeOrDocument() != newRange->startContainer()->treeScopeOrDocument()) {
addConsoleError("The given range and the current selection belong to two different document fragments.");
return;
}

Powered by Google App Engine
This is Rietveld 408576698