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

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

Issue 2712603007: Select All present even all selectable text has been selected (Closed)
Patch Set: Created 3 years, 10 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/Editor.cpp
diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
index 147b10fa09c203c7d4978f25893ff29ef469de4d..a58840fc67ac71f1b03a6ecd29d41f275f32a7d0 100644
--- a/third_party/WebKit/Source/core/editing/Editor.cpp
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp
@@ -331,6 +331,10 @@ bool Editor::canDelete() const {
selection.computeVisibleSelectionInDOMTree().rootEditableElement();
}
+bool Editor::canSelectAll() const {
+ return frame().selection().canSelectAll();
+}
+
bool Editor::smartInsertDeleteEnabled() const {
if (Settings* settings = frame().settings())
return settings->getSmartInsertDeleteEnabled();

Powered by Google App Engine
This is Rietveld 408576698