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

Unified Diff: Source/core/svg/SVGFEOffsetElement.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/SVGFEOffsetElement.h ('k') | Source/core/svg/SVGFESpecularLightingElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFEOffsetElement.cpp
diff --git a/Source/core/svg/SVGFEOffsetElement.cpp b/Source/core/svg/SVGFEOffsetElement.cpp
index 30a718bf44ec2ad7cd19b5cfdfcaf362c1159d05..ac72e5fd0b4b03dfa92e29da8e10e0dc02803a5f 100644
--- a/Source/core/svg/SVGFEOffsetElement.cpp
+++ b/Source/core/svg/SVGFEOffsetElement.cpp
@@ -39,6 +39,14 @@ inline SVGFEOffsetElement::SVGFEOffsetElement(Document& document)
addToPropertyMap(m_in1);
}
+void SVGFEOffsetElement::trace(Visitor* visitor)
+{
+ visitor->trace(m_dx);
+ visitor->trace(m_dy);
+ visitor->trace(m_in1);
+ SVGFilterPrimitiveStandardAttributes::trace(visitor);
+}
+
DEFINE_NODE_FACTORY(SVGFEOffsetElement)
bool SVGFEOffsetElement::isSupportedAttribute(const QualifiedName& attrName)
@@ -68,14 +76,14 @@ void SVGFEOffsetElement::svgAttributeChanged(const QualifiedName& attrName)
invalidate();
}
-PassRefPtr<FilterEffect> SVGFEOffsetElement::build(SVGFilterBuilder* filterBuilder, Filter* filter)
+PassRefPtrWillBeRawPtr<FilterEffect> SVGFEOffsetElement::build(SVGFilterBuilder* filterBuilder, Filter* filter)
{
FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->currentValue()->value()));
if (!input1)
return nullptr;
- RefPtr<FilterEffect> effect = FEOffset::create(filter, m_dx->currentValue()->value(), m_dy->currentValue()->value());
+ RefPtrWillBeRawPtr<FilterEffect> effect = FEOffset::create(filter, m_dx->currentValue()->value(), m_dy->currentValue()->value());
effect->inputEffects().append(input1);
return effect.release();
}
« no previous file with comments | « Source/core/svg/SVGFEOffsetElement.h ('k') | Source/core/svg/SVGFESpecularLightingElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698