| 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, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2008 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2005, 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005, 2007 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2009 Google, Inc. | 5 * Copyright (C) 2009 Google, Inc. |
| 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 2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 8 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> | 8 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> |
| 9 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> | 9 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> |
| 10 * Copyright (C) 2011 University of Szeged | 10 * Copyright (C) 2011 University of Szeged |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * | 21 * |
| 22 * You should have received a copy of the GNU Library General Public License | 22 * You should have received a copy of the GNU Library General Public License |
| 23 * along with this library; see the file COPYING.LIB. If not, write to | 23 * along with this library; see the file COPYING.LIB. If not, write to |
| 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 25 * Boston, MA 02110-1301, USA. | 25 * Boston, MA 02110-1301, USA. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "config.h" | 28 #include "config.h" |
| 29 | 29 |
| 30 #if ENABLE(SVG) | 30 #if ENABLE(SVG) |
| 31 #include "RenderSVGShape.h" | 31 #include "core/rendering/svg/RenderSVGShape.h" |
| 32 | 32 |
| 33 #include "HitTestRequest.h" | 33 #include "HitTestRequest.h" |
| 34 #include "LayoutRepainter.h" | 34 #include "LayoutRepainter.h" |
| 35 #include "PointerEventsHitRules.h" | 35 #include "PointerEventsHitRules.h" |
| 36 #include "RenderSVGContainer.h" | |
| 37 #include "RenderSVGResourceMarker.h" | |
| 38 #include "RenderSVGResourceSolidColor.h" | |
| 39 #include "SVGPathData.h" | |
| 40 #include "SVGRenderingContext.h" | |
| 41 #include "SVGResources.h" | |
| 42 #include "SVGResourcesCache.h" | |
| 43 #include "SVGStyledTransformableElement.h" | 36 #include "SVGStyledTransformableElement.h" |
| 44 #include "SVGTransformList.h" | 37 #include "SVGTransformList.h" |
| 45 #include "SVGURIReference.h" | 38 #include "SVGURIReference.h" |
| 46 #include "core/platform/graphics/FloatPoint.h" | 39 #include "core/platform/graphics/FloatPoint.h" |
| 47 #include "core/platform/graphics/FloatQuad.h" | 40 #include "core/platform/graphics/FloatQuad.h" |
| 48 #include "core/platform/graphics/GraphicsContext.h" | 41 #include "core/platform/graphics/GraphicsContext.h" |
| 49 #include "core/platform/graphics/StrokeStyleApplier.h" | 42 #include "core/platform/graphics/StrokeStyleApplier.h" |
| 43 #include "core/rendering/svg/RenderSVGContainer.h" |
| 44 #include "core/rendering/svg/RenderSVGResourceMarker.h" |
| 45 #include "core/rendering/svg/RenderSVGResourceSolidColor.h" |
| 46 #include "core/rendering/svg/SVGPathData.h" |
| 47 #include "core/rendering/svg/SVGRenderingContext.h" |
| 48 #include "core/rendering/svg/SVGResources.h" |
| 49 #include "core/rendering/svg/SVGResourcesCache.h" |
| 50 #include <wtf/MathExtras.h> | 50 #include <wtf/MathExtras.h> |
| 51 | 51 |
| 52 namespace WebCore { | 52 namespace WebCore { |
| 53 | 53 |
| 54 RenderSVGShape::RenderSVGShape(SVGStyledTransformableElement* node) | 54 RenderSVGShape::RenderSVGShape(SVGStyledTransformableElement* node) |
| 55 : RenderSVGModelObject(node) | 55 : RenderSVGModelObject(node) |
| 56 , m_needsBoundariesUpdate(false) // Default is false, the cached rects are e
mpty from the beginning. | 56 , m_needsBoundariesUpdate(false) // Default is false, the cached rects are e
mpty from the beginning. |
| 57 , m_needsShapeUpdate(true) // Default is true, so we grab a Path object once
from SVGStyledTransformableElement. | 57 , m_needsShapeUpdate(true) // Default is true, so we grab a Path object once
from SVGStyledTransformableElement. |
| 58 , m_needsTransformUpdate(true) // Default is true, so we grab a AffineTransf
orm object once from SVGStyledTransformableElement. | 58 , m_needsTransformUpdate(true) // Default is true, so we grab a AffineTransf
orm object once from SVGStyledTransformableElement. |
| 59 { | 59 { |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 ASSERT(m_path); | 461 ASSERT(m_path); |
| 462 | 462 |
| 463 SVGMarkerData markerData(m_markerPositions); | 463 SVGMarkerData markerData(m_markerPositions); |
| 464 m_path->apply(&markerData, SVGMarkerData::updateFromPathElement); | 464 m_path->apply(&markerData, SVGMarkerData::updateFromPathElement); |
| 465 markerData.pathIsDone(); | 465 markerData.pathIsDone(); |
| 466 } | 466 } |
| 467 | 467 |
| 468 } | 468 } |
| 469 | 469 |
| 470 #endif // ENABLE(SVG) | 470 #endif // ENABLE(SVG) |
| OLD | NEW |