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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 return; | 102 return; |
103 | 103 |
104 m_isInvalidating = true; | 104 m_isInvalidating = true; |
105 bool needsLayout = mode == LayoutAndBoundariesInvalidation; | 105 bool needsLayout = mode == LayoutAndBoundariesInvalidation; |
106 bool markForInvalidation = mode != ParentOnlyInvalidation; | 106 bool markForInvalidation = mode != ParentOnlyInvalidation; |
107 | 107 |
108 HashSet<RenderObject*>::iterator end = m_clients.end(); | 108 HashSet<RenderObject*>::iterator end = m_clients.end(); |
109 for (HashSet<RenderObject*>::iterator it = m_clients.begin(); it != end; ++i
t) { | 109 for (HashSet<RenderObject*>::iterator it = m_clients.begin(); it != end; ++i
t) { |
110 RenderObject* client = *it; | 110 RenderObject* client = *it; |
111 if (client->isSVGResourceContainer()) { | 111 if (client->isSVGResourceContainer()) { |
112 client->toRenderSVGResourceContainer()->removeAllClientsFromCache(ma
rkForInvalidation); | 112 toRenderSVGResourceContainer(client)->removeAllClientsFromCache(mark
ForInvalidation); |
113 continue; | 113 continue; |
114 } | 114 } |
115 | 115 |
116 if (markForInvalidation) | 116 if (markForInvalidation) |
117 markClientForInvalidation(client, mode); | 117 markClientForInvalidation(client, mode); |
118 | 118 |
119 RenderSVGResource::markForLayoutAndParentResourceInvalidation(client, ne
edsLayout); | 119 RenderSVGResource::markForLayoutAndParentResourceInvalidation(client, ne
edsLayout); |
120 } | 120 } |
121 | 121 |
122 markAllClientLayersForInvalidation(); | 122 markAllClientLayersForInvalidation(); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 if (!object->isSVGShape()) | 232 if (!object->isSVGShape()) |
233 return resourceTransform; | 233 return resourceTransform; |
234 | 234 |
235 SVGGraphicsElement* element = toSVGGraphicsElement(object->node()); | 235 SVGGraphicsElement* element = toSVGGraphicsElement(object->node()); |
236 AffineTransform transform = element->getScreenCTM(SVGLocatable::DisallowStyl
eUpdate); | 236 AffineTransform transform = element->getScreenCTM(SVGLocatable::DisallowStyl
eUpdate); |
237 transform *= resourceTransform; | 237 transform *= resourceTransform; |
238 return transform; | 238 return transform; |
239 } | 239 } |
240 | 240 |
241 } | 241 } |
OLD | NEW |