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

Unified Diff: webkit/glue/editor_client_impl.cc

Issue 164333: Make double-clicking to select work correctly on Mac. (Closed)
Patch Set: Created 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/editor_client_impl.cc
diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc
index a000f2e9baf3ba1c9d00c70b6278422a8f0cb5a9..9a6e950698485b6540a6f3bc7d026cb1cb6a1e9b 100644
--- a/webkit/glue/editor_client_impl.cc
+++ b/webkit/glue/editor_client_impl.cc
@@ -110,11 +110,16 @@ bool EditorClientImpl::smartInsertDeleteEnabled() {
bool EditorClientImpl::isSelectTrailingWhitespaceEnabled() {
if (use_editor_delegate_) {
- WebViewDelegate* d = web_view_->delegate();
- if (d)
- return d->IsSelectTrailingWhitespaceEnabled();
+ WebViewDelegate* d = web_view_->delegate();
+ if (d)
+ return d->IsSelectTrailingWhitespaceEnabled();
}
+
+#if defined(OS_WIN)
return true;
+#elif defined(OS_MACOSX) || defined(OS_LINUX)
+ return false;
+#endif
}
bool EditorClientImpl::ShouldSpellcheckByDefault() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698