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

Unified Diff: Source/core/svg/SVGFEMorphologyElement.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/SVGFEMorphologyElement.h ('k') | Source/core/svg/SVGFEOffsetElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFEMorphologyElement.cpp
diff --git a/Source/core/svg/SVGFEMorphologyElement.cpp b/Source/core/svg/SVGFEMorphologyElement.cpp
index f76d842d48cba9613ec4ec41eabb0abb0cea5d13..c630d8c3905beb040608fe2abcb5011920eb0dd7 100644
--- a/Source/core/svg/SVGFEMorphologyElement.cpp
+++ b/Source/core/svg/SVGFEMorphologyElement.cpp
@@ -49,6 +49,14 @@ inline SVGFEMorphologyElement::SVGFEMorphologyElement(Document& document)
addToPropertyMap(m_svgOperator);
}
+void SVGFEMorphologyElement::trace(Visitor* visitor)
+{
+ visitor->trace(m_radius);
+ visitor->trace(m_in1);
+ visitor->trace(m_svgOperator);
+ SVGFilterPrimitiveStandardAttributes::trace(visitor);
+}
+
DEFINE_NODE_FACTORY(SVGFEMorphologyElement)
bool SVGFEMorphologyElement::isSupportedAttribute(const QualifiedName& attrName)
@@ -105,7 +113,7 @@ void SVGFEMorphologyElement::svgAttributeChanged(const QualifiedName& attrName)
ASSERT_NOT_REACHED();
}
-PassRefPtr<FilterEffect> SVGFEMorphologyElement::build(SVGFilterBuilder* filterBuilder, Filter* filter)
+PassRefPtrWillBeRawPtr<FilterEffect> SVGFEMorphologyElement::build(SVGFilterBuilder* filterBuilder, Filter* filter)
{
FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->currentValue()->value()));
float xRadius = radiusX()->currentValue()->value();
@@ -117,7 +125,7 @@ PassRefPtr<FilterEffect> SVGFEMorphologyElement::build(SVGFilterBuilder* filterB
if (xRadius < 0 || yRadius < 0)
return nullptr;
- RefPtr<FilterEffect> effect = FEMorphology::create(filter, m_svgOperator->currentValue()->enumValue(), xRadius, yRadius);
+ RefPtrWillBeRawPtr<FilterEffect> effect = FEMorphology::create(filter, m_svgOperator->currentValue()->enumValue(), xRadius, yRadius);
effect->inputEffects().append(input1);
return effect.release();
}
« no previous file with comments | « Source/core/svg/SVGFEMorphologyElement.h ('k') | Source/core/svg/SVGFEOffsetElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698