diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2009-06-23 13:12:29 (GMT) |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2009-06-23 13:12:29 (GMT) |
commit | d9cd51f412cf84ec9cd929e5d35c995b8904b49d (patch) | |
tree | 96a346dca9eb703127bccea469aa5cd679e958ef /src/3rdparty/webkit | |
parent | 0ba6a795f786dc19486551fed2344f394b144a08 (diff) | |
parent | 5138c39116a03e36005a03f47f718fced6cc6d4e (diff) | |
download | Qt-d9cd51f412cf84ec9cd929e5d35c995b8904b49d.zip Qt-d9cd51f412cf84ec9cd929e5d35c995b8904b49d.tar.gz Qt-d9cd51f412cf84ec9cd929e5d35c995b8904b49d.tar.bz2 |
Merge branch '4.5' of scm.dev.nokia.troll.no:qt/qt
Conflicts:
src/3rdparty/webkit/VERSION
src/3rdparty/webkit/WebCore/ChangeLog
src/3rdparty/webkit/WebKit/qt/ChangeLog
tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
Diffstat (limited to 'src/3rdparty/webkit')
-rw-r--r-- | src/3rdparty/webkit/WebCore/plugins/mac/PluginViewMac.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/3rdparty/webkit/WebCore/plugins/mac/PluginViewMac.cpp b/src/3rdparty/webkit/WebCore/plugins/mac/PluginViewMac.cpp index 5691c9c..76f20b1 100644 --- a/src/3rdparty/webkit/WebCore/plugins/mac/PluginViewMac.cpp +++ b/src/3rdparty/webkit/WebCore/plugins/mac/PluginViewMac.cpp @@ -397,7 +397,10 @@ void PluginView::updatePluginWidget() IntRect oldWindowRect = m_windowRect; IntRect oldClipRect = m_clipRect; - m_windowRect = IntRect(frameView->contentsToWindow(frameRect().location()), frameRect().size()); + m_windowRect = frameView->contentsToWindow(frameRect()); + IntPoint offset = topLevelOffsetFor(platformPluginWidget()); + m_windowRect.move(offset.x(), offset.y()); + m_clipRect = windowClipRect(); m_clipRect.move(-m_windowRect.x(), -m_windowRect.y()); @@ -624,10 +627,6 @@ Point PluginView::globalMousePosForPlugin() const Point pos; GetGlobalMouse(&pos); - IntPoint offset = topLevelOffsetFor(platformPluginWidget()); - pos.h -= offset.x(); - pos.v -= offset.y(); - float scaleFactor = tigerOrBetter() ? HIGetScaleFactor() : 1; pos.h = short(pos.h * scaleFactor); |