| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 return strokeBoundingBox; | 65 return strokeBoundingBox; |
| 66 } | 66 } |
| 67 | 67 |
| 68 static void useStrokeStyleToFill(GraphicsContext* context) | 68 static void useStrokeStyleToFill(GraphicsContext* context) |
| 69 { | 69 { |
| 70 if (Gradient* gradient = context->strokeGradient()) | 70 if (Gradient* gradient = context->strokeGradient()) |
| 71 context->setFillGradient(gradient); | 71 context->setFillGradient(gradient); |
| 72 else if (Pattern* pattern = context->strokePattern()) | 72 else if (Pattern* pattern = context->strokePattern()) |
| 73 context->setFillPattern(pattern); | 73 context->setFillPattern(pattern); |
| 74 else | 74 else |
| 75 context->setFillColor(context->strokeColor(), context->strokeColorSpace(
)); | 75 context->setFillColor(context->strokeColor()); |
| 76 } | 76 } |
| 77 | 77 |
| 78 void RenderSVGPath::strokeShape(GraphicsContext* context) const | 78 void RenderSVGPath::strokeShape(GraphicsContext* context) const |
| 79 { | 79 { |
| 80 if (!style()->svgStyle()->hasVisibleStroke()) | 80 if (!style()->svgStyle()->hasVisibleStroke()) |
| 81 return; | 81 return; |
| 82 | 82 |
| 83 RenderSVGShape::strokeShape(context); | 83 RenderSVGShape::strokeShape(context); |
| 84 | 84 |
| 85 if (m_zeroLengthLinecapLocations.isEmpty()) | 85 if (m_zeroLengthLinecapLocations.isEmpty()) |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 154 |
| 155 if (!strokeWidth() || !shouldStrokeZeroLengthSubpath()) | 155 if (!strokeWidth() || !shouldStrokeZeroLengthSubpath()) |
| 156 return; | 156 return; |
| 157 | 157 |
| 158 SVGSubpathData subpathData(m_zeroLengthLinecapLocations); | 158 SVGSubpathData subpathData(m_zeroLengthLinecapLocations); |
| 159 path().apply(&subpathData, SVGSubpathData::updateFromPathElement); | 159 path().apply(&subpathData, SVGSubpathData::updateFromPathElement); |
| 160 subpathData.pathIsDone(); | 160 subpathData.pathIsDone(); |
| 161 } | 161 } |
| 162 | 162 |
| 163 } | 163 } |
| OLD | NEW |