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

Unified Diff: third_party/WebKit/Source/web/ContextMenuClientImpl.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/web/ContextMenuClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
index 52093ffa4cdba849df607b2b537de5ecf6d7afc3..caa73b9fbd3652e9b912ea91c3c6d4415f33d904 100644
--- a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
@@ -180,8 +180,8 @@ bool ContextMenuClientImpl::showContextMenu(const ContextMenu* defaultMenu,
data.editFlags |= WebContextMenuData::CanPaste;
if (toLocalFrame(m_webView->focusedCoreFrame())->editor().canDelete())
data.editFlags |= WebContextMenuData::CanDelete;
- // We can always select all...
- data.editFlags |= WebContextMenuData::CanSelectAll;
+ if (toLocalFrame(m_webView->focusedCoreFrame())->editor().canSelectAll())
+ data.editFlags |= WebContextMenuData::CanSelectAll;
data.editFlags |= WebContextMenuData::CanTranslate;
// Links, Images, Media tags, and Image/Media-Links take preference over

Powered by Google App Engine
This is Rietveld 408576698