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

Issue 2935005: Prevent non-visible views from getting focused. (Closed)

Created:
10 years, 5 months ago by Mattias Nissler (ping if slow)
Modified:
9 years, 7 months ago
Reviewers:
sky, Paweł Hajdan Jr.
CC:
chromium-reviews, ben+cc_chromium.org, David Tseng, Paweł Hajdan Jr.
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Prevent non-visible views from getting focused. BUG=48719 TEST=FocusManagerTest.TraversalWithNonVisibleViews Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52293

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -4 lines) Patch
M views/focus/focus_manager_unittest.cc View 1 1 chunk +53 lines, -2 lines 0 comments Download
M views/view.cc View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Mattias Nissler (ping if slow)
Scott, this fixes another problem of my recent TabbedPane CL. On windows, the tab contents ...
10 years, 5 months ago (2010-07-12 14:53:55 UTC) #1
sky
LGTM
10 years, 5 months ago (2010-07-12 15:31:30 UTC) #2
Paweł Hajdan Jr.
Drive-by with a tiny testing nit. No need to wait for another review by me. ...
10 years, 5 months ago (2010-07-13 03:20:47 UTC) #3
Mattias Nissler (ping if slow)
10 years, 5 months ago (2010-07-13 08:26:59 UTC) #4
http://codereview.chromium.org/2935005/diff/1/2
File views/focus/focus_manager_unittest.cc (right):

http://codereview.chromium.org/2935005/diff/1/2#newcode1170
views/focus/focus_manager_unittest.cc:1170: if (v)
On 2010/07/13 03:20:50, Paweł Hajdan Jr. wrote:
> nit: the above ASSERT makes this NULL-check redundant. Could you remove it, or
> change the above to EXPECT if you meant that?

Removing the conditional is the correct fix. I'll also change the test I copied
this section from :)

Powered by Google App Engine
This is Rietveld 408576698