| Index: third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp b/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp
|
| index cd88eb766bfea8d29b0ff70ec7c9c081d3db6091..10ffef012afda75ec5ad4e7f3f2130c43274dfcb 100644
|
| --- a/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp
|
| @@ -107,10 +107,10 @@ int shadowDepthOf(const Node& startContainer, const Node& endContainer);
|
| template <>
|
| int shadowDepthOf<EditingStrategy>(const Node& startContainer, const Node& endContainer)
|
| {
|
| - const TreeScope* commonAncestorTreeScope = startContainer.treeScope().commonAncestorTreeScope(endContainer.treeScope());
|
| + const TreeScope* commonAncestorTreeScope = startContainer.treeScopeOrDocument().commonAncestorTreeScope(endContainer.treeScopeOrDocument());
|
| ASSERT(commonAncestorTreeScope);
|
| int shadowDepth = 0;
|
| - for (const TreeScope* treeScope = &startContainer.treeScope(); treeScope != commonAncestorTreeScope; treeScope = treeScope->parentTreeScope())
|
| + for (const TreeScope* treeScope = &startContainer.treeScopeOrDocument(); treeScope != commonAncestorTreeScope; treeScope = treeScope->parentTreeScope())
|
| ++shadowDepth;
|
| return shadowDepth;
|
| }
|
|
|