| 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 5e93ab2ccd7d073824811ec26ac54c6f5323a554..13539b5bda7fc20fc738591c0044097ff6190ac3 100644
|
| --- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
|
| @@ -387,26 +387,6 @@ Element* rootEditableElement(const Node& node) {
|
| return toElement(const_cast<Node*>(result));
|
| }
|
|
|
| -bool selectionHasFocus(const SelectionInFlatTree& selection) {
|
| - if (selection.isNone())
|
| - return false;
|
| -
|
| - const Document* document = selection.base().document();
|
| - const Element* focus = document->focusedElement();
|
| - if (!focus) {
|
| - // No focused element means document root has focus.
|
| - focus = document->documentElement();
|
| - }
|
| -
|
| - const Node* const nodeWhereSelectionStarts =
|
| - selection.base().computeContainerNode();
|
| - const Node* const nodeWhereSelectionEnds =
|
| - selection.extent().computeContainerNode();
|
| -
|
| - return focus->containsIncludingHostElements(*nodeWhereSelectionStarts) ||
|
| - focus->containsIncludingHostElements(*nodeWhereSelectionEnds);
|
| -}
|
| -
|
| ContainerNode* highestEditableRoot(
|
| const Position& position,
|
| Element* (*rootEditableElementOf)(const Position&),
|
|
|