| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 #include "config.h" | 23 #include "config.h" |
| 24 | 24 |
| 25 #if ENABLE(SVG) | 25 #if ENABLE(SVG) |
| 26 #include "SVGLengthContext.h" | 26 #include "SVGLengthContext.h" |
| 27 | 27 |
| 28 #include "CSSHelper.h" | 28 #include "CSSHelper.h" |
| 29 #include "ExceptionCode.h" | 29 #include "ExceptionCode.h" |
| 30 #include "Frame.h" | 30 #include "Frame.h" |
| 31 #include "RenderPart.h" | 31 #include "RenderPart.h" |
| 32 #include "RenderSVGRoot.h" | |
| 33 #include "RenderSVGViewportContainer.h" | |
| 34 #include "RenderView.h" | 32 #include "RenderView.h" |
| 35 #include "SVGNames.h" | 33 #include "SVGNames.h" |
| 36 #include "SVGSVGElement.h" | 34 #include "SVGSVGElement.h" |
| 37 #include "core/platform/graphics/FontMetrics.h" | 35 #include "core/platform/graphics/FontMetrics.h" |
| 36 #include "core/rendering/svg/RenderSVGRoot.h" |
| 37 #include "core/rendering/svg/RenderSVGViewportContainer.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 40 | 40 |
| 41 SVGLengthContext::SVGLengthContext(const SVGElement* context) | 41 SVGLengthContext::SVGLengthContext(const SVGElement* context) |
| 42 : m_context(context) | 42 : m_context(context) |
| 43 { | 43 { |
| 44 } | 44 } |
| 45 | 45 |
| 46 SVGLengthContext::SVGLengthContext(const SVGElement* context, const FloatRect& v
iewport) | 46 SVGLengthContext::SVGLengthContext(const SVGElement* context, const FloatRect& v
iewport) |
| 47 : m_context(context) | 47 : m_context(context) |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 viewportSize = svg->currentViewportSize(); | 308 viewportSize = svg->currentViewportSize(); |
| 309 | 309 |
| 310 width = viewportSize.width(); | 310 width = viewportSize.width(); |
| 311 height = viewportSize.height(); | 311 height = viewportSize.height(); |
| 312 return true; | 312 return true; |
| 313 } | 313 } |
| 314 | 314 |
| 315 } | 315 } |
| 316 | 316 |
| 317 #endif | 317 #endif |
| OLD | NEW |