DescriptionAdd DCHECK to MaskedViewTargeter::GetHitTestMask() overrides
Add DCHECK_EQ(view, masked_view()) to the overrides of
MaskedViewTargeter::GetHitTestMask(). This is to ensure
the function is only called with |view| corresponding
to the view on which the targeter is installed.
This is nice to have because GetHitTestMask()
is called directly from a few places such as
overrides of View::GetHitTestMask() and (soon)
from within TabCloseButtonTargeter; see issue
377557.
BUG=377527
TEST=none
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274852
Patch Set 1 #
Total comments: 2
Patch Set 2 : DCHECK_EQ #
Messages
Total messages: 10 (0 generated)
|