| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 m_zeroLengthLinecapLocations.clear(); | 153 m_zeroLengthLinecapLocations.clear(); |
| 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 bool RenderSVGPath::isRenderingDisabled() const |
| 164 { |
| 165 // For a polygon, polyline and path, rendering is disabled if the d |
| 166 // or points attribute is missing or empty. |
| 167 return path().isEmpty(); |
| 163 } | 168 } |
| 169 |
| 170 } |
| OLD | NEW |