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

Side by Side Diff: Source/core/layout/svg/LayoutSVGShape.h

Issue 1328693002: Drop special-case handling of zero-length subpaths (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase; TEs. Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/svg/LayoutSVGPath.cpp ('k') | Source/core/layout/svg/SVGSubpathData.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2006 Apple Computer, Inc 5 * Copyright (C) 2006 Apple Computer, Inc
6 * Copyright (C) 2009 Google, Inc. 6 * Copyright (C) 2009 Google, Inc.
7 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> 7 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org>
8 * Copyright (C) 2011 University of Szeged 8 * Copyright (C) 2011 University of Szeged
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool hasNonScalingStroke() const { return style()->svgStyle().vectorEffect() == VE_NON_SCALING_STROKE; } 76 bool hasNonScalingStroke() const { return style()->svgStyle().vectorEffect() == VE_NON_SCALING_STROKE; }
77 Path* nonScalingStrokePath(const Path*, const AffineTransform&) const; 77 Path* nonScalingStrokePath(const Path*, const AffineTransform&) const;
78 AffineTransform nonScalingStrokeTransform() const; 78 AffineTransform nonScalingStrokeTransform() const;
79 AffineTransform localTransform() const final { return m_localTransform ? *m_ localTransform : LayoutSVGModelObject::localTransform(); } 79 AffineTransform localTransform() const final { return m_localTransform ? *m_ localTransform : LayoutSVGModelObject::localTransform(); }
80 80
81 virtual const Vector<MarkerPosition>* markerPositions() const { return nullp tr; } 81 virtual const Vector<MarkerPosition>* markerPositions() const { return nullp tr; }
82 82
83 float strokeWidth() const; 83 float strokeWidth() const;
84 84
85 virtual ShapeGeometryCodePath geometryCodePath() const { return PathGeometry ; } 85 virtual ShapeGeometryCodePath geometryCodePath() const { return PathGeometry ; }
86 virtual const Vector<FloatPoint>* zeroLengthLineCaps() const { return nullpt r; }
87 86
88 FloatRect objectBoundingBox() const final { return m_fillBoundingBox; } 87 FloatRect objectBoundingBox() const final { return m_fillBoundingBox; }
89 88
90 const char* name() const override { return "LayoutSVGShape"; } 89 const char* name() const override { return "LayoutSVGShape"; }
91 90
92 protected: 91 protected:
93 void clearPath() { m_path.clear(); } 92 void clearPath() { m_path.clear(); }
94 93
95 // Reconstruct the Path. Subclasses may use geometry knowledge to avoid crea ting a Path. 94 // Reconstruct the Path. Subclasses may use geometry knowledge to avoid crea ting a Path.
96 virtual void updateShapeFromElement(); 95 virtual void updateShapeFromElement();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 bool m_needsBoundariesUpdate : 1; 137 bool m_needsBoundariesUpdate : 1;
139 bool m_needsShapeUpdate : 1; 138 bool m_needsShapeUpdate : 1;
140 bool m_needsTransformUpdate : 1; 139 bool m_needsTransformUpdate : 1;
141 }; 140 };
142 141
143 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGShape, isSVGShape()); 142 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGShape, isSVGShape());
144 143
145 } 144 }
146 145
147 #endif 146 #endif
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGPath.cpp ('k') | Source/core/layout/svg/SVGSubpathData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698