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

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

Issue 334713006: Use stricter typing for NodeLists throughout the code base (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix typo Created 6 years, 6 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/HTMLFormElement.cpp
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp
index 5eac9c275addcc64eb77887090d8ddd800340e5f..d1ebcd0512d892ff250a700eef47ae93263866ef 100644
--- a/Source/core/html/HTMLFormElement.cpp
+++ b/Source/core/html/HTMLFormElement.cpp
@@ -559,9 +559,9 @@ void HTMLFormElement::didAssociateByParser()
UseCounter::count(document(), UseCounter::FormAssociationByParser);
}
-PassRefPtrWillBeRawPtr<HTMLCollection> HTMLFormElement::elements()
+PassRefPtrWillBeRawPtr<HTMLFormControlsCollection> HTMLFormElement::elements()
{
- return ensureCachedHTMLCollection(FormControls);
+ return toHTMLFormControlsCollection(ensureCachedHTMLCollection(FormControls).get());
}
void HTMLFormElement::collectAssociatedElements(Node& root, FormAssociatedElement::List& elements) const

Powered by Google App Engine
This is Rietveld 408576698