Chromium Code Reviews
DescriptionImprove performance of HTMLSelectElement::resetToDefaultSelection().
If we remove a selected OPTION from a SELECT element, selectOption() called from
resetToDefaultSelection() doesn't need to call deselectItemsWithoutValidation()
because there are no other selected OPTIONs.
- !multiple() doesn't imply DeselectOtherOptions. Updates existing callsites of
selectOption().
- Make SelectOptionFlags mandatory.
Removing 20,000 OPTIONs: 6,348ms -> 5,324ms
BUG=620142, 624220
Committed: https://crrev.com/454e5952a2623d05d272939c01b4b09535be40a3
Cr-Commit-Position: refs/heads/master@{#402767}
Patch Set 1 #
Total comments: 1
Messages
Total messages: 8 (3 generated)
|
||||||||||||||||||||||||||||