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

Issue 886033002: Views: Fixed exponential behaviour on reverse focus search (Shift+Tab). (Closed)

Created:
5 years, 10 months ago by Matt Giuca
Modified:
5 years, 10 months ago
Reviewers:
dmazzoni, sky
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@tab-class-name
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Views: Fixed exponential behaviour on reverse focus search (Shift+Tab). In FindPreviousFocusableViewImpl, in the recursive call to visit the sibling node, preserves can_go_up, rather than forcing it to true. Added FocusTraversalNonFocusableTest (test the pathological case outlined in the bug report). Also fixed existing comment in test file describing the view hierarchy to match reality. BUG=453699 BUG=438425 BUG=451140 Committed: https://crrev.com/9e437a3204667d850636918942ac01f0d933ae83 Cr-Commit-Position: refs/heads/master@{#314285}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added comment explaining failure mode (timeout). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -7 lines) Patch
M ui/views/focus/focus_search.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/focus/focus_traversal_unittest.cc View 1 2 chunks +85 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
Matt Giuca
Please see http://crbug.com/453699 for a detailed explanation of the problem and why my test case ...
5 years, 10 months ago (2015-01-30 03:03:04 UTC) #2
Matt Giuca
(dmazzoni, because you were the original author; sky, because you were the original reviewer and ...
5 years, 10 months ago (2015-01-30 03:03:57 UTC) #3
dmazzoni
lgtm Nice job with the tests and comments, it's really clear. https://codereview.chromium.org/886033002/diff/1/ui/views/focus/focus_traversal_unittest.cc File ui/views/focus/focus_traversal_unittest.cc (right): ...
5 years, 10 months ago (2015-02-02 22:07:05 UTC) #4
Matt Giuca
https://codereview.chromium.org/886033002/diff/1/ui/views/focus/focus_traversal_unittest.cc File ui/views/focus/focus_traversal_unittest.cc (right): https://codereview.chromium.org/886033002/diff/1/ui/views/focus/focus_traversal_unittest.cc#newcode790 ui/views/focus/focus_traversal_unittest.cc:790: void FocusTraversalNonFocusableTest::InitContentView() { Yes, that is the behaviour of ...
5 years, 10 months ago (2015-02-02 23:17:31 UTC) #5
sky
LGTM
5 years, 10 months ago (2015-02-03 00:42:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/886033002/20001
5 years, 10 months ago (2015-02-03 02:40:49 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (None)
5 years, 10 months ago (2015-02-03 04:42:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/886033002/20001
5 years, 10 months ago (2015-02-03 07:34:54 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-03 07:35:45 UTC) #13
commit-bot: I haz the power
5 years, 10 months ago (2015-02-03 07:37:01 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9e437a3204667d850636918942ac01f0d933ae83
Cr-Commit-Position: refs/heads/master@{#314285}

Powered by Google App Engine
This is Rietveld 408576698