summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/rendering/svg/SVGMarkerLayoutInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/rendering/svg/SVGMarkerLayoutInfo.cpp')
-rw-r--r--Source/WebCore/rendering/svg/SVGMarkerLayoutInfo.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/WebCore/rendering/svg/SVGMarkerLayoutInfo.cpp b/Source/WebCore/rendering/svg/SVGMarkerLayoutInfo.cpp
index dea5a0c..27b37f1 100644
--- a/Source/WebCore/rendering/svg/SVGMarkerLayoutInfo.cpp
+++ b/Source/WebCore/rendering/svg/SVGMarkerLayoutInfo.cpp
@@ -98,6 +98,15 @@ FloatRect SVGMarkerLayoutInfo::calculateBoundaries(RenderSVGResourceMarker* star
return bounds;
}
+void SVGMarkerLayoutInfo::clear()
+{
+ m_midMarker = 0;
+ m_elementIndex = 0;
+ m_strokeWidth = 0;
+ m_markerData.updateTypeAndMarker(SVGMarkerData::Unknown, 0);
+ m_layout.clear();
+}
+
void SVGMarkerLayoutInfo::drawMarkers(PaintInfo& paintInfo)
{
if (m_layout.isEmpty())