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

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

Issue 262093006: Oilpan: Make the Node hierarchy RefCountedGarbageCollected instead of TreeShared. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address more comments. 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
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 08b8d3ed6a9655b519f22145c83b2d22850a822c..afcede232da32081d925625f3f4c3c6323420a79 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -3281,4 +3281,13 @@ bool Element::supportsStyleSharing() const
return true;
}
+void Element::trace(Visitor* visitor)
+{
+ // FIXME: Oilpan: Perform this tracing directly on the element
+ // rare data once that is in the heap.
+ if (hasRareData())
+ elementRareData()->trace(visitor);
+ ContainerNode::trace(visitor);
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698