Fix performance regression and bug with hide_scrollbars setting.
FrameView and PaintLayerScrollableArea may perform more work than necessary if hide_scrollbars is true (e.g. trigger unnecessary layouts), because they think that scrollbar existence has changed even if it didn't. For FrameView, we can avoid this by enforcing hide_scrollbars in computeScrollbarExistence instead. For PLSA, we check for hide_scrollbars in updateAfterLayout to determine if the scrollbar existence will change. Also fixes another potential bug in PLSA, which may incorrectly assume existence of scrollbars if hide_scrollbars is true. BUG=652317,639806 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2394163002 Cr-Commit-Position: refs/heads/master@{#423671}
Showing
Please register or sign in to comment