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

Unified Diff: ui/compositor/layer.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: 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
« no previous file with comments | « ui/base/win/hwnd_util.cc ('k') | ui/gfx/blit.cc » ('j') | ui/gfx/rect_base.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index e71cbd594ff27677bf7f7e34fe790a97579f9b90..eb2c5f16545953bb9ba06503e1528aae4990bd5f 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -463,7 +463,7 @@ void Layer::SendDamagedRects() {
if (scale_content_ && web_layer_is_accelerated_) {
damaged.Inset(-1, -1);
- damaged = damaged.Intersect(gfx::Rect(bounds_.size()));
+ damaged.Intersect(gfx::Rect(bounds_.size()));
}
gfx::Rect damaged_in_pixel = ConvertRectToPixel(this, damaged);
« no previous file with comments | « ui/base/win/hwnd_util.cc ('k') | ui/gfx/blit.cc » ('j') | ui/gfx/rect_base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698