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