| 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 |
| 11 * version 2 of the License, or (at your option) any later version. | 11 * version 2 of the License, or (at your option) any later version. |
| 12 * | 12 * |
| 13 * This library is distributed in the hope that it will be useful, | 13 * This library is distributed in the hope that it will be useful, |
| 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 * Library General Public License for more details. | 16 * Library General Public License for more details. |
| 17 * | 17 * |
| 18 * You should have received a copy of the GNU Library General Public License | 18 * You should have received a copy of the GNU Library General Public License |
| 19 * along with this library; see the file COPYING.LIB. If not, write to | 19 * along with this library; see the file COPYING.LIB. If not, write to |
| 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 21 * Boston, MA 02110-1301, USA. | 21 * Boston, MA 02110-1301, USA. |
| 22 */ | 22 */ |
| 23 | 23 |
| 24 #include "config.h" | 24 #include "config.h" |
| 25 | 25 |
| 26 #if ENABLE(SVG) | 26 #if ENABLE(SVG) |
| 27 #include "RenderSVGRoot.h" | 27 #include "core/rendering/svg/RenderSVGRoot.h" |
| 28 | 28 |
| 29 #include "Chrome.h" | 29 #include "Chrome.h" |
| 30 #include "ChromeClient.h" | 30 #include "ChromeClient.h" |
| 31 #include "Frame.h" | 31 #include "Frame.h" |
| 32 #include "HitTestResult.h" | 32 #include "HitTestResult.h" |
| 33 #include "LayoutRepainter.h" | 33 #include "LayoutRepainter.h" |
| 34 #include "Page.h" | 34 #include "Page.h" |
| 35 #include "RenderPart.h" | 35 #include "RenderPart.h" |
| 36 #include "RenderSVGContainer.h" | |
| 37 #include "RenderSVGResource.h" | |
| 38 #include "RenderSVGResourceContainer.h" | |
| 39 #include "RenderSVGResourceFilter.h" | |
| 40 #include "RenderView.h" | 36 #include "RenderView.h" |
| 41 #include "SVGLength.h" | 37 #include "SVGLength.h" |
| 42 #include "SVGRenderingContext.h" | |
| 43 #include "SVGResources.h" | |
| 44 #include "SVGResourcesCache.h" | |
| 45 #include "SVGSVGElement.h" | 38 #include "SVGSVGElement.h" |
| 46 #include "SVGStyledElement.h" | 39 #include "SVGStyledElement.h" |
| 47 #include "SVGViewSpec.h" | 40 #include "SVGViewSpec.h" |
| 48 #include "core/platform/graphics/GraphicsContext.h" | 41 #include "core/platform/graphics/GraphicsContext.h" |
| 49 #include "core/platform/graphics/transforms/TransformState.h" | 42 #include "core/platform/graphics/transforms/TransformState.h" |
| 43 #include "core/rendering/svg/RenderSVGContainer.h" |
| 44 #include "core/rendering/svg/RenderSVGResource.h" |
| 45 #include "core/rendering/svg/RenderSVGResourceContainer.h" |
| 46 #include "core/rendering/svg/RenderSVGResourceFilter.h" |
| 47 #include "core/rendering/svg/SVGRenderingContext.h" |
| 48 #include "core/rendering/svg/SVGResources.h" |
| 49 #include "core/rendering/svg/SVGResourcesCache.h" |
| 50 | 50 |
| 51 using namespace std; | 51 using namespace std; |
| 52 | 52 |
| 53 namespace WebCore { | 53 namespace WebCore { |
| 54 | 54 |
| 55 RenderSVGRoot::RenderSVGRoot(SVGStyledElement* node) | 55 RenderSVGRoot::RenderSVGRoot(SVGStyledElement* node) |
| 56 : RenderReplaced(node) | 56 : RenderReplaced(node) |
| 57 , m_objectBoundingBoxValid(false) | 57 , m_objectBoundingBoxValid(false) |
| 58 , m_isLayoutSizeChanged(false) | 58 , m_isLayoutSizeChanged(false) |
| 59 , m_needsBoundariesOrTransformUpdate(true) | 59 , m_needsBoundariesOrTransformUpdate(true) |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 while (svgRoot && !svgRoot->isSVGRoot()) | 497 while (svgRoot && !svgRoot->isSVGRoot()) |
| 498 svgRoot = svgRoot->parent(); | 498 svgRoot = svgRoot->parent(); |
| 499 if (!svgRoot) | 499 if (!svgRoot) |
| 500 return; | 500 return; |
| 501 toRenderSVGRoot(svgRoot)->m_resourcesNeedingToInvalidateClients.add(resource
); | 501 toRenderSVGRoot(svgRoot)->m_resourcesNeedingToInvalidateClients.add(resource
); |
| 502 } | 502 } |
| 503 | 503 |
| 504 } | 504 } |
| 505 | 505 |
| 506 #endif // ENABLE(SVG) | 506 #endif // ENABLE(SVG) |
| OLD | NEW |