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

Issue 2394053004: Clear scroll anchor on all parent scrollers from ScrollAnchor::clear (Closed)

Created:
4 years, 2 months ago by ymalik
Modified:
4 years, 2 months ago
Reviewers:
skobes
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clear scroll anchor on all parent scrollers from ScrollAnchor::clear Before this CL, a call to ScrollAnchor::clear() would clear the anchor node on the containing scroller, and set the LayoutObject::IsScrollAnchorObject bit on the anchor if there is no other scroll referencing it. With this CL, a call to ScrollAnchor::clear() walks up the parent chain and clears the scroll anchor for every scroller encountered in the walk. As a result, the LayoutObject::IsScrollAnchorObject is always set to false. This CL is dependent on https://codereview.chromium.org/2400723002 BUG=650017 Committed: https://crrev.com/121a3d55a69bb82a46ee9e3159a0be1810052368 Cr-Commit-Position: refs/heads/master@{#424748}

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebase and fix merge #

Total comments: 9

Patch Set 3 : Apply review comments #

Total comments: 2

Patch Set 4 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -15 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 1 chunk +10 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ScrollAnchor.h View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ScrollAnchor.cpp View 1 2 3 6 chunks +31 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ScrollAnchorTest.cpp View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
ymalik
4 years, 2 months ago (2016-10-06 19:44:38 UTC) #2
ymalik
https://codereview.chromium.org/2394053004/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2394053004/diff/1/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode2584 third_party/WebKit/Source/core/layout/LayoutObject.cpp:2584: static bool clearScrollAnchorForScroller(ScrollableArea* scroller, @skobes, a note to make ...
4 years, 2 months ago (2016-10-06 19:51:14 UTC) #3
skobes
https://codereview.chromium.org/2394053004/diff/20001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2394053004/diff/20001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode2632 third_party/WebKit/Source/core/layout/LayoutObject.cpp:2632: // Continue walk past frame boundary. Hmm, do we ...
4 years, 2 months ago (2016-10-10 21:34:35 UTC) #4
ymalik
@skobes, PTAL :) https://codereview.chromium.org/2394053004/diff/20001/third_party/WebKit/Source/core/layout/LayoutObject.cpp File third_party/WebKit/Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/2394053004/diff/20001/third_party/WebKit/Source/core/layout/LayoutObject.cpp#newcode2632 third_party/WebKit/Source/core/layout/LayoutObject.cpp:2632: // Continue walk past frame boundary. ...
4 years, 2 months ago (2016-10-11 19:54:23 UTC) #5
skobes
https://codereview.chromium.org/2394053004/diff/20001/third_party/WebKit/Source/core/layout/LayoutObject.h File third_party/WebKit/Source/core/layout/LayoutObject.h (right): https://codereview.chromium.org/2394053004/diff/20001/third_party/WebKit/Source/core/layout/LayoutObject.h#newcode1663 third_party/WebKit/Source/core/layout/LayoutObject.h:1663: void setIsScrollAnchorObject(bool value) { On 2016/10/11 19:54:22, ymalik wrote: ...
4 years, 2 months ago (2016-10-11 20:51:41 UTC) #6
ymalik
@skobes, PTAL :) https://codereview.chromium.org/2394053004/diff/20001/third_party/WebKit/Source/core/layout/LayoutObject.h File third_party/WebKit/Source/core/layout/LayoutObject.h (right): https://codereview.chromium.org/2394053004/diff/20001/third_party/WebKit/Source/core/layout/LayoutObject.h#newcode1663 third_party/WebKit/Source/core/layout/LayoutObject.h:1663: void setIsScrollAnchorObject(bool value) { On 2016/10/11 ...
4 years, 2 months ago (2016-10-11 22:52:57 UTC) #7
skobes
lgtm
4 years, 2 months ago (2016-10-11 23:48:28 UTC) #8
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/2394053004/60001
4 years, 2 months ago (2016-10-12 14:22:35 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-12 15:50:35 UTC) #11
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 15:52:53 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/121a3d55a69bb82a46ee9e3159a0be1810052368
Cr-Commit-Position: refs/heads/master@{#424748}

Powered by Google App Engine
This is Rietveld 408576698