| Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| index 03148bbd7cb508b7361178b61f323504a17cf2ac..80820464e7b424a064e76b8b14430f9bdd67addf 100644
|
| --- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| @@ -141,12 +141,12 @@ Element* FrameSelection::rootEditableElementOrDocumentElement() const {
|
| // TODO(yosin): We should move |rootEditableElementOrTreeScopeRootNodeOf()| to
|
| // "EditingUtilities.cpp"
|
| ContainerNode* rootEditableElementOrTreeScopeRootNodeOf(
|
| - const VisibleSelection& visibleSelection) {
|
| - Element* selectionRoot = visibleSelection.rootEditableElement();
|
| + const Position& position) {
|
| + Element* selectionRoot = rootEditableElementOf(position);
|
| if (selectionRoot)
|
| return selectionRoot;
|
|
|
| - Node* const node = visibleSelection.base().computeContainerNode();
|
| + Node* const node = position.computeContainerNode();
|
| return node ? &node->treeScope().rootNode() : 0;
|
| }
|
|
|
|
|