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

Issue 2127003003: SELECT element: Refer to m_lastOnChangeOption in 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, 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: Refer to m_lastOnChangeOption in HTMLSelectElement::optionIndexToBeShown(). This is a preparation to remove O(N) operations in optionIndexToBeShown(). Use m_lastOnChangeOption instead of selectedIndex in optionIndexToBeShown(). We need to update selectOption() too so that m_lastOnChangeOption is updated before calling LayoutObject::updateFromElement. LayoutMenuList::updateFromElement calls optionIndexToBeShown(). selectedIndex() is O(N), and m_lastOnChangeOption->index() is also O(N). So this CL doesn't change complexity of optionIndexToBeShown(). BUG=577989 R=keishi@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/6b34b48ae7a7f74f51d25e3b452e5782ebae7584

Patch Set 1 #

Patch Set 2 : Update m_lastOnChangeOption in HTMLSelectElement::restoreFormControlState #

Patch Set 3 : typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -7 lines) Patch
M third_party/WebKit/Source/core/html/HTMLSelectElement.cpp View 1 2 4 chunks +21 lines, -7 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
tkent
Keishi, would you review this please?
4 years, 5 months ago (2016-07-07 01:28:50 UTC) #3
keishi
LGTM
4 years, 5 months ago (2016-07-07 03:08:41 UTC) #4
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/2127003003/40001
4 years, 5 months ago (2016-07-07 03:45:45 UTC) #7
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/2127003003/60001
4 years, 5 months ago (2016-07-07 05:01:32 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/258311)
4 years, 5 months ago (2016-07-07 06:43:46 UTC) #14
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/6b34b48ae7a7f74f51d25e3b452e5782ebae7584 Cr-Commit-Position: refs/heads/master@{#404091}
4 years, 5 months ago (2016-07-07 06:47:00 UTC) #16
tkent
4 years, 5 months ago (2016-07-07 06:48:34 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:60001) manually as
6b34b48ae7a7f74f51d25e3b452e5782ebae7584 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698