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

Issue 1949843004: Revert of Compute snap offsets (both repeat and element based) (Closed)

Created:
4 years, 7 months ago by Mathieu
Modified:
4 years, 7 months ago
Reviewers:
esprehn, majidvp, skobes, eae
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, dglazkov+blink, kenneth.christiansen, ojan, rwlbuis, Timothy Loh
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Compute snap offsets (both repeat and element based) (patchset #31 id:600001 of https://codereview.chromium.org/1188563005/ ) Reason for revert: Some snap tests are failing: https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Android%20%28Nexus4%29/builds/46230 Original issue's description: > Compute snap offsets according to CSS Scroll Snap Spec Level 1 > > Add logic to compute snap offsets (those defined on snap container and snap > areas) according to the published spec [1]. > > SnapCoordinator maintains the mapping between snap containers and the snap > areas. This mapping is stored in |LayoutBoxRareData| and updated on style > change, attach, and detach events via hooks in |LayoutBox::styleWillChange| , > |LayoutBox::insertedIntoTree| and |LayoutBox::willBeDestoryed|. > > This implementation is the naive approach as described in [2]. It does not > attempt to track which snap areas have moved in relation to their container to > minimize snap offsets re-computation. It simply re-computes all snap points > every time they are needed. > > At the moment the computed snap offsets are not used for anything except to pass > the tests. In future, |SnapCoordinator| will compute them as part of the > document lifecycle and send necessary updates to the Compositor Worker instance > which is going to be responsible for snapping during scrolls. > > [1] https://www.w3.org/TR/2015/WD-css-snappoints-1-20150326/ > [2] https://docs.google.com/document/d/1BO0EgcMe3DTsO1uwM_psZeJ_Gz5OZR-oYrpJBKAJLoU/edit?pli=1 > > Committed: https://crrev.com/3194544827727439d99dc72bec19d59a6004db0d > Cr-Commit-Position: refs/heads/master@{#391562} TBR=esprehn@chromium.org,eae@chromium.org,skobes@chromium.org,majidvp@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Committed: https://crrev.com/daab7cf2092c7a61b6d03646ef1149075029d992 Cr-Commit-Position: refs/heads/master@{#391601}

Patch Set 1 #

Patch Set 2 : manual revert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -768 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 2 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 3 chunks +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 6 chunks +1 line, -18 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 6 chunks +0 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 6 chunks +0 lines, -83 lines 0 comments Download
D third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.h View 1 chunk +0 lines, -58 lines 0 comments Download
D third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.cpp View 1 chunk +0 lines, -171 lines 0 comments Download
D third_party/WebKit/Source/core/page/scrolling/SnapCoordinatorTest.cpp View 1 chunk +0 lines, -387 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/LengthFunctions.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/LengthFunctions.cpp View 1 2 chunks +0 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
Mathieu
Created Revert of Compute snap offsets (both repeat and element based)
4 years, 7 months ago (2016-05-04 19:42:01 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949843004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949843004/1
4 years, 7 months ago (2016-05-04 19:42:34 UTC) #2
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/layout/LayoutBox.h: While running git apply --index -3 -p1; error: patch ...
4 years, 7 months ago (2016-05-04 19:43:09 UTC) #4
majidvp
manual revert patch lgtm
4 years, 7 months ago (2016-05-04 19:56:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1949843004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1949843004/220001
4 years, 7 months ago (2016-05-04 19:57:01 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:220001)
4 years, 7 months ago (2016-05-04 19:57:48 UTC) #10
commit-bot: I haz the power
4 years, 7 months ago (2016-05-04 19:59:18 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/daab7cf2092c7a61b6d03646ef1149075029d992
Cr-Commit-Position: refs/heads/master@{#391601}

Powered by Google App Engine
This is Rietveld 408576698