• Nick Diego Yamane's avatar
    Fix web contents layout issues during tab dragging sessions · e4a6e8a2
    Nick Diego Yamane authored
    Fast resize mode is set for web contents view every time tab dragging
    status changes for both window source and dragged browser window. Which
    was originally introduced as a performance optimization targeting
    ChromeOS' tablet mode, where both windows bounds change during the
    dragging session.
    
    This causes issues such as crbug.com/1114767, where the source window
    does not get correctly relaid out after a tab is dragged out of it into
    a new browser window, particularly when that tab dragging session
    started after a window resize or state change (eg: normal -> maximized).
    
    That said, this patch fixes it by not setting "fast resize" on Linux
    desktop builds. Where subtle bugs may happen, eg: tiling WMs not
    honoring bounds requested, etc.
    
    R=sky@chromium.org
    
    Bug: 1114767
    Change-Id: Ic33fd2471fe6ddbb05af650e724106c6600319d3
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2346795Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: Nick Yamane <nickdiego@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#799640}
    e4a6e8a2
browser_view.cc 131 KB