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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 updatePagination(); | 294 updatePagination(); |
295 flags |= UpdatePagination; | 295 flags |= UpdatePagination; |
296 } | 296 } |
297 | 297 |
298 if (renderer()->hasColumns()) | 298 if (renderer()->hasColumns()) |
299 flags |= UpdatePagination; | 299 flags |= UpdatePagination; |
300 | 300 |
301 for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) | 301 for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) |
302 child->updateLayerPositionRecursive(flags); | 302 child->updateLayerPositionRecursive(flags); |
303 | 303 |
304 if ((flags & NeedsFullRepaintInBacking) && hasCompositedLayerMapping() && !c
ompositedLayerMapping()->paintsIntoCompositedAncestor()) | 304 // FIXME: why isn't FrameView just calling RenderLayerCompositor::repaintCom
positedLayers? Does it really impact |
| 305 // performance? |
| 306 if ((flags & NeedsFullRepaintInBacking) && hasCompositedLayerMapping() && !c
ompositedLayerMapping()->paintsIntoCompositedAncestor()) { |
305 compositedLayerMapping()->setContentsNeedDisplay(); | 307 compositedLayerMapping()->setContentsNeedDisplay(); |
| 308 // This code is called when the FrameView wants to repaint the entire fr
ame. This includes squashing content. |
| 309 compositedLayerMapping()->setSquashingContentsNeedDisplay(); |
| 310 } |
306 } | 311 } |
307 | 312 |
308 void RenderLayer::setAncestorChainHasSelfPaintingLayerDescendant() | 313 void RenderLayer::setAncestorChainHasSelfPaintingLayerDescendant() |
309 { | 314 { |
310 for (RenderLayer* layer = this; layer; layer = layer->parent()) { | 315 for (RenderLayer* layer = this; layer; layer = layer->parent()) { |
311 if (!layer->m_hasSelfPaintingLayerDescendantDirty && layer->hasSelfPaint
ingLayerDescendant()) | 316 if (!layer->m_hasSelfPaintingLayerDescendantDirty && layer->hasSelfPaint
ingLayerDescendant()) |
312 break; | 317 break; |
313 | 318 |
314 layer->m_hasSelfPaintingLayerDescendantDirty = false; | 319 layer->m_hasSelfPaintingLayerDescendantDirty = false; |
315 layer->m_hasSelfPaintingLayerDescendant = true; | 320 layer->m_hasSelfPaintingLayerDescendant = true; |
(...skipping 3514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3830 } | 3835 } |
3831 } | 3836 } |
3832 | 3837 |
3833 void showLayerTree(const WebCore::RenderObject* renderer) | 3838 void showLayerTree(const WebCore::RenderObject* renderer) |
3834 { | 3839 { |
3835 if (!renderer) | 3840 if (!renderer) |
3836 return; | 3841 return; |
3837 showLayerTree(renderer->enclosingLayer()); | 3842 showLayerTree(renderer->enclosingLayer()); |
3838 } | 3843 } |
3839 #endif | 3844 #endif |
OLD | NEW |