| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 } | 46 } |
| 47 | 47 |
| 48 RenderSVGResourceContainer::~RenderSVGResourceContainer() | 48 RenderSVGResourceContainer::~RenderSVGResourceContainer() |
| 49 { | 49 { |
| 50 if (m_registered) | 50 if (m_registered) |
| 51 svgExtensionsFromNode(node())->removeResource(m_id); | 51 svgExtensionsFromNode(node())->removeResource(m_id); |
| 52 } | 52 } |
| 53 | 53 |
| 54 void RenderSVGResourceContainer::layout() | 54 void RenderSVGResourceContainer::layout() |
| 55 { | 55 { |
| 56 StackStats::LayoutCheckPoint layoutCheckPoint; | |
| 57 // Invalidate all resources if our layout changed. | 56 // Invalidate all resources if our layout changed. |
| 58 if (everHadLayout() && selfNeedsLayout()) | 57 if (everHadLayout() && selfNeedsLayout()) |
| 59 RenderSVGRoot::addResourceForClientInvalidation(this); | 58 RenderSVGRoot::addResourceForClientInvalidation(this); |
| 60 | 59 |
| 61 RenderSVGHiddenContainer::layout(); | 60 RenderSVGHiddenContainer::layout(); |
| 62 } | 61 } |
| 63 | 62 |
| 64 void RenderSVGResourceContainer::willBeDestroyed() | 63 void RenderSVGResourceContainer::willBeDestroyed() |
| 65 { | 64 { |
| 66 SVGResourcesCache::resourceDestroyed(this); | 65 SVGResourcesCache::resourceDestroyed(this); |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 if (!object->isSVGShape()) | 217 if (!object->isSVGShape()) |
| 219 return resourceTransform; | 218 return resourceTransform; |
| 220 | 219 |
| 221 SVGGraphicsElement* element = toSVGGraphicsElement(object->node()); | 220 SVGGraphicsElement* element = toSVGGraphicsElement(object->node()); |
| 222 AffineTransform transform = element->getScreenCTM(SVGLocatable::DisallowStyl
eUpdate); | 221 AffineTransform transform = element->getScreenCTM(SVGLocatable::DisallowStyl
eUpdate); |
| 223 transform *= resourceTransform; | 222 transform *= resourceTransform; |
| 224 return transform; | 223 return transform; |
| 225 } | 224 } |
| 226 | 225 |
| 227 } | 226 } |
| OLD | NEW |