Commit 4cef7c93 authored by Gayane Petrosyan's avatar Gayane Petrosyan Committed by Commit Bot

Replace GetSelectionInFlatTree with ComputeVisibleSelectionInFlatTree

Change-Id: Iffe51fbe33c40264a1b09feb1bc93db5d43b12f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2347087Reviewed-by: default avatarDavid Bokan <bokan@chromium.org>
Reviewed-by: default avatarYoshifumi Inoue <yosin@chromium.org>
Commit-Queue: Gayane Petrosyan <gayane@chromium.org>
Cr-Commit-Position: refs/heads/master@{#797136}
parent fe5c2a00
...@@ -162,10 +162,6 @@ VisibleSelection FrameSelection::ComputeVisibleSelectionInDOMTreeDeprecated() ...@@ -162,10 +162,6 @@ VisibleSelection FrameSelection::ComputeVisibleSelectionInDOMTreeDeprecated()
return ComputeVisibleSelectionInDOMTree(); return ComputeVisibleSelectionInDOMTree();
} }
VisibleSelectionInFlatTree FrameSelection::GetSelectionInFlatTree() const {
return ComputeVisibleSelectionInFlatTree();
}
void FrameSelection::MoveCaretSelection(const IntPoint& point) { void FrameSelection::MoveCaretSelection(const IntPoint& point) {
DCHECK(!GetDocument().NeedsLayoutTreeUpdate()); DCHECK(!GetDocument().NeedsLayoutTreeUpdate());
......
...@@ -294,10 +294,6 @@ class CORE_EXPORT FrameSelection final ...@@ -294,10 +294,6 @@ class CORE_EXPORT FrameSelection final
const CaretDisplayItemClient& CaretDisplayItemClientForTesting() const; const CaretDisplayItemClient& CaretDisplayItemClientForTesting() const;
// Note: We have |selectionInFlatTree()| for unit tests, we should
// use |visibleSelection<EditingInFlatTreeStrategy>()|.
VisibleSelectionInFlatTree GetSelectionInFlatTree() const;
void NotifyAccessibilityForSelectionChange(); void NotifyAccessibilityForSelectionChange();
void NotifyCompositorForSelectionChange(); void NotifyCompositorForSelectionChange();
void NotifyEventHandlerForSelectionChange(); void NotifyEventHandlerForSelectionChange();
......
...@@ -48,7 +48,7 @@ class FrameSelectionTest : public EditingTestBase { ...@@ -48,7 +48,7 @@ class FrameSelectionTest : public EditingTestBase {
return Selection().ComputeVisibleSelectionInDOMTree(); return Selection().ComputeVisibleSelectionInDOMTree();
} }
VisibleSelectionInFlatTree GetVisibleSelectionInFlatTree() const { VisibleSelectionInFlatTree GetVisibleSelectionInFlatTree() const {
return Selection().GetSelectionInFlatTree(); return Selection().ComputeVisibleSelectionInFlatTree();
} }
Text* AppendTextNode(const String& data); Text* AppendTextNode(const String& data);
......
...@@ -50,7 +50,7 @@ class SelectionControllerTest : public EditingTestBase { ...@@ -50,7 +50,7 @@ class SelectionControllerTest : public EditingTestBase {
} }
VisibleSelectionInFlatTree GetVisibleSelectionInFlatTree() const { VisibleSelectionInFlatTree GetVisibleSelectionInFlatTree() const {
return Selection().GetSelectionInFlatTree(); return Selection().ComputeVisibleSelectionInFlatTree();
} }
bool SelectClosestWordFromHitTestResult( bool SelectClosestWordFromHitTestResult(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment