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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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: |
147 client->setNeedsBoundariesUpdate(); | 147 client->setNeedsBoundariesUpdate(); |
148 break; | 148 break; |
149 case PaintInvalidation: | 149 case PaintInvalidation: |
150 if (client->view()) { | 150 client->setShouldDoFullPaintInvalidation(true); |
151 if (frameView()->isInPerformLayout()) | |
152 client->setShouldDoFullPaintInvalidation(true); | |
153 else | |
154 client->paintInvalidationForWholeRenderer(); | |
155 } | |
156 break; | 151 break; |
157 case ParentOnlyInvalidation: | 152 case ParentOnlyInvalidation: |
158 break; | 153 break; |
159 } | 154 } |
160 } | 155 } |
161 | 156 |
162 void RenderSVGResourceContainer::addClient(RenderObject* client) | 157 void RenderSVGResourceContainer::addClient(RenderObject* client) |
163 { | 158 { |
164 ASSERT(client); | 159 ASSERT(client); |
165 m_clients.add(client); | 160 m_clients.add(client); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 if (!object->isSVGShape()) | 273 if (!object->isSVGShape()) |
279 return resourceTransform; | 274 return resourceTransform; |
280 | 275 |
281 SVGGraphicsElement* element = toSVGGraphicsElement(object->node()); | 276 SVGGraphicsElement* element = toSVGGraphicsElement(object->node()); |
282 AffineTransform transform = element->getScreenCTM(SVGGraphicsElement::Disall
owStyleUpdate); | 277 AffineTransform transform = element->getScreenCTM(SVGGraphicsElement::Disall
owStyleUpdate); |
283 transform *= resourceTransform; | 278 transform *= resourceTransform; |
284 return transform; | 279 return transform; |
285 } | 280 } |
286 | 281 |
287 } | 282 } |
OLD | NEW |