| Index: webkit/glue/webview_impl.cc
|
| ===================================================================
|
| --- webkit/glue/webview_impl.cc (revision 25640)
|
| +++ webkit/glue/webview_impl.cc (working copy)
|
| @@ -35,6 +35,7 @@
|
| #include "NodeRenderStyle.h"
|
| #include "Page.h"
|
| #include "PageGroup.h"
|
| +#include "Pasteboard.h"
|
| #include "PlatformContextSkia.h"
|
| #include "PlatformKeyboardEvent.h"
|
| #include "PlatformMouseEvent.h"
|
| @@ -564,8 +565,11 @@
|
| ShouldHitTestScrollbars);
|
| if (!hit_test_result.scrollbar() && focused) {
|
| Editor* editor = focused->editor();
|
| - if (editor && editor->canEdit())
|
| - delegate_->PasteFromSelectionClipboard();
|
| + Pasteboard* pasteboard = Pasteboard::generalPasteboard();
|
| + bool oldSelectionMode = pasteboard->isSelectionMode();
|
| + pasteboard->setSelectionMode(true);
|
| + editor->command(AtomicString("Paste")).execute();
|
| + pasteboard->setSelectionMode(oldSelectionMode);
|
| }
|
| }
|
| #endif
|
|
|