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); |
+} |
+ |
} |