| 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 700cbd2d9e2d56adb8eaa277361379a725114728..f3ab573283701a68f5963f6b16d5a25356681d79 100644
|
| --- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
|
| @@ -139,15 +139,15 @@ Element* FrameSelection::rootEditableElementOrDocumentElement() const {
|
| return selectionRoot ? selectionRoot : document().documentElement();
|
| }
|
|
|
| -ContainerNode* FrameSelection::rootEditableElementOrTreeScopeRootNode() const {
|
| - Element* selectionRoot =
|
| - computeVisibleSelectionInDOMTreeDeprecated().rootEditableElement();
|
| +// TODO(yosin): We should move |rootEditableElementOrTreeScopeRootNodeOf()| to
|
| +// "EditingUtilities.cpp"
|
| +ContainerNode* rootEditableElementOrTreeScopeRootNodeOf(
|
| + const VisibleSelection& visibleSelection) {
|
| + Element* selectionRoot = visibleSelection.rootEditableElement();
|
| if (selectionRoot)
|
| return selectionRoot;
|
|
|
| - Node* node = computeVisibleSelectionInDOMTreeDeprecated()
|
| - .base()
|
| - .computeContainerNode();
|
| + Node* const node = visibleSelection.base().computeContainerNode();
|
| return node ? &node->treeScope().rootNode() : 0;
|
| }
|
|
|
|
|