From 8883b2b102293b685a487f740658d0ae33509d46 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Fri, 13 Mar 2009 04:19:17 +0000 Subject: Argh, incorrect usage of Intersect. BUG=6317 Review URL: http://codereview.chromium.org/46022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11616 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/webplugin_delegate_proxy.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chrome/renderer/webplugin_delegate_proxy.cc b/chrome/renderer/webplugin_delegate_proxy.cc index 89a0c45..87185ff 100644 --- a/chrome/renderer/webplugin_delegate_proxy.cc +++ b/chrome/renderer/webplugin_delegate_proxy.cc @@ -497,9 +497,7 @@ bool WebPluginDelegateProxy::BackgroundChanged( // intersect their rects first. gfx::Rect bitmap_rect(static_cast(-xf.eDx), static_cast(-xf.eDy), bitmap.bmWidth, bitmap.bmHeight); - gfx::Rect check_rect(rect); - check_rect.Intersect(bitmap_rect); - + gfx::Rect check_rect = rect.Intersect(bitmap_rect); int row_byte_size = check_rect.width() * (bitmap.bmBitsPixel / 8); for (int y = check_rect.y(); y < check_rect.bottom(); y++) { char* hdc_row_start = static_cast(bitmap.bmBits) + -- cgit v1.1