| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 216 |
| 217 // Update cached resources of pending clients. | 217 // Update cached resources of pending clients. |
| 218 const SVGDocumentExtensions::SVGPendingElements::const_iterator end = client
s->end(); | 218 const SVGDocumentExtensions::SVGPendingElements::const_iterator end = client
s->end(); |
| 219 for (SVGDocumentExtensions::SVGPendingElements::const_iterator it = clients-
>begin(); it != end; ++it) { | 219 for (SVGDocumentExtensions::SVGPendingElements::const_iterator it = clients-
>begin(); it != end; ++it) { |
| 220 ASSERT((*it)->hasPendingResources()); | 220 ASSERT((*it)->hasPendingResources()); |
| 221 extensions.clearHasPendingResourcesIfPossible(*it); | 221 extensions.clearHasPendingResourcesIfPossible(*it); |
| 222 LayoutObject* layoutObject = (*it)->layoutObject(); | 222 LayoutObject* layoutObject = (*it)->layoutObject(); |
| 223 if (!layoutObject) | 223 if (!layoutObject) |
| 224 continue; | 224 continue; |
| 225 | 225 |
| 226 // If the client has a layer (is a non-SVGElement) we need to signal |
| 227 // invalidation in the same way as is done in markAllClientLayersForInva
lidation above. |
| 228 if (layoutObject->hasLayer() && resourceType() == FilterResourceType) { |
| 229 toLayoutBoxModelObject(layoutObject)->layer()->filterNeedsPaintInval
idation(); |
| 230 continue; |
| 231 } |
| 232 |
| 226 StyleDifference diff; | 233 StyleDifference diff; |
| 227 diff.setNeedsFullLayout(); | 234 diff.setNeedsFullLayout(); |
| 228 SVGResourcesCache::clientStyleChanged(layoutObject, diff, layoutObject->
styleRef()); | 235 SVGResourcesCache::clientStyleChanged(layoutObject, diff, layoutObject->
styleRef()); |
| 229 layoutObject->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationR
eason::SvgResourceInvalidated); | 236 layoutObject->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationR
eason::SvgResourceInvalidated); |
| 230 } | 237 } |
| 231 } | 238 } |
| 232 | 239 |
| 233 static inline void removeFromCacheAndInvalidateDependencies(LayoutObject* object
, bool needsLayout) | 240 static inline void removeFromCacheAndInvalidateDependencies(LayoutObject* object
, bool needsLayout) |
| 234 { | 241 { |
| 235 ASSERT(object); | 242 ASSERT(object); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 // This will process the rest of the ancestors. | 297 // This will process the rest of the ancestors. |
| 291 toLayoutSVGResourceContainer(current)->removeAllClientsFromCache(); | 298 toLayoutSVGResourceContainer(current)->removeAllClientsFromCache(); |
| 292 break; | 299 break; |
| 293 } | 300 } |
| 294 | 301 |
| 295 current = current->parent(); | 302 current = current->parent(); |
| 296 } | 303 } |
| 297 } | 304 } |
| 298 | 305 |
| 299 } | 306 } |
| OLD | NEW |