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

Issue 2251303003: Implement position: sticky updates on compositor (Closed)

Created:
4 years, 4 months ago by flackr
Modified:
4 years, 3 months ago
CC:
ajuma+watch_chromium.org, blink-layers+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, f(malita), jbroman, jchaffraix+rendering, Justin Novosad, kenneth.christiansen, leviw+renderwatch, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement position: sticky updates on compositor This plumbs the sticky position constraints to the compositor and updates the position of sticky position elements through TransformNode::UpdateLocalTransform. BUG=512494 TEST=LayerTreeHostCommonTest.StickyPosition CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/2215b4e8cb1fb332ad6e7b495435deb3f89f41f8 Cr-Commit-Position: refs/heads/master@{#420144}

Patch Set 1 #

Patch Set 2 : Move sticky position transform node constraint data to sparse referenced data structure. #

Patch Set 3 : Cleanup and add unit test for impl side sticky position update. #

Total comments: 20

Patch Set 4 : Address review comments, add comments, tests, proto conversions #

Patch Set 5 : Remove obsolete test sticky-scrolls-on-main.html #

Patch Set 6 : Merge with master and add comments to WebLayerStickyPositionConstraint members. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1079 lines, -150 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/blink/web_layer_impl.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M cc/blink/web_layer_impl.cc View 1 2 3 4 5 2 chunks +48 lines, -0 lines 0 comments Download
M cc/input/main_thread_scrolling_reason.h View 1 3 chunks +1 line, -4 lines 0 comments Download
M cc/layers/layer.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download
M cc/layers/layer_impl_test_properties.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
A cc/layers/layer_sticky_position_constraint.h View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
A cc/layers/layer_sticky_position_constraint.cc View 1 2 3 1 chunk +95 lines, -0 lines 0 comments Download
M cc/proto/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A cc/proto/layer_sticky_position_constraint.proto View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
M cc/proto/property_tree.proto View 1 2 3 3 chunks +9 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 1 chunk +484 lines, -0 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 4 5 5 chunks +19 lines, -0 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 4 5 10 chunks +121 lines, -3 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 3 4 5 4 chunks +23 lines, -1 line 0 comments Download
M cc/trees/transform_node.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/transform_node.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/css/sticky/sticky-scrolls-on-main.html View 1 2 3 4 1 chunk +0 lines, -10 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/css/sticky/sticky-scrolls-on-main-expected.txt View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 2 3 4 5 5 chunks +37 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/StickyPositionScrollingConstraints.h View 2 chunks +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 1 2 3 4 5 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp View 1 2 3 4 5 1 chunk +0 lines, -95 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/LayerDetailsView.js View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositingReasons.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositingReasons.cpp View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebLayer.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
A third_party/WebKit/public/platform/WebLayerStickyPositionConstraint.h View 1 2 3 4 5 1 chunk +75 lines, -0 lines 0 comments Download
M ui/gfx/transform.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/transform.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (14 generated)
flackr
Hey, This patch plumbs the sticky constraints over to cc/ and implements the sticky position ...
4 years, 3 months ago (2016-09-08 17:52:31 UTC) #6
ajuma
Seems reasonable overall. https://codereview.chromium.org/2251303003/diff/40001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/2251303003/diff/40001/cc/layers/layer_impl.h#newcode580 cc/layers/layer_impl.h:580: LayerStickyPositionConstraint sticky_position_constraint_; Does LayerImpl need to ...
4 years, 3 months ago (2016-09-08 22:08:54 UTC) #7
flackr
https://codereview.chromium.org/2251303003/diff/40001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/2251303003/diff/40001/cc/layers/layer_impl.h#newcode580 cc/layers/layer_impl.h:580: LayerStickyPositionConstraint sticky_position_constraint_; On 2016/09/08 at 22:08:53, ajuma wrote: > ...
4 years, 3 months ago (2016-09-20 17:08:13 UTC) #8
flackr
https://codereview.chromium.org/2251303003/diff/40001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/2251303003/diff/40001/cc/trees/layer_tree_host_common_unittest.cc#newcode6934 cc/trees/layer_tree_host_common_unittest.cc:6934: sticky_position.absolute_containing_block_rect = gfx::Rect(0, 0, 50, 50); On 2016/09/08 at ...
4 years, 3 months ago (2016-09-20 17:08:47 UTC) #9
ajuma
cc lgtm. Thanks for all the tests and comments!
4 years, 3 months ago (2016-09-20 19:50:08 UTC) #10
flackr
+vollick for third_party/WebKit/Source/platform +rbyers for third_party/WebKit/public PTAL, thanks!
4 years, 3 months ago (2016-09-20 19:57:32 UTC) #12
Ian Vollick
On 2016/09/20 19:57:32, flackr wrote: > +vollick for third_party/WebKit/Source/platform > +rbyers for third_party/WebKit/public > > ...
4 years, 3 months ago (2016-09-20 19:58:53 UTC) #13
Rick Byers
On 2016/09/20 19:57:32, flackr wrote: > +vollick for third_party/WebKit/Source/platform > +rbyers for third_party/WebKit/public > > ...
4 years, 3 months ago (2016-09-21 13:31:39 UTC) #14
Rick Byers
On 2016/09/21 13:31:39, Rick Byers (slow until 9-26) wrote: > On 2016/09/20 19:57:32, flackr wrote: ...
4 years, 3 months ago (2016-09-21 13:33:11 UTC) #15
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/2251303003/100001
4 years, 3 months ago (2016-09-21 15:52:32 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/301659)
4 years, 3 months ago (2016-09-21 17:54:33 UTC) #23
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/2251303003/100001
4 years, 3 months ago (2016-09-21 18:36:41 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-21 20:16:41 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 20:18:49 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/2215b4e8cb1fb332ad6e7b495435deb3f89f41f8
Cr-Commit-Position: refs/heads/master@{#420144}

Powered by Google App Engine
This is Rietveld 408576698