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

Issue 2401903002: Compute and include the offset of the sticky box to its enclosing composited layer. (Closed)

Created:
4 years, 2 months ago by flackr
Modified:
4 years, 2 months ago
Reviewers:
ajuma, Rick Byers
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-layout_chromium.org, cc-bugs_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, jchaffraix+rendering, kinuko+watch, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Compute and include the offset of the sticky box to its enclosing composited layer. When the main thread moves a sticky object we try to determine how far it was moved in cc/ to know how much more we still have to move it. However, when the sticky object is in a composited layer we need to know the expected offset from that layer rather than from the scroll ancestor. BUG=649102 TEST=LayerTreeHostCommonTest.StickyPositionCompositedContainer, ScrollingCoordinatorTest.fastScrollingForStickyPosition CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/68e1c292942bc96e212048b7993500244a47dc41 Cr-Commit-Position: refs/heads/master@{#424451}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add missing test data, fix comment and proto. #

Patch Set 3 : Merge with master and fix long line. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -2 lines) Patch
M cc/blink/web_layer_impl.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/layer_sticky_position_constraint.h View 1 chunk +5 lines, -0 lines 0 comments Download
M cc/layers/layer_sticky_position_constraint.cc View 1 4 chunks +8 lines, -0 lines 0 comments Download
M cc/proto/layer_sticky_position_constraint.proto View 1 2 chunks +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 7 chunks +110 lines, -0 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp View 1 2 2 chunks +108 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/sticky-position.html View 1 1 chunk +58 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebLayerStickyPositionConstraint.h View 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
flackr
Hey, Can you take a look? This plumbs the offset from the sticky box to ...
4 years, 2 months ago (2016-10-07 14:46:26 UTC) #4
ajuma
lgtm https://codereview.chromium.org/2401903002/diff/1/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/2401903002/diff/1/cc/trees/layer_tree_host_common_unittest.cc#newcode7196 cc/trees/layer_tree_host_common_unittest.cc:7196: // (0, 0) because we have synced a ...
4 years, 2 months ago (2016-10-07 21:14:42 UTC) #9
flackr
+rbyers for third_party/WebKit https://codereview.chromium.org/2401903002/diff/1/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/2401903002/diff/1/cc/trees/layer_tree_host_common_unittest.cc#newcode7196 cc/trees/layer_tree_host_common_unittest.cc:7196: // (0, 0) because we have ...
4 years, 2 months ago (2016-10-11 03:53:19 UTC) #15
flackr
https://codereview.chromium.org/2401903002/diff/1/third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp File third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp (right): https://codereview.chromium.org/2401903002/diff/1/third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp#newcode334 third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp:334: registerMockedHttpURLLoad("sticky-position.html"); On 2016/10/07 at 21:14:42, ajuma (OOO Oct. 10) ...
4 years, 2 months ago (2016-10-11 12:49:02 UTC) #16
Rick Byers
WebKit LGTM
4 years, 2 months ago (2016-10-11 15:04:32 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/2401903002/40001
4 years, 2 months ago (2016-10-11 15:06:06 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-11 16:35:08 UTC) #21
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 16:36:52 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/68e1c292942bc96e212048b7993500244a47dc41
Cr-Commit-Position: refs/heads/master@{#424451}

Powered by Google App Engine
This is Rietveld 408576698