summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 04:19:17 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 04:19:17 +0000
commit8883b2b102293b685a487f740658d0ae33509d46 (patch)
treeebde3a7dc5ce95bfb2434b523c296a130c8adb39 /chrome
parent7fb6c8616a5fb423fd73fdd7df7705e13edf18e3 (diff)
downloadchromium_src-8883b2b102293b685a487f740658d0ae33509d46.zip
chromium_src-8883b2b102293b685a487f740658d0ae33509d46.tar.gz
chromium_src-8883b2b102293b685a487f740658d0ae33509d46.tar.bz2
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
Diffstat (limited to 'chrome')
-rw-r--r--chrome/renderer/webplugin_delegate_proxy.cc4
1 files changed, 1 insertions, 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<int>(-xf.eDx), static_cast<int>(-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<char*>(bitmap.bmBits) +