Index: Source/core/html/HTMLFormElement.cpp |
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp |
index 985b37cff00ef4c8949a3ade7c54d9a1fecdeca4..d2c14006352e2c6632479631ed0f93e170349b40 100644 |
--- a/Source/core/html/HTMLFormElement.cpp |
+++ b/Source/core/html/HTMLFormElement.cpp |
@@ -33,6 +33,7 @@ |
#include "core/dom/Document.h" |
#include "core/dom/ElementTraversal.h" |
#include "core/dom/IdTargetObserverRegistry.h" |
+#include "core/dom/NodeListsNodeData.h" |
#include "core/events/AutocompleteErrorEvent.h" |
#include "core/events/Event.h" |
#include "core/events/GenericEventQueue.h" |
@@ -589,7 +590,7 @@ void HTMLFormElement::didAssociateByParser() |
PassRefPtrWillBeRawPtr<HTMLFormControlsCollection> HTMLFormElement::elements() |
{ |
- return toHTMLFormControlsCollection(ensureCachedHTMLCollection(FormControls).get()); |
+ return ensureCachedCollection<HTMLFormControlsCollection>(FormControls); |
} |
void HTMLFormElement::collectAssociatedElements(Node& root, FormAssociatedElement::List& elements) const |