diff options
-rw-r--r-- | Source/WebCore/plugins/win/PluginViewWin.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/WebCore/plugins/win/PluginViewWin.cpp b/Source/WebCore/plugins/win/PluginViewWin.cpp index fae3c4415..d1f99bed7 100644 --- a/Source/WebCore/plugins/win/PluginViewWin.cpp +++ b/Source/WebCore/plugins/win/PluginViewWin.cpp @@ -350,11 +350,10 @@ static inline IntPoint contentsToNativeWindow(FrameView* view, const IntPoint& p #if PLATFORM(QT) // Our web view's QWidget isn't necessarily a native window itself. Map the position // all the way up to the QWidget associated with the HWND returned as NPNVnetscapeWindow. - PlatformPageClient client = view->hostWindow()->platformPageClient(); - return client->mapToOwnerWindow(view->contentsToWindow(point)); -#else - return view->contentsToWindow(point); + if (PlatformPageClient client = view->hostWindow()->platformPageClient()) + return client->mapToOwnerWindow(view->contentsToWindow(point)); #endif + return view->contentsToWindow(point); } static inline IntRect contentsToNativeWindow(FrameView* view, const IntRect& rect) |