diff options
Diffstat (limited to 'webkit/glue/webplugin_impl.cc')
-rw-r--r-- | webkit/glue/webplugin_impl.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc index 15685e4..003ece7 100644 --- a/webkit/glue/webplugin_impl.cc +++ b/webkit/glue/webplugin_impl.cc @@ -895,11 +895,16 @@ void WebPluginImpl::handleMouseEvent(WebCore::MouseEvent* event) { WebCursor cursor; if (!delegate_->HandleEvent(&np_event, &cursor)) event->setDefaultHandled(); + + ChromeClientImpl* chrome_client = + static_cast<ChromeClientImpl*>( + parent_view->frame()->page()->chrome()->client()); + // A windowless plugin can change the cursor in response to the WM_MOUSEMOVE // event. We need to reflect the changed cursor in the frame view as the // mouse is moved in the boundaries of the windowless plugin. - static_cast<ChromeClientImpl*>( - parent_view->frame()->page()->chrome()->client())->SetCursor(cursor); + chrome_client->SetCursorForPlugin(cursor); + #else NOTIMPLEMENTED(); #endif |