| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 : RenderSVGResourceContainer(node) | 38 : RenderSVGResourceContainer(node) |
| 39 { | 39 { |
| 40 } | 40 } |
| 41 | 41 |
| 42 RenderSVGResourceMarker::~RenderSVGResourceMarker() | 42 RenderSVGResourceMarker::~RenderSVGResourceMarker() |
| 43 { | 43 { |
| 44 } | 44 } |
| 45 | 45 |
| 46 void RenderSVGResourceMarker::layout() | 46 void RenderSVGResourceMarker::layout() |
| 47 { | 47 { |
| 48 StackStats::LayoutCheckPoint layoutCheckPoint; | |
| 49 // Invalidate all resources if our layout changed. | 48 // Invalidate all resources if our layout changed. |
| 50 if (everHadLayout() && selfNeedsLayout()) | 49 if (everHadLayout() && selfNeedsLayout()) |
| 51 RenderSVGRoot::addResourceForClientInvalidation(this); | 50 RenderSVGRoot::addResourceForClientInvalidation(this); |
| 52 | 51 |
| 53 // RenderSVGHiddenContainer overwrites layout(). We need the | 52 // RenderSVGHiddenContainer overwrites layout(). We need the |
| 54 // layouting of RenderSVGContainer for calculating local | 53 // layouting of RenderSVGContainer for calculating local |
| 55 // transformations and repaint. | 54 // transformations and repaint. |
| 56 RenderSVGContainer::layout(); | 55 RenderSVGContainer::layout(); |
| 57 } | 56 } |
| 58 | 57 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 SVGMarkerElement* marker = toSVGMarkerElement(node()); | 169 SVGMarkerElement* marker = toSVGMarkerElement(node()); |
| 171 ASSERT(marker); | 170 ASSERT(marker); |
| 172 | 171 |
| 173 SVGLengthContext lengthContext(marker); | 172 SVGLengthContext lengthContext(marker); |
| 174 float w = marker->markerWidthCurrentValue().value(lengthContext); | 173 float w = marker->markerWidthCurrentValue().value(lengthContext); |
| 175 float h = marker->markerHeightCurrentValue().value(lengthContext); | 174 float h = marker->markerHeightCurrentValue().value(lengthContext); |
| 176 m_viewport = FloatRect(0, 0, w, h); | 175 m_viewport = FloatRect(0, 0, w, h); |
| 177 } | 176 } |
| 178 | 177 |
| 179 } | 178 } |
| OLD | NEW |