| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 OwnPtr<SVGDocumentExtensions::SVGPendingElements> clients(extensions->remove
PendingResource(m_id)); | 162 OwnPtr<SVGDocumentExtensions::SVGPendingElements> clients(extensions->remove
PendingResource(m_id)); |
| 163 | 163 |
| 164 // Cache us with the new id. | 164 // Cache us with the new id. |
| 165 extensions->addResource(m_id, this); | 165 extensions->addResource(m_id, this); |
| 166 | 166 |
| 167 // Update cached resources of pending clients. | 167 // Update cached resources of pending clients. |
| 168 const SVGDocumentExtensions::SVGPendingElements::const_iterator end = client
s->end(); | 168 const SVGDocumentExtensions::SVGPendingElements::const_iterator end = client
s->end(); |
| 169 for (SVGDocumentExtensions::SVGPendingElements::const_iterator it = clients-
>begin(); it != end; ++it) { | 169 for (SVGDocumentExtensions::SVGPendingElements::const_iterator it = clients-
>begin(); it != end; ++it) { |
| 170 ASSERT((*it)->hasPendingResources()); | 170 ASSERT((*it)->hasPendingResources()); |
| 171 (*it)->setHasPendingResources(false); | 171 (*it)->clearHasPendingResourcesIfPossible(); |
| 172 RenderObject* renderer = (*it)->renderer(); | 172 RenderObject* renderer = (*it)->renderer(); |
| 173 if (!renderer) | 173 if (!renderer) |
| 174 continue; | 174 continue; |
| 175 SVGResourcesCache::clientUpdatedFromElement(renderer, renderer->style())
; | 175 SVGResourcesCache::clientUpdatedFromElement(renderer, renderer->style())
; |
| 176 renderer->setNeedsLayout(true); | 176 renderer->setNeedsLayout(true); |
| 177 } | 177 } |
| 178 } | 178 } |
| 179 | 179 |
| 180 // FIXME: This does not belong here. | 180 // FIXME: This does not belong here. |
| 181 AffineTransform RenderSVGResourceContainer::transformOnNonScalingStroke(RenderOb
ject* object, const AffineTransform& resourceTransform) | 181 AffineTransform RenderSVGResourceContainer::transformOnNonScalingStroke(RenderOb
ject* object, const AffineTransform& resourceTransform) |
| 182 { | 182 { |
| 183 if (!object->isSVGPath()) | 183 if (!object->isSVGPath()) |
| 184 return resourceTransform; | 184 return resourceTransform; |
| 185 | 185 |
| 186 SVGStyledTransformableElement* element = static_cast<SVGStyledTransformableE
lement*>(object->node()); | 186 SVGStyledTransformableElement* element = static_cast<SVGStyledTransformableE
lement*>(object->node()); |
| 187 AffineTransform transform = element->getScreenCTM(SVGLocatable::DisallowStyl
eUpdate); | 187 AffineTransform transform = element->getScreenCTM(SVGLocatable::DisallowStyl
eUpdate); |
| 188 transform *= resourceTransform; | 188 transform *= resourceTransform; |
| 189 return transform; | 189 return transform; |
| 190 } | 190 } |
| 191 | 191 |
| 192 } | 192 } |
| 193 | 193 |
| 194 #endif | 194 #endif |
| OLD | NEW |