Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Unified Diff: third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp

Issue 2201853002: Blink handle selection handle visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try running even rebaseline tests Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
diff --git a/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp b/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
index 82afb0b2e9658467ab5fda32e1ca971bde0e11ab..9e99f58a1dee5b9c5b1efe1f47132128a3e8353e 100644
--- a/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
@@ -175,6 +175,7 @@ void SelectionAdjuster::adjustSelectionInFlatTree(
selectionInFlatTree->m_granularity = selection.m_granularity;
selectionInFlatTree->m_hasTrailingWhitespace =
selection.m_hasTrailingWhitespace;
+ selectionInFlatTree->m_isHandleVisible = selection.m_isHandleVisible;
selectionInFlatTree->m_baseIsFirst =
base.isNull() || base.compareTo(extent) <= 0;
if (position1.compareTo(position2) <= 0) {
@@ -232,6 +233,7 @@ void SelectionAdjuster::adjustSelectionInDOMTree(
selection->m_granularity = selectionInFlatTree.m_granularity;
selection->m_hasTrailingWhitespace =
selectionInFlatTree.m_hasTrailingWhitespace;
+ selection->m_isHandleVisible = selectionInFlatTree.m_isHandleVisible;
selection->m_baseIsFirst = base.isNull() || base.compareTo(extent) <= 0;
if (position1.compareTo(position2) <= 0) {
selection->m_start = position1;

Powered by Google App Engine
This is Rietveld 408576698