DescriptionFix 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
Committed: https://crrev.com/d9b6e52af3a84c562f57a751463cf180d5499928
Cr-Commit-Position: refs/heads/master@{#423671}
Patch Set 1 #
Messages
Total messages: 17 (11 generated)
|