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 15 matching lines...) Expand all Loading... |
26 #include "core/platform/graphics/GraphicsContextStateSaver.h" | 26 #include "core/platform/graphics/GraphicsContextStateSaver.h" |
27 #include "core/rendering/svg/RenderSVGContainer.h" | 27 #include "core/rendering/svg/RenderSVGContainer.h" |
28 #include "core/rendering/svg/SVGRenderSupport.h" | 28 #include "core/rendering/svg/SVGRenderSupport.h" |
29 #include "core/svg/SVGElement.h" | 29 #include "core/svg/SVGElement.h" |
30 #include "core/svg/SVGMarkerElement.h" | 30 #include "core/svg/SVGMarkerElement.h" |
31 | 31 |
32 #include "wtf/TemporaryChange.h" | 32 #include "wtf/TemporaryChange.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 RenderSVGResourceType RenderSVGResourceMarker::s_resourceType = MarkerResourceTy
pe; | 36 const RenderSVGResourceType RenderSVGResourceMarker::s_resourceType = MarkerReso
urceType; |
37 | 37 |
38 RenderSVGResourceMarker::RenderSVGResourceMarker(SVGMarkerElement* node) | 38 RenderSVGResourceMarker::RenderSVGResourceMarker(SVGMarkerElement* node) |
39 : RenderSVGResourceContainer(node) | 39 : RenderSVGResourceContainer(node) |
40 { | 40 { |
41 } | 41 } |
42 | 42 |
43 RenderSVGResourceMarker::~RenderSVGResourceMarker() | 43 RenderSVGResourceMarker::~RenderSVGResourceMarker() |
44 { | 44 { |
45 } | 45 } |
46 | 46 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 SVGMarkerElement* marker = toSVGMarkerElement(element()); | 176 SVGMarkerElement* marker = toSVGMarkerElement(element()); |
177 ASSERT(marker); | 177 ASSERT(marker); |
178 | 178 |
179 SVGLengthContext lengthContext(marker); | 179 SVGLengthContext lengthContext(marker); |
180 float w = marker->markerWidthCurrentValue().value(lengthContext); | 180 float w = marker->markerWidthCurrentValue().value(lengthContext); |
181 float h = marker->markerHeightCurrentValue().value(lengthContext); | 181 float h = marker->markerHeightCurrentValue().value(lengthContext); |
182 m_viewport = FloatRect(0, 0, w, h); | 182 m_viewport = FloatRect(0, 0, w, h); |
183 } | 183 } |
184 | 184 |
185 } | 185 } |
OLD | NEW |