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

Side by Side Diff: sky/engine/core/rendering/RenderLayerClipper.cpp

Issue 965013003: Move transforms from RenderLayer to RenderBox. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.cpp ('k') | sky/engine/core/rendering/RenderObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 RenderLayer* RenderLayerClipper::clippingRootForPainting() const 311 RenderLayer* RenderLayerClipper::clippingRootForPainting() const
312 { 312 {
313 const RenderLayer* current = m_renderer.layer(); 313 const RenderLayer* current = m_renderer.layer();
314 while (current) { 314 while (current) {
315 if (current->isRootLayer()) 315 if (current->isRootLayer())
316 return const_cast<RenderLayer*>(current); 316 return const_cast<RenderLayer*>(current);
317 317
318 current = current->compositingContainer(); 318 current = current->compositingContainer();
319 ASSERT(current); 319 ASSERT(current);
320 if (current->transform()) 320 if (current->renderer()->transform())
321 return const_cast<RenderLayer*>(current); 321 return const_cast<RenderLayer*>(current);
322 } 322 }
323 323
324 ASSERT_NOT_REACHED(); 324 ASSERT_NOT_REACHED();
325 return 0; 325 return 0;
326 } 326 }
327 327
328 } // namespace blink 328 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.cpp ('k') | sky/engine/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698