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

Unified Diff: cc/draw_quad.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
« no previous file with comments | « cc/direct_renderer.cc ('k') | cc/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/draw_quad.cc
diff --git a/cc/draw_quad.cc b/cc/draw_quad.cc
index 0967ce651ebe360fff8e7f5495cdca2b07773a64..ba6f8c0756ecb2c1a1a664db4429dc0b3dff9a45 100644
--- a/cc/draw_quad.cc
+++ b/cc/draw_quad.cc
@@ -43,7 +43,8 @@ gfx::Rect DrawQuad::opaqueRect() const
void DrawQuad::setQuadVisibleRect(gfx::Rect quadVisibleRect)
{
- m_quadVisibleRect = quadVisibleRect.Intersect(m_quadRect);
+ m_quadVisibleRect = quadVisibleRect;
+ m_quadVisibleRect.Intersect(m_quadRect);
}
unsigned DrawQuad::size() const
« no previous file with comments | « cc/direct_renderer.cc ('k') | cc/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698