| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 extensions.addResource(m_id, this); | 220 extensions.addResource(m_id, this); |
| 221 | 221 |
| 222 // Update cached resources of pending clients. | 222 // Update cached resources of pending clients. |
| 223 const SVGDocumentExtensions::SVGPendingElements::const_iterator end = client
s->end(); | 223 const SVGDocumentExtensions::SVGPendingElements::const_iterator end = client
s->end(); |
| 224 for (SVGDocumentExtensions::SVGPendingElements::const_iterator it = clients-
>begin(); it != end; ++it) { | 224 for (SVGDocumentExtensions::SVGPendingElements::const_iterator it = clients-
>begin(); it != end; ++it) { |
| 225 ASSERT((*it)->hasPendingResources()); | 225 ASSERT((*it)->hasPendingResources()); |
| 226 extensions.clearHasPendingResourcesIfPossible(*it); | 226 extensions.clearHasPendingResourcesIfPossible(*it); |
| 227 RenderObject* renderer = (*it)->renderer(); | 227 RenderObject* renderer = (*it)->renderer(); |
| 228 if (!renderer) | 228 if (!renderer) |
| 229 continue; | 229 continue; |
| 230 | 230 SVGResourcesCache::clientStyleChanged(renderer, StyleDifferenceLayout, r
enderer->style()); |
| 231 StyleDifference diff; | |
| 232 diff.setNeedsFullLayout(); | |
| 233 SVGResourcesCache::clientStyleChanged(renderer, diff, renderer->style())
; | |
| 234 renderer->setNeedsLayout(); | 231 renderer->setNeedsLayout(); |
| 235 } | 232 } |
| 236 } | 233 } |
| 237 | 234 |
| 238 AffineTransform RenderSVGResourceContainer::computeResourceSpaceTransform(Render
Object* object, const AffineTransform& baseTransform, const SVGRenderStyle* svgS
tyle, unsigned short resourceMode) | 235 AffineTransform RenderSVGResourceContainer::computeResourceSpaceTransform(Render
Object* object, const AffineTransform& baseTransform, const SVGRenderStyle* svgS
tyle, unsigned short resourceMode) |
| 239 { | 236 { |
| 240 AffineTransform computedSpaceTransform = baseTransform; | 237 AffineTransform computedSpaceTransform = baseTransform; |
| 241 if (resourceMode & ApplyToTextMode) { | 238 if (resourceMode & ApplyToTextMode) { |
| 242 // Depending on the font scaling factor, we may need to apply an | 239 // Depending on the font scaling factor, we may need to apply an |
| 243 // additional transform (scale-factor) the paintserver, since text | 240 // additional transform (scale-factor) the paintserver, since text |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 if (!object->isSVGShape()) | 275 if (!object->isSVGShape()) |
| 279 return resourceTransform; | 276 return resourceTransform; |
| 280 | 277 |
| 281 SVGGraphicsElement* element = toSVGGraphicsElement(object->node()); | 278 SVGGraphicsElement* element = toSVGGraphicsElement(object->node()); |
| 282 AffineTransform transform = element->getScreenCTM(SVGGraphicsElement::Disall
owStyleUpdate); | 279 AffineTransform transform = element->getScreenCTM(SVGGraphicsElement::Disall
owStyleUpdate); |
| 283 transform *= resourceTransform; | 280 transform *= resourceTransform; |
| 284 return transform; | 281 return transform; |
| 285 } | 282 } |
| 286 | 283 |
| 287 } | 284 } |
| OLD | NEW |