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

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

Issue 262093006: Oilpan: Make the Node hierarchy RefCountedGarbageCollected instead of TreeShared. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another build fix. 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/UserActionElementSet.cpp
diff --git a/Source/core/dom/UserActionElementSet.cpp b/Source/core/dom/UserActionElementSet.cpp
index 264061fd539b7220366ad1974aba8c9571c93064..e59d1fa6003c69af4516253d23b064c5baded77b 100644
--- a/Source/core/dom/UserActionElementSet.cpp
+++ b/Source/core/dom/UserActionElementSet.cpp
@@ -46,10 +46,12 @@ void UserActionElementSet::didDetach(Node* node)
clearFlags(toElement(node), IsActiveFlag | InActiveChainFlag | IsHoveredFlag);
}
+#if !ENABLE(OILPAN)
void UserActionElementSet::documentDidRemoveLastRef()
{
m_elements.clear();
}
+#endif
bool UserActionElementSet::hasFlags(const Node* node, unsigned flags) const
{
@@ -116,4 +118,9 @@ inline void UserActionElementSet::setFlags(Element* element, unsigned flags)
m_elements.add(element, flags);
}
+void UserActionElementSet::trace(Visitor* visitor)
+{
+ visitor->trace(m_elements);
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698