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

Issue 1699213002: Add layout support for the snap-height property (Closed)

Created:
4 years, 10 months ago by kojii
Modified:
4 years, 10 months ago
Reviewers:
eae
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@snap-height
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add layout support for the snap-height property This patch adds layout support for the snap-height property, which is behind the CSSSnapSize runtime flag. CSS Parser support was added in crrev.com/376051. Two ref tests were upstreamed to csswg-test/css-snap-size-1 and imported. This patch passes these tests. Unit and baseline for line boxes are supported, but block-level replaced elements is not supported in this patch yet. Spec: https://drafts.csswg.org/css-snap-size/#snap-height Dashboard: https://www.chromestatus.com/features/5734273533345792 Intent to implement: https://groups.google.com/a/chromium.org/d/msg/blink-dev/_-RlGYnb5W8/bfFbSGDKCwAJ BUG=586413 TEST=imported/csswg-test/css-snap-size-1/snap-height-*.html Committed: https://crrev.com/3497d2109613cf498736cea8e1330c0ac8c89a4d Cr-Commit-Position: refs/heads/master@{#376338}

Patch Set 1 #

Patch Set 2 : Cleanup, tests #

Total comments: 2

Patch Set 3 : eae review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -3 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp View 1 2 2 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
kojii
PTAL.
4 years, 10 months ago (2016-02-18 06:51:00 UTC) #7
eae
https://codereview.chromium.org/1699213002/diff/20001/third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp File third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp (right): https://codereview.chromium.org/1699213002/diff/20001/third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp#newcode246 third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp:246: snapHeight(maxAscent, maxDescent, lineLayoutItem().styleRef()); if (lineLayoutItem().styleRef().snapHeightUnit()) snapHeight(...)
4 years, 10 months ago (2016-02-18 18:02:12 UTC) #8
kojii
PTAL. https://codereview.chromium.org/1699213002/diff/20001/third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp File third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp (right): https://codereview.chromium.org/1699213002/diff/20001/third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp#newcode246 third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp:246: snapHeight(maxAscent, maxDescent, lineLayoutItem().styleRef()); On 2016/02/18 at 18:02:12, eae ...
4 years, 10 months ago (2016-02-18 20:30:32 UTC) #10
eae
Thanks! LGTM!
4 years, 10 months ago (2016-02-18 23:26:32 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1699213002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1699213002/60001
4 years, 10 months ago (2016-02-19 00:19:16 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 10 months ago (2016-02-19 01:39:22 UTC) #14
commit-bot: I haz the power
4 years, 10 months ago (2016-02-19 01:40:49 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3497d2109613cf498736cea8e1330c0ac8c89a4d
Cr-Commit-Position: refs/heads/master@{#376338}

Powered by Google App Engine
This is Rietveld 408576698