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

Unified Diff: Source/core/rendering/svg/RenderSVGPath.h

Issue 678863002: Move SVG shape painting code to SVGShapePainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update per reviewer comments Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/svg/RenderSVGEllipse.cpp ('k') | Source/core/rendering/svg/RenderSVGPath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGPath.h
diff --git a/Source/core/rendering/svg/RenderSVGPath.h b/Source/core/rendering/svg/RenderSVGPath.h
index 7e34de9c8506b9d02649a93961792094eac01d9c..43aa53a04a102885b6ecd1b6adcc175fe7c61eba 100644
--- a/Source/core/rendering/svg/RenderSVGPath.h
+++ b/Source/core/rendering/svg/RenderSVGPath.h
@@ -35,20 +35,27 @@ public:
explicit RenderSVGPath(SVGGraphicsElement*);
virtual ~RenderSVGPath();
+ virtual const Vector<MarkerPosition>* markerPositions() const override { return &m_markerPositions; }
+
+ virtual const Vector<FloatPoint>* zeroLengthLineCaps() const override { return &m_zeroLengthLinecapLocations; }
+ static FloatRect zeroLengthSubpathRect(const FloatPoint&, float);
+
private:
virtual const char* renderName() const override { return "RenderSVGPath"; }
virtual void updateShapeFromElement() override;
FloatRect calculateUpdatedStrokeBoundingBox() const;
- virtual void strokeShape(GraphicsContext*) const override;
virtual bool shapeDependentStrokeContains(const FloatPoint&) override;
+ FloatRect markerRect(float strokeWidth) const;
+ bool shouldGenerateMarkerPositions() const;
+ virtual void processMarkerPositions() override;
+
bool shouldStrokeZeroLengthSubpath() const;
- Path* zeroLengthLinecapPath(const FloatPoint&) const;
- FloatRect zeroLengthSubpathRect(const FloatPoint&, float) const;
void updateZeroLengthSubpaths();
+ Vector<MarkerPosition> m_markerPositions;
Vector<FloatPoint> m_zeroLengthLinecapLocations;
};
« no previous file with comments | « Source/core/rendering/svg/RenderSVGEllipse.cpp ('k') | Source/core/rendering/svg/RenderSVGPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698