| 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 2690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2701 filterInfo->setBuilder(nullptr); | 2701 filterInfo->setBuilder(nullptr); |
| 2702 | 2702 |
| 2703 return; | 2703 return; |
| 2704 } | 2704 } |
| 2705 | 2705 |
| 2706 ensureFilterInfo()->setBuilder(nullptr); | 2706 ensureFilterInfo()->setBuilder(nullptr); |
| 2707 } | 2707 } |
| 2708 | 2708 |
| 2709 void PaintLayer::filterNeedsPaintInvalidation() | 2709 void PaintLayer::filterNeedsPaintInvalidation() |
| 2710 { | 2710 { |
| 2711 { | 2711 toElement(layoutObject()->node())->scheduleSVGFilterLayerUpdateHack(); |
| 2712 DeprecatedScheduleStyleRecalcDuringLayout marker(layoutObject()->documen
t().lifecycle()); | |
| 2713 // It's possible for scheduleSVGFilterLayerUpdateHack to schedule a styl
e recalc, which | |
| 2714 // is a problem because this function can be called while performing lay
out. | |
| 2715 // Presumably this represents an illegal data flow of layout or composit
ing | |
| 2716 // information into the style system. | |
| 2717 toElement(layoutObject()->node())->scheduleSVGFilterLayerUpdateHack(); | |
| 2718 } | |
| 2719 | 2712 |
| 2720 layoutObject()->setShouldDoFullPaintInvalidation(); | 2713 layoutObject()->setShouldDoFullPaintInvalidation(); |
| 2721 } | 2714 } |
| 2722 | 2715 |
| 2723 void PaintLayer::addLayerHitTestRects(LayerHitTestRects& rects) const | 2716 void PaintLayer::addLayerHitTestRects(LayerHitTestRects& rects) const |
| 2724 { | 2717 { |
| 2725 computeSelfHitTestRects(rects); | 2718 computeSelfHitTestRects(rects); |
| 2726 for (PaintLayer* child = firstChild(); child; child = child->nextSibling()) | 2719 for (PaintLayer* child = firstChild(); child; child = child->nextSibling()) |
| 2727 child->addLayerHitTestRects(rects); | 2720 child->addLayerHitTestRects(rects); |
| 2728 } | 2721 } |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2830 | 2823 |
| 2831 void showLayerTree(const blink::LayoutObject* layoutObject) | 2824 void showLayerTree(const blink::LayoutObject* layoutObject) |
| 2832 { | 2825 { |
| 2833 if (!layoutObject) { | 2826 if (!layoutObject) { |
| 2834 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2827 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
| 2835 return; | 2828 return; |
| 2836 } | 2829 } |
| 2837 showLayerTree(layoutObject->enclosingLayer()); | 2830 showLayerTree(layoutObject->enclosingLayer()); |
| 2838 } | 2831 } |
| 2839 #endif | 2832 #endif |
| OLD | NEW |