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 15 matching lines...) Expand all Loading... |
26 */ | 26 */ |
27 | 27 |
28 #include "config.h" | 28 #include "config.h" |
29 #include "core/rendering/svg/RenderSVGShape.h" | 29 #include "core/rendering/svg/RenderSVGShape.h" |
30 | 30 |
31 #include "core/paint/SVGShapePainter.h" | 31 #include "core/paint/SVGShapePainter.h" |
32 #include "core/rendering/HitTestRequest.h" | 32 #include "core/rendering/HitTestRequest.h" |
33 #include "core/rendering/PointerEventsHitRules.h" | 33 #include "core/rendering/PointerEventsHitRules.h" |
34 #include "core/rendering/svg/SVGPathData.h" | 34 #include "core/rendering/svg/SVGPathData.h" |
35 #include "core/rendering/svg/SVGRenderSupport.h" | 35 #include "core/rendering/svg/SVGRenderSupport.h" |
36 #include "core/rendering/svg/SVGRenderingContext.h" | |
37 #include "core/rendering/svg/SVGResources.h" | 36 #include "core/rendering/svg/SVGResources.h" |
38 #include "core/rendering/svg/SVGResourcesCache.h" | 37 #include "core/rendering/svg/SVGResourcesCache.h" |
39 #include "core/svg/SVGGraphicsElement.h" | 38 #include "core/svg/SVGGraphicsElement.h" |
40 #include "platform/geometry/FloatPoint.h" | 39 #include "platform/geometry/FloatPoint.h" |
| 40 #include "platform/graphics/StrokeData.h" |
41 #include "wtf/MathExtras.h" | 41 #include "wtf/MathExtras.h" |
42 | 42 |
43 namespace blink { | 43 namespace blink { |
44 | 44 |
45 RenderSVGShape::RenderSVGShape(SVGGraphicsElement* node) | 45 RenderSVGShape::RenderSVGShape(SVGGraphicsElement* node) |
46 : RenderSVGModelObject(node) | 46 : RenderSVGModelObject(node) |
47 , m_needsBoundariesUpdate(false) // Default is false, the cached rects are e
mpty from the beginning. | 47 , m_needsBoundariesUpdate(false) // Default is false, the cached rects are e
mpty from the beginning. |
48 , m_needsShapeUpdate(true) // Default is true, so we grab a Path object once
from SVGGraphicsElement. | 48 , m_needsShapeUpdate(true) // Default is true, so we grab a Path object once
from SVGGraphicsElement. |
49 , m_needsTransformUpdate(true) // Default is true, so we grab a AffineTransf
orm object once from SVGGraphicsElement. | 49 , m_needsTransformUpdate(true) // Default is true, so we grab a AffineTransf
orm object once from SVGGraphicsElement. |
50 { | 50 { |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 bool RenderSVGShape::hasSmoothStroke() const | 249 bool RenderSVGShape::hasSmoothStroke() const |
250 { | 250 { |
251 const SVGRenderStyle& svgStyle = style()->svgStyle(); | 251 const SVGRenderStyle& svgStyle = style()->svgStyle(); |
252 return svgStyle.strokeDashArray()->isEmpty() | 252 return svgStyle.strokeDashArray()->isEmpty() |
253 && svgStyle.strokeMiterLimit() == SVGRenderStyle::initialStrokeMiterLimi
t() | 253 && svgStyle.strokeMiterLimit() == SVGRenderStyle::initialStrokeMiterLimi
t() |
254 && svgStyle.joinStyle() == SVGRenderStyle::initialJoinStyle() | 254 && svgStyle.joinStyle() == SVGRenderStyle::initialJoinStyle() |
255 && svgStyle.capStyle() == SVGRenderStyle::initialCapStyle(); | 255 && svgStyle.capStyle() == SVGRenderStyle::initialCapStyle(); |
256 } | 256 } |
257 | 257 |
258 } | 258 } |
OLD | NEW |