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 2263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2274 | 2274 |
2275 m_compositedLayerMapping = adoptPtr(new CompositedLayerMapping(*this)); | 2275 m_compositedLayerMapping = adoptPtr(new CompositedLayerMapping(*this)); |
2276 m_compositedLayerMapping->setNeedsGraphicsLayerUpdate(GraphicsLayerUpdateSub
tree); | 2276 m_compositedLayerMapping->setNeedsGraphicsLayerUpdate(GraphicsLayerUpdateSub
tree); |
2277 | 2277 |
2278 updateOrRemoveFilterEffectBuilder(); | 2278 updateOrRemoveFilterEffectBuilder(); |
2279 } | 2279 } |
2280 | 2280 |
2281 void PaintLayer::clearCompositedLayerMapping(bool layerBeingDestroyed) | 2281 void PaintLayer::clearCompositedLayerMapping(bool layerBeingDestroyed) |
2282 { | 2282 { |
2283 if (!layerBeingDestroyed) { | 2283 if (!layerBeingDestroyed) { |
2284 // We need to make sure our decendants get a geometry update. In princip
le, | 2284 // We need to make sure our descendants get a geometry update. In princi
ple, |
2285 // we could call setNeedsGraphicsLayerUpdate on our children, but that w
ould | 2285 // we could call setNeedsGraphicsLayerUpdate on our children, but that w
ould |
2286 // require walking the z-order lists to find them. Instead, we over-inva
lidate | 2286 // require walking the z-order lists to find them. Instead, we over-inva
lidate |
2287 // by marking our parent as needing a geometry update. | 2287 // by marking our parent as needing a geometry update. |
2288 if (PaintLayer* compositingParent = enclosingLayerWithCompositedLayerMap
ping(ExcludeSelf)) | 2288 if (PaintLayer* compositingParent = enclosingLayerWithCompositedLayerMap
ping(ExcludeSelf)) |
2289 compositingParent->compositedLayerMapping()->setNeedsGraphicsLayerUp
date(GraphicsLayerUpdateSubtree); | 2289 compositingParent->compositedLayerMapping()->setNeedsGraphicsLayerUp
date(GraphicsLayerUpdateSubtree); |
2290 } | 2290 } |
2291 | 2291 |
2292 m_compositedLayerMapping.clear(); | 2292 m_compositedLayerMapping.clear(); |
2293 | 2293 |
2294 if (!layerBeingDestroyed) | 2294 if (!layerBeingDestroyed) |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2780 | 2780 |
2781 void showLayerTree(const blink::LayoutObject* layoutObject) | 2781 void showLayerTree(const blink::LayoutObject* layoutObject) |
2782 { | 2782 { |
2783 if (!layoutObject) { | 2783 if (!layoutObject) { |
2784 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2784 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
2785 return; | 2785 return; |
2786 } | 2786 } |
2787 showLayerTree(layoutObject->enclosingLayer()); | 2787 showLayerTree(layoutObject->enclosingLayer()); |
2788 } | 2788 } |
2789 #endif | 2789 #endif |
OLD | NEW |