Index: ui/views/view_unittest.cc |
diff --git a/ui/views/view_unittest.cc b/ui/views/view_unittest.cc |
index 8b1d54eb9fb1822d73624a60f759c4c16f5b6683..484b70a1cb1ba34850c18513f126b292dfc00381 100644 |
--- a/ui/views/view_unittest.cc |
+++ b/ui/views/view_unittest.cc |
@@ -2019,7 +2019,7 @@ class TransformPaintView : public TestView { |
// Overridden from View: |
virtual void SchedulePaintInRect(const gfx::Rect& rect) { |
gfx::Rect xrect = ConvertRectToParent(rect); |
- scheduled_paint_rect_ = scheduled_paint_rect_.Union(xrect); |
+ scheduled_paint_rect_.Union(xrect); |
} |
private: |
@@ -2325,9 +2325,8 @@ TEST_F(ViewTest, SetBoundsPaint) { |
EXPECT_EQ(2U, top_view.scheduled_paint_rects_.size()); |
// There should be 2 rects, spanning from (10, 10) to (50, 50). |
- gfx::Rect paint_rect = |
- top_view.scheduled_paint_rects_[0].Union( |
- top_view.scheduled_paint_rects_[1]); |
+ gfx::Rect paint_rect = top_view.scheduled_paint_rects_[0]; |
+ paint_rect.Union(top_view.scheduled_paint_rects_[1]); |
EXPECT_EQ(gfx::Rect(10, 10, 40, 40), paint_rect); |
} |