Chromium Code Reviews
DescriptionRevert 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 #Messages
Total messages: 12 (5 generated)
|