summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_proxy.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-23 18:05:38 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-23 18:05:38 +0000
commit6ccc0a26aa6529468ca6403559cf52c581d4c4ea (patch)
tree7f081a147855c36c83941b545c1e43c9e031a066 /chrome/renderer/webplugin_delegate_proxy.cc
parent2c6f641798260fe11754b86fc566504596f7ef5d (diff)
downloadchromium_src-6ccc0a26aa6529468ca6403559cf52c581d4c4ea.zip
chromium_src-6ccc0a26aa6529468ca6403559cf52c581d4c4ea.tar.gz
chromium_src-6ccc0a26aa6529468ca6403559cf52c581d4c4ea.tar.bz2
Fix for windowed painting regression.
Review URL: http://codereview.chromium.org/4221 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2499 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_proxy.cc')
-rw-r--r--chrome/renderer/webplugin_delegate_proxy.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/renderer/webplugin_delegate_proxy.cc b/chrome/renderer/webplugin_delegate_proxy.cc
index 1c5924c..5670bf7 100644
--- a/chrome/renderer/webplugin_delegate_proxy.cc
+++ b/chrome/renderer/webplugin_delegate_proxy.cc
@@ -335,6 +335,9 @@ static size_t GetPaintBufSize(const gfx::Rect& rect) {
void WebPluginDelegateProxy::UpdateGeometry(const gfx::Rect& window_rect,
const gfx::Rect& clip_rect,
bool visible) {
+ bool moved = plugin_rect_.x() != window_rect.x() ||
+ plugin_rect_.y() != window_rect.y();
+ plugin_rect_ = window_rect;
if (!windowless_) {
deferred_clip_rect_ = clip_rect;
visible_ = visible;
@@ -343,9 +346,6 @@ void WebPluginDelegateProxy::UpdateGeometry(const gfx::Rect& window_rect,
}
HANDLE windowless_buffer_handle = NULL;
- bool moved = plugin_rect_.x() != window_rect.x() ||
- plugin_rect_.y() != window_rect.y();
- plugin_rect_ = window_rect;
if (!windowless_canvas_.get() ||
(window_rect.width() != windowless_canvas_->getDevice()->width() ||
window_rect.height() != windowless_canvas_->getDevice()->height())) {