Chromium Code Reviews
DescriptionRemove redundant calls to HTMLSelectElement::setRecalcListItems().
When we remove or insert an OPTION from/to a SELECT element,
setRecalcListItems() was called twice.
- HTMLSelectElement::childrenChanged()
- HTMLSelectElement::optionInserted() or optionRemoved().
Also, it was called even when a text node is added to a SELECT element. This CL
fixes them.
We stops to override childrenChange(). HTMLOptGroupElement and HTMLHRElement
override insertedInto() and removedFrom(), and they notify these events to the
owner SELECT element like HTMLOptionElement does.
This is a preparation to optimize setRecalcListItems().
BUG=624220
Committed: https://crrev.com/5850ba2952d13224b95b9cd78248d4216eb76d96
Cr-Commit-Position: refs/heads/master@{#402781}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 9 (3 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||