| Index: third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp b/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
|
| index f159f0982e25052845d653447788655faabf1452..63919f9d0e2268929657f8a2f473d7421e43d284 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
|
| @@ -239,18 +239,6 @@ void HTMLOptionElement::setValue(const AtomicString& value)
|
|
|
| bool HTMLOptionElement::selected() const
|
| {
|
| - if (HTMLSelectElement* select = ownerSelectElement()) {
|
| - // If a stylesheet contains option:checked selectors, this function is
|
| - // called during parsing. updateListItemSelectedStates() is O(N) where N
|
| - // is the number of option elements, so the <select> parsing would be
|
| - // O(N^2) without the isFinishedParsingChildren check. Also,
|
| - // updateListItemSelectedStates() determines default selection, and we'd
|
| - // like to avoid to determine default selection with incomplete option
|
| - // list.
|
| - if (!select->isFinishedParsingChildren())
|
| - return m_isSelected;
|
| - select->updateListItemSelectedStates();
|
| - }
|
| return m_isSelected;
|
| }
|
|
|
|
|