| 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 2734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2745 return *rareData.filterInfo; | 2745 return *rareData.filterInfo; |
| 2746 } | 2746 } |
| 2747 | 2747 |
| 2748 void PaintLayer::removeAncestorOverflowLayer(const PaintLayer* removedLayer) | 2748 void PaintLayer::removeAncestorOverflowLayer(const PaintLayer* removedLayer) |
| 2749 { | 2749 { |
| 2750 // If the current ancestor overflow layer does not match the removed layer | 2750 // If the current ancestor overflow layer does not match the removed layer |
| 2751 // the ancestor overflow layer has changed so we can stop searching. | 2751 // the ancestor overflow layer has changed so we can stop searching. |
| 2752 if (ancestorOverflowLayer() && ancestorOverflowLayer() != removedLayer) | 2752 if (ancestorOverflowLayer() && ancestorOverflowLayer() != removedLayer) |
| 2753 return; | 2753 return; |
| 2754 | 2754 |
| 2755 if (ancestorOverflowLayer()) | 2755 if (ancestorOverflowLayer()) { |
| 2756 // TODO(pdr): When slimming paint v2 is enabled, we will need to |
| 2757 // invalidate the scroll paint property subtree for this so main |
| 2758 // thread scroll reasons are recomputed. |
| 2756 ancestorOverflowLayer()->getScrollableArea()->invalidateStickyConstraint
sFor(this); | 2759 ancestorOverflowLayer()->getScrollableArea()->invalidateStickyConstraint
sFor(this); |
| 2760 } |
| 2757 updateAncestorOverflowLayer(nullptr); | 2761 updateAncestorOverflowLayer(nullptr); |
| 2758 PaintLayer* current = m_first; | 2762 PaintLayer* current = m_first; |
| 2759 while (current) { | 2763 while (current) { |
| 2760 current->removeAncestorOverflowLayer(removedLayer); | 2764 current->removeAncestorOverflowLayer(removedLayer); |
| 2761 current = current->nextSibling(); | 2765 current = current->nextSibling(); |
| 2762 } | 2766 } |
| 2763 } | 2767 } |
| 2764 | 2768 |
| 2765 void PaintLayer::updateOrRemoveFilterClients() | 2769 void PaintLayer::updateOrRemoveFilterClients() |
| 2766 { | 2770 { |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3002 | 3006 |
| 3003 void showLayerTree(const blink::LayoutObject* layoutObject) | 3007 void showLayerTree(const blink::LayoutObject* layoutObject) |
| 3004 { | 3008 { |
| 3005 if (!layoutObject) { | 3009 if (!layoutObject) { |
| 3006 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 3010 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
| 3007 return; | 3011 return; |
| 3008 } | 3012 } |
| 3009 showLayerTree(layoutObject->enclosingLayer()); | 3013 showLayerTree(layoutObject->enclosingLayer()); |
| 3010 } | 3014 } |
| 3011 #endif | 3015 #endif |
| OLD | NEW |