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

Unified Diff: third_party/WebKit/Source/core/editing/EditingUtilities.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/EditingUtilities.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
index b1969288e1236da78496692d17fcb110eb3ab03a..09e14886f15a04c7f86d44cc6959c742834d5bf7 100644
--- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
@@ -487,8 +487,8 @@ PositionTemplate<Strategy> firstEditablePositionAfterPositionInRootAlgorithm(con
PositionTemplate<Strategy> editablePosition = position;
- if (position.anchorNode()->treeScope() != highestRoot.treeScope()) {
- Node* shadowAncestor = highestRoot.treeScope().ancestorInThisScope(editablePosition.anchorNode());
+ if (position.anchorNode()->treeScopeOrDocument() != highestRoot.treeScopeOrDocument()) {
+ Node* shadowAncestor = highestRoot.treeScopeOrDocument().ancestorInThisScope(editablePosition.anchorNode());
if (!shadowAncestor)
return PositionTemplate<Strategy>();
@@ -533,8 +533,8 @@ PositionTemplate<Strategy> lastEditablePositionBeforePositionInRootAlgorithm(con
PositionTemplate<Strategy> editablePosition = position;
- if (position.anchorNode()->treeScope() != highestRoot.treeScope()) {
- Node* shadowAncestor = highestRoot.treeScope().ancestorInThisScope(editablePosition.anchorNode());
+ if (position.anchorNode()->treeScopeOrDocument() != highestRoot.treeScopeOrDocument()) {
+ Node* shadowAncestor = highestRoot.treeScopeOrDocument().ancestorInThisScope(editablePosition.anchorNode());
if (!shadowAncestor)
return PositionTemplate<Strategy>();
« no previous file with comments | « third_party/WebKit/Source/core/editing/DOMSelection.cpp ('k') | third_party/WebKit/Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698