Index: Source/core/html/HTMLOptionElement.cpp |
=================================================================== |
--- Source/core/html/HTMLOptionElement.cpp (revision 179984) |
+++ Source/core/html/HTMLOptionElement.cpp (working copy) |
@@ -343,6 +343,14 @@ |
return HTMLElement::insertedInto(insertionPoint); |
} |
+void HTMLOptionElement::removedFrom(ContainerNode* insertionPoint) |
+{ |
+ if (HTMLSelectElement* select = Traversal<HTMLSelectElement>::firstAncestorOrSelf(*insertionPoint)) { |
+ select->setRecalcListItems(); |
+ } |
+ HTMLElement::removedFrom(insertionPoint); |
+} |
+ |
String HTMLOptionElement::collectOptionInnerText() const |
{ |
StringBuilder text; |