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

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

Issue 2642913003: Select All should show handles if they were already present (Closed)
Patch Set: added tests Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0238e0b185480ab4010b2ce338dc56d0336b45ea..94190e999a465d072117843b849888eb84aab416 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -913,7 +913,12 @@ void FrameSelection::selectAll() {
return;
}
- setSelection(SelectionInDOMTree::Builder().selectAllChildren(*root).build());
+ SetSelectionOptions options = CloseTyping | ClearTypingStyle;
yosin_UTC9 2017/01/19 08:31:03 I prefer const SetSelectionOptions options = isHa
amaralp 2017/01/20 01:22:09 This has been removed.
+ if (isHandleVisible())
yosin_UTC9 2017/01/19 08:31:02 When do we not show handle if |isHandleVisbile()|?
yosin_UTC9 2017/01/19 09:36:52 [1] is another example of error prone regarding ha
amaralp 2017/01/20 01:22:09 A few cases I can think of: 1) Javascript select
+ options |= HandleVisible;
+
+ setSelection(SelectionInDOMTree::Builder().selectAllChildren(*root).build(),
+ options);
selectFrameElementInParentIfFullySelected();
notifyLayoutObjectOfSelectionChange(UserTriggered);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698