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

Issue 2147963004: AX: Don't use listIndex in AXListBoxOption class. (Closed)

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

Description

AX: Don't use listIndex in AXListBoxOption class. * AXListBoxOption::isSelectedOptionActive() We don't need to compare indices. We can compare node pointers. * AXListBoxOption::setSelected() We don't need to compute an optionIndex. We can pass an HTMLOptionElement pointer directly by changing the argument type of accessKeySetSelectedIndex(). This CL renames accessKeySetSelectedIndex() to selectOptionByAccessKey(). Now, we can remove AXListBoxOption::listBoxOptionIndex() and HTMLSelectElement::listToOptionIndex(). Committed: https://crrev.com/27b62f450269f5a49376ca2f44423340a8a53903 Cr-Commit-Position: refs/heads/master@{#405500}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -43 lines) Patch
M third_party/WebKit/Source/core/html/HTMLOptionElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSelectElement.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSelectElement.cpp View 2 chunks +2 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXListBoxOption.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXListBoxOption.cpp View 3 chunks +2 lines, -20 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
tkent
Keishi, would you review this please?
4 years, 5 months ago (2016-07-14 08:22:41 UTC) #4
keishi
LGTM
4 years, 5 months ago (2016-07-14 12:20:39 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/2147963004/1
4 years, 5 months ago (2016-07-14 15:47:16 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-14 15:51:58 UTC) #10
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 15:52:09 UTC) #11
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 15:53:13 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/27b62f450269f5a49376ca2f44423340a8a53903
Cr-Commit-Position: refs/heads/master@{#405500}

Powered by Google App Engine
This is Rietveld 408576698