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

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

Issue 338213004: Oilpan: Trace SVGFontFaceElement::m_fontElement. (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/SVGFontFaceElement.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/SVGFontFaceElement.cpp
diff --git a/Source/core/svg/SVGFontFaceElement.cpp b/Source/core/svg/SVGFontFaceElement.cpp
index decf6d7464401c366e06949e455cf6c9e743169d..540ac3fc73734aec8b32d0b5875421a8b282b0e9 100644
--- a/Source/core/svg/SVGFontFaceElement.cpp
+++ b/Source/core/svg/SVGFontFaceElement.cpp
@@ -49,7 +49,7 @@ using namespace SVGNames;
inline SVGFontFaceElement::SVGFontFaceElement(Document& document)
: SVGElement(font_faceTag, document)
, m_fontFaceRule(StyleRuleFontFace::create())
- , m_fontElement(0)
+ , m_fontElement(nullptr)
, m_weakFactory(this)
{
ScriptWrappable::init(this);
@@ -282,7 +282,7 @@ void SVGFontFaceElement::rebuildFontFace()
list = CSSValueList::createCommaSeparated();
list->append(CSSFontFaceSrcValue::createLocal(fontFamily()));
} else {
- m_fontElement = 0;
+ m_fontElement = nullptr;
// we currently ignore all but the last src element, alternatively we could concat them
if (SVGFontFaceSrcElement* element = Traversal<SVGFontFaceSrcElement>::lastChild(*this))
list = element->srcValue();
@@ -327,7 +327,7 @@ void SVGFontFaceElement::removedFrom(ContainerNode* rootParent)
SVGElement::removedFrom(rootParent);
if (rootParent->inDocument()) {
- m_fontElement = 0;
+ m_fontElement = nullptr;
document().accessSVGExtensions().unregisterSVGFontFaceElement(this);
// FIXME: HTMLTemplateElement's document or imported document can be active?
@@ -352,6 +352,7 @@ void SVGFontFaceElement::childrenChanged(bool changedByParser, Node* beforeChang
void SVGFontFaceElement::trace(Visitor* visitor)
{
visitor->trace(m_fontFaceRule);
+ visitor->trace(m_fontElement);
SVGElement::trace(visitor);
}
« no previous file with comments | « Source/core/svg/SVGFontFaceElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698