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

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

Issue 328243005: Remove attrNodeListMap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Don't increase the size of ElementRareData 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
Index: Source/core/dom/Attr.cpp
diff --git a/Source/core/dom/Attr.cpp b/Source/core/dom/Attr.cpp
index 8f125c3001b544178e19b49896d95dfc8544cca0..9ea92c58bfb6f448f5992a0fc2a86adc9d84b4d0 100644
--- a/Source/core/dom/Attr.cpp
+++ b/Source/core/dom/Attr.cpp
@@ -219,15 +219,9 @@ void Attr::attachToElement(Element* element, const AtomicString& attachedLocalNa
m_standaloneValueOrAttachedLocalName = attachedLocalName;
}
-void Attr::clearWeakMembers(Visitor* visitor)
-{
- if (m_element && !visitor->isAlive(m_element))
- detachFromElementWithValue(value());
-}
-
void Attr::trace(Visitor* visitor)
{
- visitor->registerWeakMembers<Attr, &Attr::clearWeakMembers>(this);
+ visitor->trace(m_element);
ContainerNode::trace(visitor);
}
« no previous file with comments | « Source/core/dom/Attr.h ('k') | Source/core/dom/Element.h » ('j') | Source/core/dom/Element.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698