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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 | 445 |
446 void RenderSVGShape::processMarkerPositions() | 446 void RenderSVGShape::processMarkerPositions() |
447 { | 447 { |
448 m_markerPositions.clear(); | 448 m_markerPositions.clear(); |
449 | 449 |
450 if (!shouldGenerateMarkerPositions()) | 450 if (!shouldGenerateMarkerPositions()) |
451 return; | 451 return; |
452 | 452 |
453 ASSERT(m_path); | 453 ASSERT(m_path); |
454 | 454 |
455 SVGMarkerData markerData(m_markerPositions); | 455 SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObject(
this); |
| 456 ASSERT(resources); |
| 457 |
| 458 RenderSVGResourceMarker* markerStart = resources->markerStart(); |
| 459 |
| 460 SVGMarkerData markerData(m_markerPositions, markerStart ? markerStart->orien
tType() == SVGMarkerOrientAutoStartReverse : false); |
456 m_path->apply(&markerData, SVGMarkerData::updateFromPathElement); | 461 m_path->apply(&markerData, SVGMarkerData::updateFromPathElement); |
457 markerData.pathIsDone(); | 462 markerData.pathIsDone(); |
458 } | 463 } |
459 | 464 |
460 } | 465 } |
OLD | NEW |