diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-26 17:17:58 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-26 17:17:58 +0000 |
commit | 16f89d074dd62b9850adfc988c02e385da465124 (patch) | |
tree | 2e90f306726888d1e955ab8e5f00a71aa5d4935a /webkit/api/src | |
parent | 4a12e4cc0c9daad8dd006c5cfadd331f2a46b76b (diff) | |
download | chromium_src-16f89d074dd62b9850adfc988c02e385da465124.zip chromium_src-16f89d074dd62b9850adfc988c02e385da465124.tar.gz chromium_src-16f89d074dd62b9850adfc988c02e385da465124.tar.bz2 |
Add isVisible parameter to WebPlugin::updateGeometry.
This allows for geometry updates while the plugin is hidden so that when it
becomes visible, the plugin is properly positioned.
In this change, I also revised RenderWidget::SchedulePluginMove to properly
merge a move that only updates the visible state, and I fixed up TestShell
to properly handle moves that only update the visible state.
R=jam
BUG=19888,20260
TEST=covered by layout tests
Review URL: http://codereview.chromium.org/174513
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24457 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/api/src')
-rw-r--r-- | webkit/api/src/WebPluginContainerImpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/api/src/WebPluginContainerImpl.cpp b/webkit/api/src/WebPluginContainerImpl.cpp index 4b14d5b..065d85e 100644 --- a/webkit/api/src/WebPluginContainerImpl.cpp +++ b/webkit/api/src/WebPluginContainerImpl.cpp @@ -68,14 +68,14 @@ void WebPluginContainerImpl::setFrameRect(const IntRect& frameRect) { Widget::setFrameRect(frameRect); - if (!parent() || !isVisible()) + if (!parent()) return; IntRect windowRect, clipRect; Vector<IntRect> cutOutRects; calculateGeometry(frameRect, windowRect, clipRect, cutOutRects); - m_webPlugin->updateGeometry(windowRect, clipRect, cutOutRects); + m_webPlugin->updateGeometry(windowRect, clipRect, cutOutRects, isVisible()); } void WebPluginContainerImpl::paint(GraphicsContext* gc, const IntRect& damageRect) |