| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2009 Google, Inc. | 5 * Copyright (C) 2009 Google, Inc. |
| 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 */ | 22 */ |
| 23 | 23 |
| 24 #include "config.h" | 24 #include "config.h" |
| 25 | 25 |
| 26 #include "core/rendering/svg/RenderSVGRoot.h" | 26 #include "core/rendering/svg/RenderSVGRoot.h" |
| 27 | 27 |
| 28 #include "core/page/Chrome.h" | 28 #include "core/page/Chrome.h" |
| 29 #include "core/page/ChromeClient.h" | 29 #include "core/page/ChromeClient.h" |
| 30 #include "core/frame/Frame.h" | 30 #include "core/frame/Frame.h" |
| 31 #include "core/page/Page.h" | 31 #include "core/page/Page.h" |
| 32 #include "core/platform/graphics/GraphicsContext.h" | |
| 33 #include "core/rendering/HitTestResult.h" | 32 #include "core/rendering/HitTestResult.h" |
| 34 #include "core/rendering/LayoutRectRecorder.h" | 33 #include "core/rendering/LayoutRectRecorder.h" |
| 35 #include "core/rendering/LayoutRepainter.h" | 34 #include "core/rendering/LayoutRepainter.h" |
| 36 #include "core/rendering/RenderPart.h" | 35 #include "core/rendering/RenderPart.h" |
| 37 #include "core/rendering/RenderView.h" | 36 #include "core/rendering/RenderView.h" |
| 38 #include "core/rendering/svg/RenderSVGResourceContainer.h" | 37 #include "core/rendering/svg/RenderSVGResourceContainer.h" |
| 39 #include "core/rendering/svg/SVGRenderingContext.h" | 38 #include "core/rendering/svg/SVGRenderingContext.h" |
| 40 #include "core/rendering/svg/SVGResources.h" | 39 #include "core/rendering/svg/SVGResources.h" |
| 41 #include "core/rendering/svg/SVGResourcesCache.h" | 40 #include "core/rendering/svg/SVGResourcesCache.h" |
| 42 #include "core/svg/SVGElement.h" | 41 #include "core/svg/SVGElement.h" |
| 43 #include "core/svg/SVGSVGElement.h" | 42 #include "core/svg/SVGSVGElement.h" |
| 44 #include "core/svg/graphics/SVGImage.h" | 43 #include "core/svg/graphics/SVGImage.h" |
| 44 #include "platform/graphics/GraphicsContext.h" |
| 45 | 45 |
| 46 using namespace std; | 46 using namespace std; |
| 47 | 47 |
| 48 namespace WebCore { | 48 namespace WebCore { |
| 49 | 49 |
| 50 RenderSVGRoot::RenderSVGRoot(SVGElement* node) | 50 RenderSVGRoot::RenderSVGRoot(SVGElement* node) |
| 51 : RenderReplaced(node) | 51 : RenderReplaced(node) |
| 52 , m_objectBoundingBoxValid(false) | 52 , m_objectBoundingBoxValid(false) |
| 53 , m_isLayoutSizeChanged(false) | 53 , m_isLayoutSizeChanged(false) |
| 54 , m_needsBoundariesOrTransformUpdate(true) | 54 , m_needsBoundariesOrTransformUpdate(true) |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 | 448 |
| 449 bool RenderSVGRoot::hasRelativeLogicalHeight() const | 449 bool RenderSVGRoot::hasRelativeLogicalHeight() const |
| 450 { | 450 { |
| 451 SVGSVGElement* svg = toSVGSVGElement(node()); | 451 SVGSVGElement* svg = toSVGSVGElement(node()); |
| 452 ASSERT(svg); | 452 ASSERT(svg); |
| 453 | 453 |
| 454 return svg->intrinsicHeight(SVGSVGElement::IgnoreCSSProperties).isPercent(); | 454 return svg->intrinsicHeight(SVGSVGElement::IgnoreCSSProperties).isPercent(); |
| 455 } | 455 } |
| 456 | 456 |
| 457 } | 457 } |
| OLD | NEW |