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 2669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2680 current->removeAncestorOverflowLayer(removedLayer); | 2680 current->removeAncestorOverflowLayer(removedLayer); |
2681 current = current->nextSibling(); | 2681 current = current->nextSibling(); |
2682 } | 2682 } |
2683 } | 2683 } |
2684 | 2684 |
2685 void PaintLayer::updateOrRemoveFilterClients() | 2685 void PaintLayer::updateOrRemoveFilterClients() |
2686 { | 2686 { |
2687 const auto& filter = layoutObject()->style()->filter(); | 2687 const auto& filter = layoutObject()->style()->filter(); |
2688 if (filter.isEmpty() && m_rareData) { | 2688 if (filter.isEmpty() && m_rareData) { |
2689 m_rareData->filterInfo = nullptr; | 2689 m_rareData->filterInfo = nullptr; |
2690 } else if (filter.hasReferenceFilter()) { | 2690 } else if (filter.hasReferenceFilter() && !layoutObject()->isSVGRoot()) { |
2691 ensureFilterInfo().updateReferenceFilterClients(filter); | 2691 ensureFilterInfo().updateReferenceFilterClients(filter); |
2692 } else if (filterInfo()) { | 2692 } else if (filterInfo()) { |
2693 filterInfo()->clearFilterReferences(); | 2693 filterInfo()->clearFilterReferences(); |
2694 } | 2694 } |
2695 } | 2695 } |
2696 | 2696 |
2697 FilterEffectBuilder* PaintLayer::updateFilterEffectBuilder() const | 2697 FilterEffectBuilder* PaintLayer::updateFilterEffectBuilder() const |
2698 { | 2698 { |
2699 // TODO(chrishtr): ensure (and assert) that compositing is clean here. | 2699 // TODO(chrishtr): ensure (and assert) that compositing is clean here. |
2700 | 2700 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2903 | 2903 |
2904 void showLayerTree(const blink::LayoutObject* layoutObject) | 2904 void showLayerTree(const blink::LayoutObject* layoutObject) |
2905 { | 2905 { |
2906 if (!layoutObject) { | 2906 if (!layoutObject) { |
2907 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2907 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
2908 return; | 2908 return; |
2909 } | 2909 } |
2910 showLayerTree(layoutObject->enclosingLayer()); | 2910 showLayerTree(layoutObject->enclosingLayer()); |
2911 } | 2911 } |
2912 #endif | 2912 #endif |
OLD | NEW |