From 6ccc0a26aa6529468ca6403559cf52c581d4c4ea Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Tue, 23 Sep 2008 18:05:38 +0000 Subject: 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 --- chrome/renderer/webplugin_delegate_proxy.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/renderer/webplugin_delegate_proxy.cc') 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())) { -- cgit v1.1