| Index: webkit/glue/webview_impl.cc
|
| ===================================================================
|
| --- webkit/glue/webview_impl.cc (revision 24335)
|
| +++ webkit/glue/webview_impl.cc (working copy)
|
| @@ -549,7 +549,11 @@
|
| // handleMouseReleaseEvent() earlier in this function
|
| if (event.button == WebMouseEvent::ButtonMiddle) {
|
| Frame* focused = GetFocusedWebCoreFrame();
|
| - if (focused) {
|
| + IntPoint click_point(last_mouse_down_point_.x, last_mouse_down_point_.y);
|
| + HitTestResult hit_test_result =
|
| + focused->eventHandler()->hitTestResultAtPoint(click_point, false, false,
|
| + ShouldHitTestScrollbars);
|
| + if (!hit_test_result.scrollbar() && focused) {
|
| Editor* editor = focused->editor();
|
| if (editor && editor->canEdit())
|
| delegate_->PasteFromSelectionClipboard();
|
|
|