| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
| 3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
| 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org> | 5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org> |
| 6 * Copyright (C) 2009 Google, Inc. | 6 * Copyright (C) 2009 Google, Inc. |
| 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> | 8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| 11 * modify it under the terms of the GNU Library General Public | 11 * modify it under the terms of the GNU Library General Public |
| 12 * License as published by the Free Software Foundation; either | 12 * License as published by the Free Software Foundation; either |
| 13 * version 2 of the License, or (at your option) any later version. | 13 * version 2 of the License, or (at your option) any later version. |
| 14 * | 14 * |
| 15 * This library is distributed in the hope that it will be useful, | 15 * This library is distributed in the hope that it will be useful, |
| 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 18 * Library General Public License for more details. | 18 * Library General Public License for more details. |
| 19 * | 19 * |
| 20 * You should have received a copy of the GNU Library General Public License | 20 * You should have received a copy of the GNU Library General Public License |
| 21 * along with this library; see the file COPYING.LIB. If not, write to | 21 * along with this library; see the file COPYING.LIB. If not, write to |
| 22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 * Boston, MA 02110-1301, USA. | 23 * Boston, MA 02110-1301, USA. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 | 27 |
| 28 #if ENABLE(SVG) | 28 #if ENABLE(SVG) |
| 29 #include "RenderSVGImage.h" | 29 #include "core/rendering/svg/RenderSVGImage.h" |
| 30 | 30 |
| 31 #include "Attr.h" | 31 #include "Attr.h" |
| 32 #include "LayoutRepainter.h" | 32 #include "LayoutRepainter.h" |
| 33 #include "PointerEventsHitRules.h" | 33 #include "PointerEventsHitRules.h" |
| 34 #include "RenderImageResource.h" | 34 #include "RenderImageResource.h" |
| 35 #include "RenderLayer.h" | 35 #include "RenderLayer.h" |
| 36 #include "RenderSVGResourceContainer.h" | |
| 37 #include "RenderSVGResourceFilter.h" | |
| 38 #include "SVGImageElement.h" | 36 #include "SVGImageElement.h" |
| 39 #include "SVGLength.h" | 37 #include "SVGLength.h" |
| 40 #include "SVGPreserveAspectRatio.h" | 38 #include "SVGPreserveAspectRatio.h" |
| 41 #include "SVGRenderingContext.h" | |
| 42 #include "SVGResources.h" | |
| 43 #include "SVGResourcesCache.h" | |
| 44 #include "core/platform/FloatConversion.h" | 39 #include "core/platform/FloatConversion.h" |
| 45 #include "core/platform/graphics/FloatQuad.h" | 40 #include "core/platform/graphics/FloatQuad.h" |
| 46 #include "core/platform/graphics/GraphicsContext.h" | 41 #include "core/platform/graphics/GraphicsContext.h" |
| 42 #include "core/rendering/svg/RenderSVGResourceContainer.h" |
| 43 #include "core/rendering/svg/RenderSVGResourceFilter.h" |
| 44 #include "core/rendering/svg/SVGRenderingContext.h" |
| 45 #include "core/rendering/svg/SVGResources.h" |
| 46 #include "core/rendering/svg/SVGResourcesCache.h" |
| 47 | 47 |
| 48 namespace WebCore { | 48 namespace WebCore { |
| 49 | 49 |
| 50 RenderSVGImage::RenderSVGImage(SVGImageElement* impl) | 50 RenderSVGImage::RenderSVGImage(SVGImageElement* impl) |
| 51 : RenderSVGModelObject(impl) | 51 : RenderSVGModelObject(impl) |
| 52 , m_needsBoundariesUpdate(true) | 52 , m_needsBoundariesUpdate(true) |
| 53 , m_needsTransformUpdate(true) | 53 , m_needsTransformUpdate(true) |
| 54 , m_imageResource(RenderImageResource::create()) | 54 , m_imageResource(RenderImageResource::create()) |
| 55 { | 55 { |
| 56 m_imageResource->initialize(this); | 56 m_imageResource->initialize(this); |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 { | 210 { |
| 211 // this is called from paint() after the localTransform has already been app
lied | 211 // this is called from paint() after the localTransform has already been app
lied |
| 212 IntRect contentRect = enclosingIntRect(repaintRectInLocalCoordinates()); | 212 IntRect contentRect = enclosingIntRect(repaintRectInLocalCoordinates()); |
| 213 if (!contentRect.isEmpty()) | 213 if (!contentRect.isEmpty()) |
| 214 rects.append(contentRect); | 214 rects.append(contentRect); |
| 215 } | 215 } |
| 216 | 216 |
| 217 } // namespace WebCore | 217 } // namespace WebCore |
| 218 | 218 |
| 219 #endif // ENABLE(SVG) | 219 #endif // ENABLE(SVG) |
| OLD | NEW |