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 11 matching lines...) Expand all Loading... |
22 #include "config.h" | 22 #include "config.h" |
23 | 23 |
24 #include "core/rendering/svg/RenderSVGResourceMarker.h" | 24 #include "core/rendering/svg/RenderSVGResourceMarker.h" |
25 | 25 |
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/RenderSVGRoot.h" | 28 #include "core/rendering/svg/RenderSVGRoot.h" |
29 #include "core/rendering/svg/SVGRenderSupport.h" | 29 #include "core/rendering/svg/SVGRenderSupport.h" |
30 #include "core/svg/SVGElement.h" | 30 #include "core/svg/SVGElement.h" |
31 #include "core/svg/SVGMarkerElement.h" | 31 #include "core/svg/SVGMarkerElement.h" |
32 #include "core/svg/SVGStyledElement.h" | |
33 #include "core/svg/SVGStyledTransformableElement.h" | |
34 | 32 |
35 namespace WebCore { | 33 namespace WebCore { |
36 | 34 |
37 RenderSVGResourceType RenderSVGResourceMarker::s_resourceType = MarkerResourceTy
pe; | 35 RenderSVGResourceType RenderSVGResourceMarker::s_resourceType = MarkerResourceTy
pe; |
38 | 36 |
39 RenderSVGResourceMarker::RenderSVGResourceMarker(SVGMarkerElement* node) | 37 RenderSVGResourceMarker::RenderSVGResourceMarker(SVGMarkerElement* node) |
40 : RenderSVGResourceContainer(node) | 38 : RenderSVGResourceContainer(node) |
41 { | 39 { |
42 } | 40 } |
43 | 41 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 SVGMarkerElement* marker = static_cast<SVGMarkerElement*>(node()); | 170 SVGMarkerElement* marker = static_cast<SVGMarkerElement*>(node()); |
173 ASSERT(marker); | 171 ASSERT(marker); |
174 | 172 |
175 SVGLengthContext lengthContext(marker); | 173 SVGLengthContext lengthContext(marker); |
176 float w = marker->markerWidth().value(lengthContext); | 174 float w = marker->markerWidth().value(lengthContext); |
177 float h = marker->markerHeight().value(lengthContext); | 175 float h = marker->markerHeight().value(lengthContext); |
178 m_viewport = FloatRect(0, 0, w, h); | 176 m_viewport = FloatRect(0, 0, w, h); |
179 } | 177 } |
180 | 178 |
181 } | 179 } |
OLD | NEW |