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

Unified Diff: Source/core/svg/SVGForeignObjectElement.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/SVGForeignObjectElement.h ('k') | Source/core/svg/SVGGeometryElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGForeignObjectElement.cpp
diff --git a/Source/core/svg/SVGForeignObjectElement.cpp b/Source/core/svg/SVGForeignObjectElement.cpp
index ef1cae155d910b642c792cdbd81dd4e6d0691e66..04d74d6ab08f7816dd0e8d8365bf61c6d1d29288 100644
--- a/Source/core/svg/SVGForeignObjectElement.cpp
+++ b/Source/core/svg/SVGForeignObjectElement.cpp
@@ -44,6 +44,15 @@ inline SVGForeignObjectElement::SVGForeignObjectElement(Document& document)
UseCounter::count(document, UseCounter::SVGForeignObjectElement);
}
+void SVGForeignObjectElement::trace(Visitor* visitor)
+{
+ visitor->trace(m_x);
+ visitor->trace(m_y);
+ visitor->trace(m_width);
+ visitor->trace(m_height);
+ SVGGraphicsElement::trace(visitor);
+}
+
DEFINE_NODE_FACTORY(SVGForeignObjectElement)
bool SVGForeignObjectElement::isSupportedAttribute(const QualifiedName& attrName)
@@ -73,7 +82,7 @@ bool SVGForeignObjectElement::isPresentationAttribute(const QualifiedName& name)
void SVGForeignObjectElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style)
{
if (name == SVGNames::widthAttr || name == SVGNames::heightAttr) {
- RefPtr<SVGLength> length = SVGLength::create(LengthModeOther);
+ RefPtrWillBeRawPtr<SVGLength> length = SVGLength::create(LengthModeOther);
TrackExceptionState exceptionState;
length->setValueAsString(value, exceptionState);
if (!exceptionState.hadException()) {
« no previous file with comments | « Source/core/svg/SVGForeignObjectElement.h ('k') | Source/core/svg/SVGGeometryElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698