| Index: chrome/browser/ui/views/tabs/tab.cc
|
| diff --git a/chrome/browser/ui/views/tabs/tab.cc b/chrome/browser/ui/views/tabs/tab.cc
|
| index 41d524b37d0359ad0e9374e4b8431e4f348249ab..49d187bd65f3ea310fe4d7057c83fa8b706a8efc 100644
|
| --- a/chrome/browser/ui/views/tabs/tab.cc
|
| +++ b/chrome/browser/ui/views/tabs/tab.cc
|
| @@ -425,11 +425,12 @@ class Tab::TabCloseButton : public views::ImageButton {
|
| // If the button is hidden behind another tab, the hit test mask is empty.
|
| // Otherwise set the hit test mask to be the contents bounds.
|
| path->reset();
|
| - if (tab_bounds.Contains(button_bounds)) {
|
| + if (tab_bounds.Intersects(button_bounds)) {
|
| // Include the padding in the hit test mask for touch events.
|
| if (source == HIT_TEST_SOURCE_TOUCH)
|
| button_bounds = GetLocalBounds();
|
|
|
| + // TODO: this isn't quite right, really need to intersect the two regions.
|
| path->addRect(RectToSkRect(button_bounds));
|
| }
|
| }
|
|
|