Chromium Code Reviews| Index: Source/core/html/HTMLOptionsCollection.cpp |
| diff --git a/Source/core/html/HTMLOptionsCollection.cpp b/Source/core/html/HTMLOptionsCollection.cpp |
| index 276590550ccdf0fbf21706359514b21143a378cc..899b37d40859d914616ffc1eb51bf9e5a0c7766b 100644 |
| --- a/Source/core/html/HTMLOptionsCollection.cpp |
| +++ b/Source/core/html/HTMLOptionsCollection.cpp |
| @@ -108,4 +108,24 @@ void HTMLOptionsCollection::anonymousNamedGetter(const AtomicString& name, bool& |
| returnValue0 = NamedNodesCollection::create(namedItems); |
| } |
| +bool HTMLOptionsCollection::anonymousIndexedSetterRemove(unsigned index, ExceptionCode& ec) |
| +{ |
| + HTMLSelectElement* base = toHTMLSelectElement(ownerNode()); |
| + base->remove(index); |
| + return true; |
| +} |
| + |
| +bool HTMLOptionsCollection::anonymousIndexedSetter(unsigned index, PassRefPtr<HTMLOptionElement> value, ExceptionCode& ec) |
| +{ |
| + HTMLSelectElement* base = toHTMLSelectElement(ownerNode()); |
| + if (!value) { |
| + ec = TYPE_MISMATCH_ERR; |
| + return true; |
| + } |
| + base->setOption(index, value.get(), ec); |
| + return true; |
| +} |
| + |
| } //namespace |
| + |
| + |
|
haraken
2013/05/29 06:41:56
Nit: Unnecessary empty lines.
|