Index: Source/core/html/HTMLOptionElement.cpp |
diff --git a/Source/core/html/HTMLOptionElement.cpp b/Source/core/html/HTMLOptionElement.cpp |
index cc17a25ab6c7a59828c51509c3c0ed19bdb7482d..a02a889367e73b3afbc50809de3ccd44a1c21b21 100644 |
--- a/Source/core/html/HTMLOptionElement.cpp |
+++ b/Source/core/html/HTMLOptionElement.cpp |
@@ -348,8 +348,10 @@ Node::InsertionNotificationRequest HTMLOptionElement::insertedInto(ContainerNode |
void HTMLOptionElement::removedFrom(ContainerNode* insertionPoint) |
{ |
- if (HTMLSelectElement* select = Traversal<HTMLSelectElement>::firstAncestorOrSelf(*insertionPoint)) |
+ if (HTMLSelectElement* select = Traversal<HTMLSelectElement>::firstAncestorOrSelf(*insertionPoint)) { |
+ select->setRecalcListItems(); |
select->optionRemoved(*this); |
+ } |
HTMLElement::removedFrom(insertionPoint); |
} |