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