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

Issue 2769353002: Only create sticky position constraints for constrained sticky position. (Closed)

Created:
3 years, 9 months ago by flackr
Modified:
3 years, 8 months ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-frames_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Only create sticky position constraints for constrained sticky position. If sticky position is unconstrained we don't need to create constraints for it, or add it to viewport constrained objects (causing scroll on main), or repaint on scroll. BUG=704817 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2769353002 Cr-Commit-Position: refs/heads/master@{#463316} Committed: https://chromium.googlesource.com/chromium/src/+/06e9b5a6a5649e4d842f40ad667554c58dc26c29

Patch Set 1 #

Patch Set 2 : Set dependent patch. #

Total comments: 4

Patch Set 3 : Merge with master and address review comment. #

Patch Set 4 : Merge with master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -44 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameViewTest.cpp View 1 2 3 1 chunk +38 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 1 2 3 4 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp View 1 2 3 8 chunks +37 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
flackr
PTAL, This is the final patch which basically avoids treating position sticky on its own ...
3 years, 9 months ago (2017-03-24 04:47:40 UTC) #3
chrishtr
https://codereview.chromium.org/2769353002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp File third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp (right): https://codereview.chromium.org/2769353002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp#newcode369 third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp:369: ASSERT_TRUE(constraintsMap.contains(stickyInnerInline->layer())); ASSERT_FALSE for unanchoredSticky? https://codereview.chromium.org/2769353002/diff/20001/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp File third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp (right): https://codereview.chromium.org/2769353002/diff/20001/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp#newcode104 ...
3 years, 9 months ago (2017-03-27 16:28:07 UTC) #4
flackr
Sorry for the delay. https://codereview.chromium.org/2769353002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp File third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp (right): https://codereview.chromium.org/2769353002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp#newcode369 third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp:369: ASSERT_TRUE(constraintsMap.contains(stickyInnerInline->layer())); On 2017/03/27 16:28:07, chrishtr ...
3 years, 8 months ago (2017-04-07 18:15:45 UTC) #5
chrishtr
lgtm
3 years, 8 months ago (2017-04-07 20:49:08 UTC) #6
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/2769353002/40001
3 years, 8 months ago (2017-04-08 01:12:45 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/153264)
3 years, 8 months ago (2017-04-08 03:10:50 UTC) #10
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/2769353002/40001
3 years, 8 months ago (2017-04-10 11:58:58 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/187266) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-10 12:01:10 UTC) #14
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/2769353002/60001
3 years, 8 months ago (2017-04-10 15:58:33 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/06e9b5a6a5649e4d842f40ad667554c58dc26c29
3 years, 8 months ago (2017-04-10 17:52:41 UTC) #20
Xi Han
3 years, 8 months ago (2017-04-10 21:30:11 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2811803003/ by hanxi@chromium.org.

The reason for reverting is: It causes telemetry_perf_unittests failing on
chromium.android/Android N5X Swarm Builder.

crbug.com/710142..

Powered by Google App Engine
This is Rietveld 408576698