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

Issue 2134553002: SELECT element: Remove optionIndex argument of HTMLSelectElement::selectOption(). (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

SELECT element: Remove optionIndex argument of HTMLSelectElement::selectOption(). selectOption() doesn't need optionIndex now. So this CL removes the optionIndex argument of selectOption(), and removes a selectOption(optionIndex, flags) variant. Existing callsites of selectOption(optionIndex, flags) are updated: - If a callsite knows HTMLOptionElement pointed by the optionIndex, the HTMLOptionElement should be passed to selectOption(). - If not, we use HTMLSelectElement::item(optionIndex) to get an HTMLOptionElement pointer. This CL improves performance because we skip to calculate optionIndex from an HTMLOptionElement in some cases. blink_perf.dom: select-multiple-add: 1553 runs/s -> 1787 runs/s select-single-add: 801 runs/s -> 940 runs/s select-single-remove: 135 runs/s -> 146 runs/s BUG=577989 Committed: https://crrev.com/cd9026f15fb5741f7c263cadb803cf707d438780 Cr-Commit-Position: refs/heads/master@{#404317}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -38 lines) Patch
M third_party/WebKit/Source/core/html/HTMLSelectElement.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSelectElement.cpp View 13 chunks +25 lines, -36 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
tkent
Keishi-san, would you review this please?
4 years, 5 months ago (2016-07-08 03:09:38 UTC) #4
keishi
LGTM
4 years, 5 months ago (2016-07-08 04:16:02 UTC) #5
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/2134553002/1
4 years, 5 months ago (2016-07-08 04:23:39 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-08 09:26:46 UTC) #8
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-08 09:26:51 UTC) #9
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 09:29:47 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/cd9026f15fb5741f7c263cadb803cf707d438780
Cr-Commit-Position: refs/heads/master@{#404317}

Powered by Google App Engine
This is Rietveld 408576698