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

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

Issue 342283005: Make collection caching code more consistent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Stop including NodeListsNodeData.h in ContainerNode.h Created 6 years, 5 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/html/HTMLFieldSetElement.cpp
diff --git a/Source/core/html/HTMLFieldSetElement.cpp b/Source/core/html/HTMLFieldSetElement.cpp
index b39c72305ad3d30a44dcff99162d4c6a0427fac8..5c2fd2ec2fce4eb5aacc15447050658cc64ea807 100644
--- a/Source/core/html/HTMLFieldSetElement.cpp
+++ b/Source/core/html/HTMLFieldSetElement.cpp
@@ -27,6 +27,7 @@
#include "core/HTMLNames.h"
#include "core/dom/ElementTraversal.h"
+#include "core/dom/NodeListsNodeData.h"
#include "core/html/HTMLCollection.h"
#include "core/html/HTMLFormControlsCollection.h"
#include "core/html/HTMLLegendElement.h"
@@ -103,7 +104,7 @@ HTMLLegendElement* HTMLFieldSetElement::legend() const
PassRefPtrWillBeRawPtr<HTMLFormControlsCollection> HTMLFieldSetElement::elements()
{
- return toHTMLFormControlsCollection(ensureCachedHTMLCollection(FormControls).get());
+ return ensureCachedCollection<HTMLFormControlsCollection>(FormControls);
}
void HTMLFieldSetElement::refreshElementsIfNeeded() const

Powered by Google App Engine
This is Rietveld 408576698