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

Unified Diff: Source/core/html/HTMLFormControlsCollection.cpp

Issue 298053002: Oilpan: add missing HTMLFormControlsCollection tracing. (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/html/HTMLFormControlsCollection.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLFormControlsCollection.cpp
diff --git a/Source/core/html/HTMLFormControlsCollection.cpp b/Source/core/html/HTMLFormControlsCollection.cpp
index 4b9eba0dcf0b9a90983a9995773b695a4420ae64..4f93dfbf16b1fbbe21dd790f163a163e2acd6fff 100644
--- a/Source/core/html/HTMLFormControlsCollection.cpp
+++ b/Source/core/html/HTMLFormControlsCollection.cpp
@@ -40,7 +40,7 @@ using namespace HTMLNames;
HTMLFormControlsCollection::HTMLFormControlsCollection(ContainerNode& ownerNode)
: HTMLCollection(ownerNode, FormControls, OverridesItemAfter)
- , m_cachedElement(0)
+ , m_cachedElement(nullptr)
, m_cachedElementOffsetInArray(0)
{
ASSERT(isHTMLFormElement(ownerNode) || isHTMLFieldSetElement(ownerNode));
@@ -105,7 +105,7 @@ Element* HTMLFormControlsCollection::virtualItemAfter(Element* previous) const
void HTMLFormControlsCollection::invalidateCache(Document* oldDocument) const
{
HTMLCollection::invalidateCache(oldDocument);
- m_cachedElement = 0;
+ m_cachedElement = nullptr;
m_cachedElementOffsetInArray = 0;
}
@@ -237,4 +237,10 @@ void HTMLFormControlsCollection::supportedPropertyNames(Vector<String>& names)
}
}
+void HTMLFormControlsCollection::trace(Visitor* visitor)
+{
+ visitor->trace(m_cachedElement);
+ HTMLCollection::trace(visitor);
+}
+
}
« no previous file with comments | « Source/core/html/HTMLFormControlsCollection.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698