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

Side by Side Diff: Source/core/rendering/RenderLayer.cpp

Issue 220163006: Begin simplifying CompositedLayerMapping::updateAfterLayout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 updatePagination(); 322 updatePagination();
323 flags |= UpdatePagination; 323 flags |= UpdatePagination;
324 } 324 }
325 325
326 if (renderer()->hasColumns()) 326 if (renderer()->hasColumns())
327 flags |= UpdatePagination; 327 flags |= UpdatePagination;
328 328
329 for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) 329 for (RenderLayer* child = firstChild(); child; child = child->nextSibling())
330 child->updateLayerPositions(geometryMap, flags); 330 child->updateLayerPositions(geometryMap, flags);
331 331
332 if ((flags & UpdateCompositingLayers) && hasCompositedLayerMapping()) { 332 if ((flags & UpdateCompositingLayers) && hasCompositedLayerMapping())
333 CompositedLayerMapping::UpdateAfterLayoutFlags updateFlags = CompositedL ayerMapping::CompositingChildrenOnly; 333 compositedLayerMapping()->updateAfterLayout(flags & NeedsFullRepaintInBa cking, isUpdateRoot);
334 if (flags & NeedsFullRepaintInBacking)
335 updateFlags |= CompositedLayerMapping::NeedsFullRepaint;
336 if (isUpdateRoot)
337 updateFlags |= CompositedLayerMapping::IsUpdateRoot;
338 compositedLayerMapping()->updateAfterLayout(updateFlags);
339 }
340 334
341 if (geometryMap) 335 if (geometryMap)
342 geometryMap->popMappingsToAncestor(parent()); 336 geometryMap->popMappingsToAncestor(parent());
343 } 337 }
344 338
345 void RenderLayer::setAncestorChainHasSelfPaintingLayerDescendant() 339 void RenderLayer::setAncestorChainHasSelfPaintingLayerDescendant()
346 { 340 {
347 for (RenderLayer* layer = this; layer; layer = layer->parent()) { 341 for (RenderLayer* layer = this; layer; layer = layer->parent()) {
348 if (!layer->m_hasSelfPaintingLayerDescendantDirty && layer->hasSelfPaint ingLayerDescendant()) 342 if (!layer->m_hasSelfPaintingLayerDescendantDirty && layer->hasSelfPaint ingLayerDescendant())
349 break; 343 break;
(...skipping 3820 matching lines...) Expand 10 before | Expand all | Expand 10 after
4170 } 4164 }
4171 } 4165 }
4172 4166
4173 void showLayerTree(const WebCore::RenderObject* renderer) 4167 void showLayerTree(const WebCore::RenderObject* renderer)
4174 { 4168 {
4175 if (!renderer) 4169 if (!renderer)
4176 return; 4170 return;
4177 showLayerTree(renderer->enclosingLayer()); 4171 showLayerTree(renderer->enclosingLayer());
4178 } 4172 }
4179 #endif 4173 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698