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

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

Issue 845873004: Delete a bunch of paint invalidation rect computing code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 // FIXME(sky): Remove 284 // FIXME(sky): Remove
285 return renderObject->positionFromPaintInvalidationContainer(paintInvalidatio nContainer, paintInvalidationState); 285 return renderObject->positionFromPaintInvalidationContainer(paintInvalidatio nContainer, paintInvalidationState);
286 } 286 }
287 287
288 void RenderLayer::mapRectToPaintInvalidationBacking(const RenderObject* renderOb ject, const RenderLayerModelObject* paintInvalidationContainer, LayoutRect& rect , const PaintInvalidationState* paintInvalidationState) 288 void RenderLayer::mapRectToPaintInvalidationBacking(const RenderObject* renderOb ject, const RenderLayerModelObject* paintInvalidationContainer, LayoutRect& rect , const PaintInvalidationState* paintInvalidationState)
289 { 289 {
290 // FIXME(sky): Remove 290 // FIXME(sky): Remove
291 renderObject->mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, paintInvalidationState); 291 renderObject->mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, paintInvalidationState);
292 } 292 }
293 293
294 LayoutRect RenderLayer::computePaintInvalidationRect(const RenderObject* renderO bject, const RenderLayer* paintInvalidationContainer, const PaintInvalidationSta te* paintInvalidationState)
295 {
296 // FIXME(sky): Remove
297 return renderObject->computePaintInvalidationRect(paintInvalidationContainer ->renderer(), paintInvalidationState);
298 }
299
300 void RenderLayer::dirty3DTransformedDescendantStatus() 294 void RenderLayer::dirty3DTransformedDescendantStatus()
301 { 295 {
302 RenderLayerStackingNode* stackingNode = m_stackingNode->ancestorStackingCont extNode(); 296 RenderLayerStackingNode* stackingNode = m_stackingNode->ancestorStackingCont extNode();
303 if (!stackingNode) 297 if (!stackingNode)
304 return; 298 return;
305 299
306 stackingNode->layer()->m_3DTransformedDescendantStatusDirty = true; 300 stackingNode->layer()->m_3DTransformedDescendantStatusDirty = true;
307 301
308 // This propagates up through preserve-3d hierarchies to the enclosing flatt ening layer. 302 // This propagates up through preserve-3d hierarchies to the enclosing flatt ening layer.
309 // Note that preserves3D() creates stacking context, so we can just run up t he stacking containers. 303 // Note that preserves3D() creates stacking context, so we can just run up t he stacking containers.
(...skipping 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after
2032 } 2026 }
2033 } 2027 }
2034 2028
2035 void showLayerTree(const blink::RenderObject* renderer) 2029 void showLayerTree(const blink::RenderObject* renderer)
2036 { 2030 {
2037 if (!renderer) 2031 if (!renderer)
2038 return; 2032 return;
2039 showLayerTree(renderer->enclosingLayer()); 2033 showLayerTree(renderer->enclosingLayer());
2040 } 2034 }
2041 #endif 2035 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.h ('k') | sky/engine/core/rendering/RenderLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698