OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 if (filterCached) | 92 if (filterCached) |
93 m_filter.remove(client); | 93 m_filter.remove(client); |
94 | 94 |
95 // If the filter has a cached subtree, invalidate the associated display ite
m. | 95 // If the filter has a cached subtree, invalidate the associated display ite
m. |
96 if (markForInvalidation && filterCached) | 96 if (markForInvalidation && filterCached) |
97 markClientForInvalidation(client, PaintInvalidation); | 97 markClientForInvalidation(client, PaintInvalidation); |
98 | 98 |
99 markClientForInvalidation(client, markForInvalidation ? BoundariesInvalidati
on : ParentOnlyInvalidation); | 99 markClientForInvalidation(client, markForInvalidation ? BoundariesInvalidati
on : ParentOnlyInvalidation); |
100 } | 100 } |
101 | 101 |
102 PassRefPtrWillBeRawPtr<SVGFilterBuilder> LayoutSVGResourceFilter::buildPrimitive
s(SVGFilter* filter) | 102 PassRefPtrWillBeRawPtr<SVGFilterBuilder> LayoutSVGResourceFilter::buildPrimitive
s(Filter* filter) |
103 { | 103 { |
104 SVGFilterElement* filterElement = toSVGFilterElement(element()); | 104 SVGFilterElement* filterElement = toSVGFilterElement(element()); |
105 FloatRect referenceBox = filter->referenceBox(); | 105 FloatRect referenceBox = filter->referenceBox(); |
106 | 106 |
107 // Add effects to the builder | 107 // Add effects to the builder |
108 RefPtrWillBeRawPtr<SVGFilterBuilder> builder = SVGFilterBuilder::create(filt
er->sourceGraphic()); | 108 RefPtrWillBeRawPtr<SVGFilterBuilder> builder = SVGFilterBuilder::create(filt
er->sourceGraphic()); |
109 for (SVGElement* element = Traversal<SVGElement>::firstChild(*filterElement)
; element; element = Traversal<SVGElement>::nextSibling(*element)) { | 109 for (SVGElement* element = Traversal<SVGElement>::firstChild(*filterElement)
; element; element = Traversal<SVGElement>::nextSibling(*element)) { |
110 if (!element->isFilterEffect() || !element->layoutObject()) | 110 if (!element->isFilterEffect() || !element->layoutObject()) |
111 continue; | 111 continue; |
112 | 112 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 return; | 156 return; |
157 builder->clearResultsRecursive(effect); | 157 builder->clearResultsRecursive(effect); |
158 | 158 |
159 // Issue paint invalidations for the image on the screen. | 159 // Issue paint invalidations for the image on the screen. |
160 markClientForInvalidation(it->key, PaintInvalidation); | 160 markClientForInvalidation(it->key, PaintInvalidation); |
161 } | 161 } |
162 markAllClientLayersForInvalidation(); | 162 markAllClientLayersForInvalidation(); |
163 } | 163 } |
164 | 164 |
165 } // namespace blink | 165 } // namespace blink |
OLD | NEW |