| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> |
| 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@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. All rights reserved. | 5 * Copyright (C) 2009 Google, Inc. All rights reserved. |
| 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| 11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
| 12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
| 13 * | 13 * |
| 14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
| 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
| 18 * | 18 * |
| 19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
| 20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
| 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #include "config.h" | 25 #include "config.h" |
| 26 | 26 |
| 27 #if ENABLE(SVG) | 27 #if ENABLE(SVG) |
| 28 #include "SVGRenderSupport.h" | 28 #include "core/rendering/svg/SVGRenderSupport.h" |
| 29 | 29 |
| 30 #include "NodeRenderStyle.h" | 30 #include "NodeRenderStyle.h" |
| 31 #include "RenderGeometryMap.h" | 31 #include "RenderGeometryMap.h" |
| 32 #include "RenderLayer.h" | 32 #include "RenderLayer.h" |
| 33 #include "RenderSVGResource.h" | |
| 34 #include "RenderSVGResourceClipper.h" | |
| 35 #include "RenderSVGResourceFilter.h" | |
| 36 #include "RenderSVGResourceMarker.h" | |
| 37 #include "RenderSVGResourceMasker.h" | |
| 38 #include "RenderSVGRoot.h" | |
| 39 #include "RenderSVGText.h" | |
| 40 #include "RenderSVGViewportContainer.h" | |
| 41 #include "SVGResources.h" | |
| 42 #include "SVGResourcesCache.h" | |
| 43 #include "SVGStyledElement.h" | 33 #include "SVGStyledElement.h" |
| 44 #include "core/platform/graphics/transforms/TransformState.h" | 34 #include "core/platform/graphics/transforms/TransformState.h" |
| 35 #include "core/rendering/svg/RenderSVGResource.h" |
| 36 #include "core/rendering/svg/RenderSVGResourceClipper.h" |
| 37 #include "core/rendering/svg/RenderSVGResourceFilter.h" |
| 38 #include "core/rendering/svg/RenderSVGResourceMarker.h" |
| 39 #include "core/rendering/svg/RenderSVGResourceMasker.h" |
| 40 #include "core/rendering/svg/RenderSVGRoot.h" |
| 41 #include "core/rendering/svg/RenderSVGText.h" |
| 42 #include "core/rendering/svg/RenderSVGViewportContainer.h" |
| 43 #include "core/rendering/svg/SVGResources.h" |
| 44 #include "core/rendering/svg/SVGResourcesCache.h" |
| 45 #include <wtf/UnusedParam.h> | 45 #include <wtf/UnusedParam.h> |
| 46 | 46 |
| 47 namespace WebCore { | 47 namespace WebCore { |
| 48 | 48 |
| 49 FloatRect SVGRenderSupport::repaintRectForRendererInLocalCoordinatesExcludingSVG
Shadow(const RenderObject* object) | 49 FloatRect SVGRenderSupport::repaintRectForRendererInLocalCoordinatesExcludingSVG
Shadow(const RenderObject* object) |
| 50 { | 50 { |
| 51 // FIXME: Add support for RenderSVGBlock. | 51 // FIXME: Add support for RenderSVGBlock. |
| 52 | 52 |
| 53 // FIXME: This should use a safer cast such as toRenderSVGModelObject(). | 53 // FIXME: This should use a safer cast such as toRenderSVGModelObject(). |
| 54 if (object->isSVGShape() || object->isSVGImage() || object->isSVGContainer()
) | 54 if (object->isSVGShape() || object->isSVGImage() || object->isSVGContainer()
) |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 | 459 |
| 460 void SVGRenderSupport::styleChanged(RenderObject* object) | 460 void SVGRenderSupport::styleChanged(RenderObject* object) |
| 461 { | 461 { |
| 462 RenderObject* parent = object->parent(); | 462 RenderObject* parent = object->parent(); |
| 463 SVGRenderSupport::setRendererHasSVGShadow(object, (parent && SVGRenderSuppor
t::rendererHasSVGShadow(parent)) || (object->style()->svgStyle() && object->styl
e()->svgStyle()->shadow())); | 463 SVGRenderSupport::setRendererHasSVGShadow(object, (parent && SVGRenderSuppor
t::rendererHasSVGShadow(parent)) || (object->style()->svgStyle() && object->styl
e()->svgStyle()->shadow())); |
| 464 } | 464 } |
| 465 | 465 |
| 466 } | 466 } |
| 467 | 467 |
| 468 #endif | 468 #endif |
| OLD | NEW |