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

Issue 2304493002: Ignore redundant calls to ScrollAnchor::save. (Closed)

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

Description

Ignore redundant calls to ScrollAnchor::save. Flex scrollers go through LayoutBlock::layout multiple times; we call save() every time, but make only one call to restore() when we exit the outermost DelayScrollPositionClampScope (see http://crrev.com/412450). The second save() cleared ScrollAnchor::m_scrollAnchorDisablingStyleChanged, because the first layout had cleared the corresponding LayoutObject bit. BUG=641815 Committed: https://crrev.com/4217fd09fbd83f49bfa33288311192a1ef067361 Cr-Commit-Position: refs/heads/master@{#416143}

Patch Set 1 #

Total comments: 4

Patch Set 2 : add TODO; skip restore if !m_saved #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -0 lines) Patch
M third_party/WebKit/Source/core/layout/ScrollAnchor.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ScrollAnchor.cpp View 1 3 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ScrollAnchorTest.cpp View 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (19 generated)
skobes
4 years, 3 months ago (2016-09-01 05:34:32 UTC) #6
ojan
lgtm https://codereview.chromium.org/2304493002/diff/1/third_party/WebKit/Source/core/layout/ScrollAnchor.h File third_party/WebKit/Source/core/layout/ScrollAnchor.h (right): https://codereview.chromium.org/2304493002/diff/1/third_party/WebKit/Source/core/layout/ScrollAnchor.h#newcode116 third_party/WebKit/Source/core/layout/ScrollAnchor.h:116: bool m_saved; Might be nice to explain that ...
4 years, 3 months ago (2016-09-01 05:39:49 UTC) #8
ymalik
lgtm https://codereview.chromium.org/2304493002/diff/1/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp File third_party/WebKit/Source/core/layout/ScrollAnchor.cpp (right): https://codereview.chromium.org/2304493002/diff/1/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp#newcode249 third_party/WebKit/Source/core/layout/ScrollAnchor.cpp:249: m_saved = false; Add a DCHECK that m_saved ...
4 years, 3 months ago (2016-09-01 14:13:04 UTC) #11
skobes
https://codereview.chromium.org/2304493002/diff/1/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp File third_party/WebKit/Source/core/layout/ScrollAnchor.cpp (right): https://codereview.chromium.org/2304493002/diff/1/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp#newcode249 third_party/WebKit/Source/core/layout/ScrollAnchor.cpp:249: m_saved = false; On 2016/09/01 14:13:04, ymalik wrote: > ...
4 years, 3 months ago (2016-09-01 20:47:21 UTC) #17
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/2304493002/40001
4 years, 3 months ago (2016-09-02 00:24:11 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 3 months ago (2016-09-02 00:28:19 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 00:31:55 UTC) #26
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4217fd09fbd83f49bfa33288311192a1ef067361
Cr-Commit-Position: refs/heads/master@{#416143}

Powered by Google App Engine
This is Rietveld 408576698