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

Unified Diff: Source/core/dom/Attr.cpp

Issue 293113008: Oilpan: add missing tracing of Attr objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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/dom/Attr.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Attr.cpp
diff --git a/Source/core/dom/Attr.cpp b/Source/core/dom/Attr.cpp
index ee9cafae7c327b057fbf67f9026b02b6cc0e7717..d25ebeae29043ade7c71270ffa21eb1bffd7d6e8 100644
--- a/Source/core/dom/Attr.cpp
+++ b/Source/core/dom/Attr.cpp
@@ -47,7 +47,7 @@ Attr::Attr(Element& element, const QualifiedName& name)
Attr::Attr(Document& document, const QualifiedName& name, const AtomicString& standaloneValue)
: ContainerNode(&document)
- , m_element(0)
+ , m_element(nullptr)
, m_name(name)
, m_standaloneValue(standaloneValue)
, m_ignoreChildrenChanged(0)
@@ -195,7 +195,7 @@ void Attr::detachFromElementWithValue(const AtomicString& value)
ASSERT(m_element);
ASSERT(m_standaloneValue.isNull());
m_standaloneValue = value;
- m_element = 0;
+ m_element = nullptr;
}
void Attr::attachToElement(Element* element)
@@ -205,4 +205,10 @@ void Attr::attachToElement(Element* element)
m_standaloneValue = nullAtom;
}
+void Attr::trace(Visitor* visitor)
+{
+ visitor->trace(m_element);
+ ContainerNode::trace(visitor);
+}
+
}
« no previous file with comments | « Source/core/dom/Attr.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698