OSDN Git Service

Changing plugin setwindow() to use page coordinate
authorGrace Kloba <klobag@google.com>
Wed, 20 Jan 2010 03:00:16 +0000 (19:00 -0800)
committerGrace Kloba <klobag@google.com>
Wed, 20 Jan 2010 16:44:59 +0000 (08:44 -0800)
commit1f15f3a9f6dc2a169bbd160e2e1abb161f9927d9
tree3f05712e2467690c62b0a7e92e800cdc8fb6d011
parent032a9065415ac4791c8d73bceba10cfa9fc77bf7
Changing plugin setwindow() to use page coordinate
instead of frame as it is what Flash expects. For
other port like Mac, it passes the window coordinate
to the plugin. In Android, plugin always sees the
full page and we use the visible screen rect to
indicate whether it is visible.

Change to use page coordinate across PluginView and
PluginWidget for consistency. This should fix the
problem Ben saw with plugin inside iframe (which is
caused by a race condition) and the cnnn ad problem
Adobe has.
WebCore/plugins/PluginView.cpp
WebCore/plugins/PluginView.h
WebCore/plugins/android/PluginViewAndroid.cpp
WebKit/android/jni/WebViewCore.cpp
WebKit/android/plugins/PluginWidgetAndroid.cpp
WebKit/android/plugins/PluginWidgetAndroid.h