OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |