| 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 | 32 |
| 34 namespace WebCore { | 33 namespace WebCore { |
| 35 | 34 |
| 36 RenderSVGResourceType RenderSVGResourceMarker::s_resourceType = MarkerResourceTy
pe; | 35 RenderSVGResourceType RenderSVGResourceMarker::s_resourceType = MarkerResourceTy
pe; |
| 37 | 36 |
| 38 RenderSVGResourceMarker::RenderSVGResourceMarker(SVGMarkerElement* node) | 37 RenderSVGResourceMarker::RenderSVGResourceMarker(SVGMarkerElement* node) |
| 39 : RenderSVGResourceContainer(node) | 38 : RenderSVGResourceContainer(node) |
| 40 { | 39 { |
| 41 } | 40 } |
| 42 | 41 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 SVGMarkerElement* marker = toSVGMarkerElement(node()); | 170 SVGMarkerElement* marker = toSVGMarkerElement(node()); |
| 172 ASSERT(marker); | 171 ASSERT(marker); |
| 173 | 172 |
| 174 SVGLengthContext lengthContext(marker); | 173 SVGLengthContext lengthContext(marker); |
| 175 float w = marker->markerWidthCurrentValue().value(lengthContext); | 174 float w = marker->markerWidthCurrentValue().value(lengthContext); |
| 176 float h = marker->markerHeightCurrentValue().value(lengthContext); | 175 float h = marker->markerHeightCurrentValue().value(lengthContext); |
| 177 m_viewport = FloatRect(0, 0, w, h); | 176 m_viewport = FloatRect(0, 0, w, h); |
| 178 } | 177 } |
| 179 | 178 |
| 180 } | 179 } |
| OLD | NEW |