Fix jank caused by infobars appearing.
When the InfoBarContainer is first attached to the window, View.initialAwakenScrollBars() is called on it. Even though the scrollbars aren't visible, this schedules a delayed runnable to fade out the scrollbars 1.2 seconds later. This delayed runnable (View$ScrollabilityCache) then calls View.invalidate() repeatedly as it fades out the (already invisible) scrollbar, which pauses scroll updates and touch event handling for 10 to 15 frames. This CL disables the scrollbars on the InfoBarContainer, except in the rare case that the container is actually scrollable (i.e. when infobars take up the entire screen). In that case, page jank doesn't matter since the user can't even see the webpage! BUG=407149 NOTRY=true Review URL: https://codereview.chromium.org/588843002 Cr-Commit-Position: refs/heads/master@{#295849}
Showing
Please register or sign in to comment