| 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>();
|
|
|
|
|