diff options
Diffstat (limited to 'WebCore/plugins/mac/PluginViewMac.mm')
-rw-r--r-- | WebCore/plugins/mac/PluginViewMac.mm | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/WebCore/plugins/mac/PluginViewMac.mm b/WebCore/plugins/mac/PluginViewMac.mm index aef9420..7119f0d 100644 --- a/WebCore/plugins/mac/PluginViewMac.mm +++ b/WebCore/plugins/mac/PluginViewMac.mm @@ -725,30 +725,11 @@ static int modifiersForEvent(UIEventWithKeyState* event) #endif #ifndef NP_NO_CARBON -static bool tigerOrBetter() -{ - static SInt32 systemVersion = 0; - - if (!systemVersion) { - if (Gestalt(gestaltSystemVersion, &systemVersion) != noErr) - return false; - } - - return systemVersion >= 0x1040; -} -#endif - -#ifndef NP_NO_CARBON Point PluginView::globalMousePosForPlugin() const { Point pos; GetGlobalMouse(&pos); - float scaleFactor = tigerOrBetter() ? HIGetScaleFactor() : 1; - - pos.h = short(pos.h * scaleFactor); - pos.v = short(pos.v * scaleFactor); - #if PLATFORM(WX) // make sure the titlebar/toolbar size is included WindowRef windowRef = nativeWindowFor(platformPluginWidget()); |