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

Unified Diff: Source/core/svg/SVGFEColorMatrixElement.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/SVGFEColorMatrixElement.h ('k') | Source/core/svg/SVGFEComponentTransferElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFEColorMatrixElement.cpp
diff --git a/Source/core/svg/SVGFEColorMatrixElement.cpp b/Source/core/svg/SVGFEColorMatrixElement.cpp
index 3a02f99f00a335d2d0e53c24ca7a13f8b1a79c8c..58fd5b4c7b84723751bd39395bbb72ee06b23093 100644
--- a/Source/core/svg/SVGFEColorMatrixElement.cpp
+++ b/Source/core/svg/SVGFEColorMatrixElement.cpp
@@ -51,6 +51,14 @@ inline SVGFEColorMatrixElement::SVGFEColorMatrixElement(Document& document)
addToPropertyMap(m_type);
}
+void SVGFEColorMatrixElement::trace(Visitor* visitor)
+{
+ visitor->trace(m_values);
+ visitor->trace(m_in1);
+ visitor->trace(m_type);
+ SVGFilterPrimitiveStandardAttributes::trace(visitor);
+}
+
DEFINE_NODE_FACTORY(SVGFEColorMatrixElement)
bool SVGFEColorMatrixElement::isSupportedAttribute(const QualifiedName& attrName)
@@ -103,7 +111,7 @@ void SVGFEColorMatrixElement::svgAttributeChanged(const QualifiedName& attrName)
ASSERT_NOT_REACHED();
}
-PassRefPtr<FilterEffect> SVGFEColorMatrixElement::build(SVGFilterBuilder* filterBuilder, Filter* filter)
+PassRefPtrWillBeRawPtr<FilterEffect> SVGFEColorMatrixElement::build(SVGFilterBuilder* filterBuilder, Filter* filter)
{
FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->currentValue()->value()));
@@ -130,7 +138,7 @@ PassRefPtr<FilterEffect> SVGFEColorMatrixElement::build(SVGFilterBuilder* filter
break;
}
} else {
- RefPtr<SVGNumberList> values = m_values->currentValue();
+ RefPtrWillBeRawPtr<SVGNumberList> values = m_values->currentValue();
size_t size = values->length();
if ((filterType == FECOLORMATRIX_TYPE_MATRIX && size != 20)
@@ -141,7 +149,7 @@ PassRefPtr<FilterEffect> SVGFEColorMatrixElement::build(SVGFilterBuilder* filter
filterValues = values->toFloatVector();
}
- RefPtr<FilterEffect> effect = FEColorMatrix::create(filter, filterType, filterValues);
+ RefPtrWillBeRawPtr<FilterEffect> effect = FEColorMatrix::create(filter, filterType, filterValues);
effect->inputEffects().append(input1);
return effect.release();
}
« no previous file with comments | « Source/core/svg/SVGFEColorMatrixElement.h ('k') | Source/core/svg/SVGFEComponentTransferElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698