Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Issue 2394163002: Fix performance regression and bug with hide_scrollbars setting. (Closed)

Created:
4 years, 2 months ago by Eric Seckler
Modified:
4 years, 2 months ago
Reviewers:
skobes
CC:
chromium-reviews, blink-reviews, dshwang, blink-reviews-paint_chromium.org, tdresser
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/d9b6e52af3a84c562f57a751463cf180d5499928 Cr-Commit-Position: refs/heads/master@{#423671}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -16 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 2 chunks +14 lines, -10 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
Eric Seckler
Steve, here's yet another change regarding hide_scrollbars. Sorry it's become such a mess. I'm considering ...
4 years, 2 months ago (2016-10-06 12:39:29 UTC) #7
skobes
lgtm Yes it would be great to have a single place for computing PLSA scrollbar ...
4 years, 2 months ago (2016-10-06 19:48:09 UTC) #10
Eric Seckler
On 2016/10/06 19:48:09, skobes wrote: > lgtm > > Yes it would be great to ...
4 years, 2 months ago (2016-10-06 20:34:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2394163002/1
4 years, 2 months ago (2016-10-06 20:35:13 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-06 20:56:01 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 20:59:57 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/d9b6e52af3a84c562f57a751463cf180d5499928
Cr-Commit-Position: refs/heads/master@{#423671}

Powered by Google App Engine
This is Rietveld 408576698