• Thomas Lukaszewicz's avatar
    Tab Strip: Fix caption area hit testing for TabStripRegionView · d6c65442
    Thomas Lukaszewicz authored
    Currently if Tab Scrolling is enabled the TabStrip is allowed to grow
    beyond the visible bounds of the TabStripRegionView with the help of
    a ScrollView.
    
    Existing caption hit testing uses the TabStrip view to determine
    whether a rect or point belongs to the caption area. This results in
    a bug where areas of the browser window are no longer recognized as
    part of the caption area.
    
    This is due to the non-visible parts of the TabStrip continuing to
    contribute to the hit testing logic as it overflows.
    
    This patch updates the TabStripRegionView to support the necessary
    hit testing logic and ensure that only the visible portion of the
    TabStrip is used.
    
    Bug: 1129703
    
    Change-Id: I49ccf9ba573afba84921a66249ef38723787cbba
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2411704
    Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org>
    Reviewed-by: default avatarTaylor Bergquist <tbergquist@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#808579}
    d6c65442
browser_view_layout.cc 23.4 KB