OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
244 | 244 |
245 // If the client has a layer (is a non-SVGElement) we need to signal | 245 // If the client has a layer (is a non-SVGElement) we need to signal |
246 // invalidation in the same way as is done in markAllResourceClientsForI nvalidation above. | 246 // invalidation in the same way as is done in markAllResourceClientsForI nvalidation above. |
247 if (layoutObject->hasLayer() && resourceType() == FilterResourceType) { | 247 if (layoutObject->hasLayer() && resourceType() == FilterResourceType) { |
248 if (style.hasFilter()) | 248 if (style.hasFilter()) |
249 toLayoutBoxModelObject(layoutObject)->layer()->filterNeedsPaintI nvalidation(); | 249 toLayoutBoxModelObject(layoutObject)->layer()->filterNeedsPaintI nvalidation(); |
250 // If this is the SVG root, we could have both 'filter' and | 250 // If this is the SVG root, we could have both 'filter' and |
251 // '-webkit-filter' applied, so we need to do the invalidation | 251 // '-webkit-filter' applied, so we need to do the invalidation |
252 // below as well, unless we can optimistically determine that | 252 // below as well, unless we can optimistically determine that |
253 // 'filter' does not apply to the element in question. | 253 // 'filter' does not apply to the element in question. |
254 if (!layoutObject->isSVGRoot() || !style.svgStyle().hasFilter()) | 254 // FIXME: resolve what TODO about the above comment, investigate |
255 // who added it and why. | |
Noel Gordon
2016/05/23 03:28:24
Deal with this FIXME. Two layout tests fail if I
| |
256 if (!layoutObject->isSVGRoot() || !style.hasFilter()) | |
255 continue; | 257 continue; |
256 } | 258 } |
257 | 259 |
258 StyleDifference diff; | 260 StyleDifference diff; |
259 diff.setNeedsFullLayout(); | 261 diff.setNeedsFullLayout(); |
260 SVGResourcesCache::clientStyleChanged(layoutObject, diff, style); | 262 SVGResourcesCache::clientStyleChanged(layoutObject, diff, style); |
261 layoutObject->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationR eason::SvgResourceInvalidated); | 263 layoutObject->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationR eason::SvgResourceInvalidated); |
262 } | 264 } |
263 } | 265 } |
264 | 266 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
321 // This will process the rest of the ancestors. | 323 // This will process the rest of the ancestors. |
322 toLayoutSVGResourceContainer(current)->removeAllClientsFromCache(); | 324 toLayoutSVGResourceContainer(current)->removeAllClientsFromCache(); |
323 break; | 325 break; |
324 } | 326 } |
325 | 327 |
326 current = current->parent(); | 328 current = current->parent(); |
327 } | 329 } |
328 } | 330 } |
329 | 331 |
330 } // namespace blink | 332 } // namespace blink |
OLD | NEW |