Chromium Code Reviews| 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 if (!resources) | |
|
fs
2014/09/09 14:24:49
Nit: ASSERT-ing this should suffice (shouldGenerat
| |
| 457 return; | |
| 458 | |
| 459 RenderSVGResourceMarker* markerStart = resources->markerStart(); | |
| 460 | |
| 461 SVGMarkerData markerData(m_markerPositions, markerStart ? markerStart->orien tType() == SVGMarkerOrientAutoStartReverse : false); | |
| 456 m_path->apply(&markerData, SVGMarkerData::updateFromPathElement); | 462 m_path->apply(&markerData, SVGMarkerData::updateFromPathElement); |
| 457 markerData.pathIsDone(); | 463 markerData.pathIsDone(); |
| 458 } | 464 } |
| 459 | 465 |
| 460 } | 466 } |
| OLD | NEW |