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

Unified Diff: Source/core/svg/SVGMarkerElement.cpp

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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/svg/SVGMarkerElement.h ('k') | Source/core/svg/SVGMaskElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGMarkerElement.cpp
diff --git a/Source/core/svg/SVGMarkerElement.cpp b/Source/core/svg/SVGMarkerElement.cpp
index 88cef9cb58ec762b61023a62c0c32d6f77550fd4..5f9cf9df59c462fdbc9edaceba3117f829658601 100644
--- a/Source/core/svg/SVGMarkerElement.cpp
+++ b/Source/core/svg/SVGMarkerElement.cpp
@@ -62,6 +62,18 @@ inline SVGMarkerElement::SVGMarkerElement(Document& document)
addToPropertyMap(m_markerUnits);
}
+void SVGMarkerElement::trace(Visitor* visitor)
+{
+ visitor->trace(m_refX);
+ visitor->trace(m_refY);
+ visitor->trace(m_markerWidth);
+ visitor->trace(m_markerHeight);
+ visitor->trace(m_orientAngle);
+ visitor->trace(m_markerUnits);
+ SVGElement::trace(visitor);
+ SVGFitToViewBox::trace(visitor);
+}
+
DEFINE_NODE_FACTORY(SVGMarkerElement)
AffineTransform SVGMarkerElement::viewBoxToViewTransform(float viewWidth, float viewHeight) const
@@ -127,10 +139,10 @@ void SVGMarkerElement::setOrientToAuto()
svgAttributeChanged(SVGNames::orientAttr);
}
-void SVGMarkerElement::setOrientToAngle(PassRefPtr<SVGAngleTearOff> angle)
+void SVGMarkerElement::setOrientToAngle(PassRefPtrWillBeRawPtr<SVGAngleTearOff> angle)
{
ASSERT(angle);
- RefPtr<SVGAngle> target = angle->target();
+ RefPtrWillBeRawPtr<SVGAngle> target = angle->target();
m_orientAngle->baseValue()->newValueSpecifiedUnits(target->unitType(), target->valueInSpecifiedUnits());
invalidateSVGAttributes();
svgAttributeChanged(SVGNames::orientAttr);
« no previous file with comments | « Source/core/svg/SVGMarkerElement.h ('k') | Source/core/svg/SVGMaskElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698