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

Unified Diff: Source/core/svg/SVGViewSpec.cpp

Issue 331583002: Oilpan: |SVGViewSpec::m_contextElement| should be a member. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months 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/SVGViewSpec.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGViewSpec.cpp
diff --git a/Source/core/svg/SVGViewSpec.cpp b/Source/core/svg/SVGViewSpec.cpp
index 24c82b4fe41c0c30b3c88830cac5134bbcaa702a..6bb831af0b4db17a47a1fec29a0ee75aa2fb20c1 100644
--- a/Source/core/svg/SVGViewSpec.cpp
+++ b/Source/core/svg/SVGViewSpec.cpp
@@ -214,13 +214,7 @@ bool SVGViewSpec::parseViewSpecInternal(const CharType* ptr, const CharType* end
void SVGViewSpec::trace(Visitor* visitor)
{
- visitor->registerWeakMembers<SVGViewSpec, &SVGViewSpec::clearWeakMembers>(this);
-}
-
-void SVGViewSpec::clearWeakMembers(Visitor* visitor)
-{
- if (!visitor->isAlive(m_contextElement))
- detachContextElement();
+ visitor->trace(m_contextElement);
}
}
« no previous file with comments | « Source/core/svg/SVGViewSpec.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698