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

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: default handle visibility should be false Created 4 years, 4 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 c42794ae2725129809ecd971e69d0d99d56d0200..b067205788e318638e1f095dfbf2953dedf54016 100644
--- a/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp
@@ -171,6 +171,7 @@ void SelectionAdjuster::adjustSelectionInFlatTree(VisibleSelectionInFlatTree* se
selectionInFlatTree->m_isDirectional = selection.m_isDirectional;
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) {
selectionInFlatTree->m_start = position1;
@@ -215,6 +216,7 @@ void SelectionAdjuster::adjustSelectionInDOMTree(VisibleSelection* selection, co
selection->m_isDirectional = selectionInFlatTree.m_isDirectional;
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