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

Issue 327843002: Views which cannot process events cannot be tooltip targets (Closed)

Created:
6 years, 6 months ago by tdanderson
Modified:
6 years, 6 months ago
Reviewers:
sadrul
CC:
chromium-reviews, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org
Visibility:
Public.

Description

Views which cannot process events cannot be tooltip targets The check for CanProcessEventsWithinSubtree() needs to be made on |this| before the loop (along with HitTestRect()) instead of inside the loop on the children. Otherwise it would be possible to return a view for which CanProcessEventsWithinSubtree() returns false. BUG=382873, 378530 TEST=Added coverage in ViewTest.CanProcessEventsWithinSubtree Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276873

Patch Set 1 #

Patch Set 2 : test coverage added #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -4 lines) Patch
M ui/views/view.cc View 2 chunks +1 line, -4 lines 2 comments Download
M ui/views/view_unittest.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
tdanderson
Sadrul, can you please take a look? When landing this code last week I mistakenly ...
6 years, 6 months ago (2014-06-10 17:08:20 UTC) #1
sadrul
You should add a test for this change.
6 years, 6 months ago (2014-06-12 10:50:20 UTC) #2
tdanderson
Sadrul, I added test coverage for the early return. Can you please take another look?
6 years, 6 months ago (2014-06-12 18:55:57 UTC) #3
sadrul
LGTM https://codereview.chromium.org/327843002/diff/20001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/327843002/diff/20001/ui/views/view.cc#newcode852 ui/views/view.cc:852: if (!child->CanProcessEventsWithinSubtree()) Should this also move up to ...
6 years, 6 months ago (2014-06-12 20:28:50 UTC) #4
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 6 months ago (2014-06-12 23:33:11 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/327843002/20001
6 years, 6 months ago (2014-06-12 23:34:23 UTC) #6
tdanderson
https://codereview.chromium.org/327843002/diff/20001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/327843002/diff/20001/ui/views/view.cc#newcode852 ui/views/view.cc:852: if (!child->CanProcessEventsWithinSubtree()) On 2014/06/12 20:28:49, sadrul wrote: > Should ...
6 years, 6 months ago (2014-06-12 23:37:03 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-13 00:53:16 UTC) #8
Message was sent while issue was closed.
Change committed as 276873

Powered by Google App Engine
This is Rietveld 408576698