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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 markAllClientLayersForInvalidation(); | 127 markAllClientLayersForInvalidation(); |
128 | 128 |
129 m_isInvalidating = false; | 129 m_isInvalidating = false; |
130 } | 130 } |
131 | 131 |
132 void RenderSVGResourceContainer::markAllClientLayersForInvalidation() | 132 void RenderSVGResourceContainer::markAllClientLayersForInvalidation() |
133 { | 133 { |
134 HashSet<RenderLayer*>::iterator layerEnd = m_clientLayers.end(); | 134 HashSet<RenderLayer*>::iterator layerEnd = m_clientLayers.end(); |
135 for (HashSet<RenderLayer*>::iterator it = m_clientLayers.begin(); it != laye
rEnd; ++it) | 135 for (HashSet<RenderLayer*>::iterator it = m_clientLayers.begin(); it != laye
rEnd; ++it) |
136 (*it)->filterNeedsPaintInvalidation(); | 136 (*it)->SVGEffectsNeedsPaintInvalidation(); |
137 } | 137 } |
138 | 138 |
139 void RenderSVGResourceContainer::markClientForInvalidation(RenderObject* client,
InvalidationMode mode) | 139 void RenderSVGResourceContainer::markClientForInvalidation(RenderObject* client,
InvalidationMode mode) |
140 { | 140 { |
141 ASSERT(client); | 141 ASSERT(client); |
142 ASSERT(!m_clients.isEmpty()); | 142 ASSERT(!m_clients.isEmpty()); |
143 | 143 |
144 switch (mode) { | 144 switch (mode) { |
145 case LayoutAndBoundariesInvalidation: | 145 case LayoutAndBoundariesInvalidation: |
146 case BoundariesInvalidation: | 146 case BoundariesInvalidation: |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 if (!object->isSVGShape()) | 278 if (!object->isSVGShape()) |
279 return resourceTransform; | 279 return resourceTransform; |
280 | 280 |
281 SVGGraphicsElement* element = toSVGGraphicsElement(object->node()); | 281 SVGGraphicsElement* element = toSVGGraphicsElement(object->node()); |
282 AffineTransform transform = element->getScreenCTM(SVGGraphicsElement::Disall
owStyleUpdate); | 282 AffineTransform transform = element->getScreenCTM(SVGGraphicsElement::Disall
owStyleUpdate); |
283 transform *= resourceTransform; | 283 transform *= resourceTransform; |
284 return transform; | 284 return transform; |
285 } | 285 } |
286 | 286 |
287 } | 287 } |
OLD | NEW |