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

Unified Diff: Source/core/svg/SVGFEDisplacementMapElement.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/SVGFEDisplacementMapElement.h ('k') | Source/core/svg/SVGFEDropShadowElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFEDisplacementMapElement.cpp
diff --git a/Source/core/svg/SVGFEDisplacementMapElement.cpp b/Source/core/svg/SVGFEDisplacementMapElement.cpp
index b1f8f3ce34f3049a1bcbf54d79733a00a3035855..9b02fd4adbca44ac39f4b74e4dd56f10a0c65294 100644
--- a/Source/core/svg/SVGFEDisplacementMapElement.cpp
+++ b/Source/core/svg/SVGFEDisplacementMapElement.cpp
@@ -54,6 +54,16 @@ inline SVGFEDisplacementMapElement::SVGFEDisplacementMapElement(Document& docume
addToPropertyMap(m_yChannelSelector);
}
+void SVGFEDisplacementMapElement::trace(Visitor* visitor)
+{
+ visitor->trace(m_scale);
+ visitor->trace(m_in1);
+ visitor->trace(m_in2);
+ visitor->trace(m_xChannelSelector);
+ visitor->trace(m_yChannelSelector);
+ SVGFilterPrimitiveStandardAttributes::trace(visitor);
+}
+
DEFINE_NODE_FACTORY(SVGFEDisplacementMapElement)
bool SVGFEDisplacementMapElement::isSupportedAttribute(const QualifiedName& attrName)
@@ -110,7 +120,7 @@ void SVGFEDisplacementMapElement::svgAttributeChanged(const QualifiedName& attrN
ASSERT_NOT_REACHED();
}
-PassRefPtr<FilterEffect> SVGFEDisplacementMapElement::build(SVGFilterBuilder* filterBuilder, Filter* filter)
+PassRefPtrWillBeRawPtr<FilterEffect> SVGFEDisplacementMapElement::build(SVGFilterBuilder* filterBuilder, Filter* filter)
{
FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->currentValue()->value()));
FilterEffect* input2 = filterBuilder->getEffectById(AtomicString(m_in2->currentValue()->value()));
@@ -118,7 +128,7 @@ PassRefPtr<FilterEffect> SVGFEDisplacementMapElement::build(SVGFilterBuilder* fi
if (!input1 || !input2)
return nullptr;
- RefPtr<FilterEffect> effect = FEDisplacementMap::create(filter, m_xChannelSelector->currentValue()->enumValue(), m_yChannelSelector->currentValue()->enumValue(), m_scale->currentValue()->value());
+ RefPtrWillBeRawPtr<FilterEffect> effect = FEDisplacementMap::create(filter, m_xChannelSelector->currentValue()->enumValue(), m_yChannelSelector->currentValue()->enumValue(), m_scale->currentValue()->value());
FilterEffectVector& inputEffects = effect->inputEffects();
inputEffects.reserveCapacity(2);
inputEffects.append(input1);
« no previous file with comments | « Source/core/svg/SVGFEDisplacementMapElement.h ('k') | Source/core/svg/SVGFEDropShadowElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698