Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Unified Diff: content/browser/renderer_host/backing_store_win.cc

Issue 11110004: Make gfx::Rect class operations consistently mutate the class they are called on. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: cc/ fixes Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/backing_store_win.cc
diff --git a/content/browser/renderer_host/backing_store_win.cc b/content/browser/renderer_host/backing_store_win.cc
index 2c8d43588792fab5cdd1e50bf14461c821960cb9..a16bd80367843ba30d66ff6f65e6dc033a0a68b1 100644
--- a/content/browser/renderer_host/backing_store_win.cc
+++ b/content/browser/renderer_host/backing_store_win.cc
@@ -143,7 +143,8 @@ void BackingStoreWin::PaintToBackingStore(
gfx::Rect view_rect(size());
for (size_t i = 0; i < copy_rects.size(); i++) {
- gfx::Rect paint_rect = view_rect.Intersect(copy_rects[i]);
+ gfx::Rect paint_rect = view_rect;
+ paint_rect.Intersect(copy_rects[i]);
CallStretchDIBits(hdc_,
paint_rect.x(),
paint_rect.y(),
« no previous file with comments | « content/browser/renderer_host/backing_store_mac.mm ('k') | content/browser/renderer_host/gtk_window_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698