Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: Source/core/rendering/svg/RenderSVGPath.cpp

Issue 355813004: [SVG2] Elements that don't render shouldn't contribute to ancestor bboxes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698