summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLOptionsCollection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLOptionsCollection.cpp')
-rw-r--r--WebCore/html/HTMLOptionsCollection.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/WebCore/html/HTMLOptionsCollection.cpp b/WebCore/html/HTMLOptionsCollection.cpp
index d5a1a7f..0b88183 100644
--- a/WebCore/html/HTMLOptionsCollection.cpp
+++ b/WebCore/html/HTMLOptionsCollection.cpp
@@ -34,6 +34,11 @@ HTMLOptionsCollection::HTMLOptionsCollection(PassRefPtr<HTMLSelectElement> selec
{
}
+PassRefPtr<HTMLOptionsCollection> HTMLOptionsCollection::create(PassRefPtr<HTMLSelectElement> select)
+{
+ return adoptRef(new HTMLOptionsCollection(select));
+}
+
void HTMLOptionsCollection::add(PassRefPtr<HTMLOptionElement> element, ExceptionCode &ec)
{
add(element, length(), ec);