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

Issue 1307173007: Reconstruct customscrollbars if owningLayoutObject changes. (Closed)

Created:
5 years, 3 months ago by MuVen
Modified:
5 years, 2 months ago
Reviewers:
skobes
CC:
blink-reviews, dshwang, slimming-paint-reviews_chromium.org, blink-reviews-paint_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reconstruct customscrollbars if owningLayoutObject changes. CustomScrollbars owner changes when the body's LayoutObject is attached which occurs during style recalc (before layout). However in the case of overflow:scroll, the scrollbars are created when we call styleDidChange() on the LayoutView, which happens even sooner than that. So during updateAfterLayout,in needsScrollbarReconstruction if owningLayoutObject changes for customscrollbar reconstruct the scrollbar. BUG=522389 TESTED=scrollbars/custom-scrollbar-inactive-only-on-windowinactive-selector-expected.html now passes with root layer scrolling Committed: https://crrev.com/6c9abc243561998590a5cfec02d62b86578e4ec0 Cr-Commit-Position: refs/heads/master@{#352644}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : addressed review comments #

Patch Set 4 : addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -1 line) Patch
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 3 1 chunk +13 lines, -1 line 0 comments Download

Messages

Total messages: 11 (2 generated)
MuVen
Hi Skobes, PTAL. Thanks,
5 years, 3 months ago (2015-09-07 09:28:21 UTC) #2
skobes
https://codereview.chromium.org/1307173007/diff/1/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp File Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1307173007/diff/1/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp#newcode969 Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp:969: return &layoutObject; Based on the comment on line 966, ...
5 years, 3 months ago (2015-09-12 02:36:52 UTC) #3
MuVen
On 2015/09/12 02:36:52, skobes wrote: > https://codereview.chromium.org/1307173007/diff/1/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp > File Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp (right): > > https://codereview.chromium.org/1307173007/diff/1/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp#newcode969 > ...
5 years, 2 months ago (2015-10-01 14:59:55 UTC) #4
skobes
On 2015/10/01 14:59:55, MuVen wrote: > During updateStyle customScrollbar is created, but while creating > ...
5 years, 2 months ago (2015-10-06 01:51:21 UTC) #5
MuVen
PTAL.
5 years, 2 months ago (2015-10-06 12:34:18 UTC) #6
skobes
lgtm Slight correction on the change description - the owner changes when the body's LayoutObject ...
5 years, 2 months ago (2015-10-06 17:06:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1307173007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1307173007/60001
5 years, 2 months ago (2015-10-06 18:02:30 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-06 18:10:02 UTC) #10
commit-bot: I haz the power
5 years, 2 months ago (2015-10-06 18:12:05 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6c9abc243561998590a5cfec02d62b86578e4ec0
Cr-Commit-Position: refs/heads/master@{#352644}

Powered by Google App Engine
This is Rietveld 408576698