| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 m_paintInvalidationBoundingBox.inflate(1); | 252 m_paintInvalidationBoundingBox.inflate(1); |
| 253 SVGRenderSupport::intersectPaintInvalidationRectWithResources(this, m_paintI
nvalidationBoundingBox); | 253 SVGRenderSupport::intersectPaintInvalidationRectWithResources(this, m_paintI
nvalidationBoundingBox); |
| 254 } | 254 } |
| 255 | 255 |
| 256 float RenderSVGShape::strokeWidth() const | 256 float RenderSVGShape::strokeWidth() const |
| 257 { | 257 { |
| 258 SVGLengthContext lengthContext(element()); | 258 SVGLengthContext lengthContext(element()); |
| 259 return style()->svgStyle().strokeWidth()->value(lengthContext); | 259 return style()->svgStyle().strokeWidth()->value(lengthContext); |
| 260 } | 260 } |
| 261 | 261 |
| 262 bool RenderSVGShape::hasSmoothStroke() const | |
| 263 { | |
| 264 const SVGRenderStyle& svgStyle = style()->svgStyle(); | |
| 265 return svgStyle.strokeDashArray()->isEmpty() | |
| 266 && svgStyle.strokeMiterLimit() == SVGRenderStyle::initialStrokeMiterLimi
t() | |
| 267 && svgStyle.joinStyle() == SVGRenderStyle::initialJoinStyle() | |
| 268 && svgStyle.capStyle() == SVGRenderStyle::initialCapStyle(); | |
| 269 } | 262 } |
| 270 | |
| 271 } | |
| OLD | NEW |