Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(949)

Unified Diff: Source/core/html/HTMLOptionElement.cpp

Issue 465593003: Merge 178976 "Call insertedInto or removedFrom before childrenCh..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2062/
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/ContainerNode.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/core/dom/ContainerNode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698