Chromium Code Reviews| Index: Source/core/html/HTMLSelectElement.h |
| diff --git a/Source/core/html/HTMLSelectElement.h b/Source/core/html/HTMLSelectElement.h |
| index cab4c3a35f324c34ae3e86d683104f82a4b2d74a..edc1f1a63e29783c5ed9c90d52eee660285b804a 100644 |
| --- a/Source/core/html/HTMLSelectElement.h |
| +++ b/Source/core/html/HTMLSelectElement.h |
| @@ -190,6 +190,11 @@ private: |
| void listBoxDefaultEventHandler(Event*); |
| void setOptionsChangedOnRenderer(); |
| size_t searchOptionsForValue(const String&, size_t listIndexStart, size_t listIndexEnd) const; |
| + String valueAtIndex(size_t index) const |
| + { |
| + const WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >& items = listItems(); |
|
tkent
2014/09/09 02:14:45
Don't define function body in a header file if it
spartha
2014/09/09 11:09:56
Done.
|
| + return index < items.size() && isHTMLOptionElement(items[index]) ? toHTMLOptionElement(items[index])->value() : WTF::emptyString(); |
| + } |
| enum SkipDirection { |
| SkipBackwards = -1, |