| 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 12 matching lines...) Expand all Loading... |
| 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 #include "core/rendering/svg/RenderSVGShape.h" | 30 #include "core/rendering/svg/RenderSVGShape.h" |
| 31 | 31 |
| 32 #include "core/platform/graphics/FloatPoint.h" | 32 #include "core/platform/graphics/FloatPoint.h" |
| 33 #include "core/platform/graphics/FloatQuad.h" | |
| 34 #include "core/platform/graphics/GraphicsContextStateSaver.h" | 33 #include "core/platform/graphics/GraphicsContextStateSaver.h" |
| 35 #include "core/platform/graphics/StrokeStyleApplier.h" | |
| 36 #include "core/rendering/HitTestRequest.h" | 34 #include "core/rendering/HitTestRequest.h" |
| 37 #include "core/rendering/LayoutRepainter.h" | 35 #include "core/rendering/LayoutRepainter.h" |
| 38 #include "core/rendering/PointerEventsHitRules.h" | 36 #include "core/rendering/PointerEventsHitRules.h" |
| 39 #include "core/rendering/svg/RenderSVGContainer.h" | |
| 40 #include "core/rendering/svg/RenderSVGResourceMarker.h" | 37 #include "core/rendering/svg/RenderSVGResourceMarker.h" |
| 41 #include "core/rendering/svg/RenderSVGResourceSolidColor.h" | 38 #include "core/rendering/svg/RenderSVGResourceSolidColor.h" |
| 42 #include "core/rendering/svg/SVGPathData.h" | 39 #include "core/rendering/svg/SVGPathData.h" |
| 43 #include "core/rendering/svg/SVGRenderingContext.h" | 40 #include "core/rendering/svg/SVGRenderingContext.h" |
| 44 #include "core/rendering/svg/SVGResources.h" | 41 #include "core/rendering/svg/SVGResources.h" |
| 45 #include "core/rendering/svg/SVGResourcesCache.h" | 42 #include "core/rendering/svg/SVGResourcesCache.h" |
| 46 #include "core/svg/SVGStyledTransformableElement.h" | 43 #include "core/svg/SVGStyledTransformableElement.h" |
| 47 #include "core/svg/SVGTransformList.h" | |
| 48 #include "core/svg/SVGURIReference.h" | |
| 49 #include <wtf/MathExtras.h> | 44 #include <wtf/MathExtras.h> |
| 50 | 45 |
| 51 namespace WebCore { | 46 namespace WebCore { |
| 52 | 47 |
| 53 RenderSVGShape::RenderSVGShape(SVGStyledTransformableElement* node) | 48 RenderSVGShape::RenderSVGShape(SVGStyledTransformableElement* node) |
| 54 : RenderSVGModelObject(node) | 49 : RenderSVGModelObject(node) |
| 55 , m_needsBoundariesUpdate(false) // Default is false, the cached rects are e
mpty from the beginning. | 50 , m_needsBoundariesUpdate(false) // Default is false, the cached rects are e
mpty from the beginning. |
| 56 , m_needsShapeUpdate(true) // Default is true, so we grab a Path object once
from SVGStyledTransformableElement. | 51 , m_needsShapeUpdate(true) // Default is true, so we grab a Path object once
from SVGStyledTransformableElement. |
| 57 , m_needsTransformUpdate(true) // Default is true, so we grab a AffineTransf
orm object once from SVGStyledTransformableElement. | 52 , m_needsTransformUpdate(true) // Default is true, so we grab a AffineTransf
orm object once from SVGStyledTransformableElement. |
| 58 { | 53 { |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 return; | 453 return; |
| 459 | 454 |
| 460 ASSERT(m_path); | 455 ASSERT(m_path); |
| 461 | 456 |
| 462 SVGMarkerData markerData(m_markerPositions); | 457 SVGMarkerData markerData(m_markerPositions); |
| 463 m_path->apply(&markerData, SVGMarkerData::updateFromPathElement); | 458 m_path->apply(&markerData, SVGMarkerData::updateFromPathElement); |
| 464 markerData.pathIsDone(); | 459 markerData.pathIsDone(); |
| 465 } | 460 } |
| 466 | 461 |
| 467 } | 462 } |
| OLD | NEW |