Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / html / HTMLDataListElement.cpp
index 2ae46d3..6e57b31 100644 (file)
 #include "core/dom/IdTargetObserverRegistry.h"
 #include "core/dom/NodeListsNodeData.h"
 #include "core/frame/UseCounter.h"
+#include "core/html/HTMLDataListOptionsCollection.h"
 
 namespace blink {
 
 inline HTMLDataListElement::HTMLDataListElement(Document& document)
     : HTMLElement(HTMLNames::datalistTag, document)
 {
-    ScriptWrappable::init(this);
 }
 
 PassRefPtrWillBeRawPtr<HTMLDataListElement> HTMLDataListElement::create(Document& document)
@@ -51,9 +51,9 @@ PassRefPtrWillBeRawPtr<HTMLDataListElement> HTMLDataListElement::create(Document
     return adoptRefWillBeNoop(new HTMLDataListElement(document));
 }
 
-PassRefPtrWillBeRawPtr<HTMLCollection> HTMLDataListElement::options()
+PassRefPtrWillBeRawPtr<HTMLDataListOptionsCollection> HTMLDataListElement::options()
 {
-    return ensureCachedCollection<HTMLCollection>(DataListOptions);
+    return ensureCachedCollection<HTMLDataListOptionsCollection>(DataListOptions);
 }
 
 void HTMLDataListElement::childrenChanged(const ChildrenChange& change)