| Index: third_party/WebKit/Source/core/html/forms/OptionList.h
|
| diff --git a/third_party/WebKit/Source/core/html/forms/OptionList.h b/third_party/WebKit/Source/core/html/forms/OptionList.h
|
| index 07a36cf7da558b34f7b15b39bf22eee866f290d2..d3bd115195f06e656d2025c2b2a0808229ee6863 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/OptionList.h
|
| +++ b/third_party/WebKit/Source/core/html/forms/OptionList.h
|
| @@ -16,7 +16,7 @@ class HTMLOptionElement;
|
| class CORE_EXPORT OptionListIterator final {
|
| STACK_ALLOCATED();
|
| public:
|
| - explicit OptionListIterator(HTMLSelectElement* select) : m_select(select)
|
| + explicit OptionListIterator(const HTMLSelectElement* select) : m_select(select)
|
| {
|
| if (m_select)
|
| advance(nullptr);
|
| @@ -33,7 +33,7 @@ public:
|
| private:
|
| void advance(HTMLOptionElement* current);
|
|
|
| - Member<HTMLSelectElement> m_select;
|
| + Member<const HTMLSelectElement> m_select;
|
| Member<HTMLOptionElement> m_current; // nullptr means we reached to the end.
|
| };
|
|
|
| @@ -41,13 +41,13 @@ private:
|
| class OptionList final {
|
| STACK_ALLOCATED();
|
| public:
|
| - explicit OptionList(HTMLSelectElement& select) : m_select(select) {}
|
| + explicit OptionList(const HTMLSelectElement& select) : m_select(select) {}
|
| using Iterator = OptionListIterator;
|
| Iterator begin() { return Iterator(m_select); }
|
| Iterator end() { return Iterator(nullptr); }
|
|
|
| private:
|
| - Member<HTMLSelectElement> m_select;
|
| + Member<const HTMLSelectElement> m_select;
|
| };
|
|
|
| } // namespace blink
|
|
|