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

Issue 2126023005: SELECT element: Improve performance of HTMLSelectElement::optionIndexToBeShown(). (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, blink-reviews-layout_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

SELECT element: Improve performance of HTMLSelectElement::optionIndexToBeShown(). It was usually O(N). This CL makes it O(1) by changing the return value from index to HTMLOptionElement*, and renames it to optionToBeShown(). Also, - Change the argument type of LayoutMenuList::didSetSelectionIndex and didUpdateActiveOption; index -> HTMLOptionElement*. - Rename didSetSelectionIndex to didSelectOption. - Merge LayoutMenuList::setTextFromOption into updateFromElement. BUG=577989 Committed: https://crrev.com/c9df91f8cc501a4a952eb08877c3c3e6b2ca01bb Cr-Commit-Position: refs/heads/master@{#404157}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -38 lines) Patch
M third_party/WebKit/Source/core/html/HTMLSelectElement.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSelectElement.cpp View 2 chunks +8 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMenuList.h View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutMenuList.cpp View 3 chunks +13 lines, -23 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
tkent
Keishi, would you review this please?
4 years, 5 months ago (2016-07-07 07:16:06 UTC) #2
keishi
LGTM
4 years, 5 months ago (2016-07-07 08:16:05 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/2126023005/1
4 years, 5 months ago (2016-07-07 14:23:02 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-07 16:23:13 UTC) #6
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 16:25:20 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/c9df91f8cc501a4a952eb08877c3c3e6b2ca01bb
Cr-Commit-Position: refs/heads/master@{#404157}

Powered by Google App Engine
This is Rietveld 408576698