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

Issue 2110003002: Improve performance of HTMLSelectElement::resetToDefaultSelection(). (Closed)

Created:
4 years, 5 months ago by tkent
Modified:
4 years, 5 months ago
Reviewers:
keishi
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -14 lines) Patch
M third_party/WebKit/Source/core/html/HTMLSelectElement.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSelectElement.cpp View 6 chunks +11 lines, -12 lines 1 comment Download

Messages

Total messages: 8 (3 generated)
tkent
Keishi, would you review this please? https://codereview.chromium.org/2110003002/diff/1/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp File third_party/WebKit/Source/core/html/HTMLSelectElement.cpp (right): https://codereview.chromium.org/2110003002/diff/1/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp#newcode880 third_party/WebKit/Source/core/html/HTMLSelectElement.cpp:880: selectOption(firstEnabledOption, firstEnabledOptionIndex, reason ...
4 years, 5 months ago (2016-06-29 04:45:56 UTC) #2
keishi
LGTM
4 years, 5 months ago (2016-06-29 08:54:10 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2110003002/1
4 years, 5 months ago (2016-06-29 08:58:49 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-06-29 10:12:36 UTC) #6
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 10:13:48 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/454e5952a2623d05d272939c01b4b09535be40a3
Cr-Commit-Position: refs/heads/master@{#402767}

Powered by Google App Engine
This is Rietveld 408576698