| 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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 | 897 |
| 898 // Return the enclosingCompositedLayerForPaintInvalidation for the given Layer | 898 // Return the enclosingCompositedLayerForPaintInvalidation for the given Layer |
| 899 // including crossing frame boundaries. | 899 // including crossing frame boundaries. |
| 900 PaintLayer* PaintLayer::enclosingLayerForPaintInvalidationCrossingFrameBoundarie
s() const | 900 PaintLayer* PaintLayer::enclosingLayerForPaintInvalidationCrossingFrameBoundarie
s() const |
| 901 { | 901 { |
| 902 const PaintLayer* layer = this; | 902 const PaintLayer* layer = this; |
| 903 PaintLayer* compositedLayer = 0; | 903 PaintLayer* compositedLayer = 0; |
| 904 while (!compositedLayer) { | 904 while (!compositedLayer) { |
| 905 compositedLayer = layer->enclosingLayerForPaintInvalidation(); | 905 compositedLayer = layer->enclosingLayerForPaintInvalidation(); |
| 906 if (!compositedLayer) { | 906 if (!compositedLayer) { |
| 907 RELEASE_ASSERT(layer->layoutObject()->frame()); |
| 907 LayoutObject* owner = layer->layoutObject()->frame()->ownerLayoutObj
ect(); | 908 LayoutObject* owner = layer->layoutObject()->frame()->ownerLayoutObj
ect(); |
| 908 if (!owner) | 909 if (!owner) |
| 909 break; | 910 break; |
| 910 layer = owner->enclosingLayer(); | 911 layer = owner->enclosingLayer(); |
| 911 } | 912 } |
| 912 } | 913 } |
| 913 return compositedLayer; | 914 return compositedLayer; |
| 914 } | 915 } |
| 915 | 916 |
| 916 PaintLayer* PaintLayer::enclosingLayerForPaintInvalidation() const | 917 PaintLayer* PaintLayer::enclosingLayerForPaintInvalidation() const |
| (...skipping 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2753 | 2754 |
| 2754 void showLayerTree(const blink::LayoutObject* layoutObject) | 2755 void showLayerTree(const blink::LayoutObject* layoutObject) |
| 2755 { | 2756 { |
| 2756 if (!layoutObject) { | 2757 if (!layoutObject) { |
| 2757 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2758 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
| 2758 return; | 2759 return; |
| 2759 } | 2760 } |
| 2760 showLayerTree(layoutObject->enclosingLayer()); | 2761 showLayerTree(layoutObject->enclosingLayer()); |
| 2761 } | 2762 } |
| 2762 #endif | 2763 #endif |
| OLD | NEW |