Index: Source/core/html/HTMLOptionElement.cpp |
diff --git a/Source/core/html/HTMLOptionElement.cpp b/Source/core/html/HTMLOptionElement.cpp |
index b52c4c999d637cc87957b7dce210c7b7ae78b2bb..7b5bc1ff0043e6e5f1a0c07259eb15684654972e 100644 |
--- a/Source/core/html/HTMLOptionElement.cpp |
+++ b/Source/core/html/HTMLOptionElement.cpp |
@@ -207,11 +207,11 @@ bool HTMLOptionElement::selected() const |
// 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 isParsingInProgress check. Also, |
+ // 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->isParsingInProgress()) |
+ if (!select->isFinishedParsingChildren()) |
return m_isSelected; |
select->updateListItemSelectedStates(); |
} |