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

Issue 1148873005: Parsing CSS properties for scroll snap points (Closed)

Created:
5 years, 7 months ago by majidvp
Modified:
5 years, 6 months ago
CC:
blink-reviews, blink-reviews-style_chromium.org, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add CSS properties needed for scroll snap points The code was partially ported over from webkit implementation but it had to be considerably rewritten to fit blink's CSS parsing. - scroll-snap-type: primitive - scroll-snap-coordinate: <position># - scroll-snap-destination: <position> - scroll-snap-points-x: repeat(<length>) - scroll-snap-points-y: repeat(<length>) Spec link: http://dev.w3.org/csswg/css-snappoints/#property-index BUG=311234 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196586

Patch Set 1 #

Patch Set 2 : Add remaining properties #

Patch Set 3 : Fix crash #

Patch Set 4 : Fix test #

Patch Set 5 : Change points-{x,y} default value #

Patch Set 6 : rebase #

Patch Set 7 : Add additional tests for position parsing #

Total comments: 24

Patch Set 8 : Address review feedback #

Total comments: 13

Patch Set 9 : fix parsePositionList #

Total comments: 1

Patch Set 10 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+550 lines, -59 lines) Patch
M LayoutTests/fast/css/getComputedStyle/computed-style-listing-expected.txt View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-listing-expected.txt View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/scroll-snap-parsing.html View 1 2 3 4 5 6 7 8 1 chunk +80 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/scroll-snap-parsing-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +120 lines, -0 lines 0 comments Download
M LayoutTests/svg/css/getComputedStyle-listing-expected.txt View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/css-properties-as-js-properties-expected.txt View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 1 chunk +6 lines, -1 line 0 comments Download
M Source/core/css/CSSPrimitiveValueMappings.h View 1 chunk +33 lines, -0 lines 0 comments Download
M Source/core/css/CSSProperties.in View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -2 lines 0 comments Download
M Source/core/css/CSSValueKeywords.in View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +46 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSParserFastPaths.cpp View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 6 7 8 9 5 chunks +74 lines, -3 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -1 line 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.cpp View 1 2 3 4 5 6 7 8 2 chunks +35 lines, -1 line 0 comments Download
M Source/core/frame/UseCounter.cpp View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M Source/core/style/ComputedStyle.h View 1 2 3 4 5 6 7 8 4 chunks +18 lines, -0 lines 0 comments Download
M Source/core/style/ComputedStyle.cpp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/style/ComputedStyleConstants.h View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/style/StyleRareNonInheritedData.h View 1 2 3 4 5 6 7 3 chunks +4 lines, -0 lines 0 comments Download
M Source/core/style/StyleRareNonInheritedData.cpp View 1 2 6 chunks +6 lines, -1 line 0 comments Download
A + Source/core/style/StyleScrollSnapData.h View 1 2 3 4 5 6 7 2 chunks +28 lines, -33 lines 0 comments Download
A + Source/core/style/StyleScrollSnapData.cpp View 1 2 3 4 5 6 7 8 2 chunks +35 lines, -15 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
majidvp
+ timloh@ to review
5 years, 7 months ago (2015-05-26 19:14:49 UTC) #2
majidvp
https://codereview.chromium.org/1148873005/diff/120001/LayoutTests/fast/css/scroll-snap-parsing.html File LayoutTests/fast/css/scroll-snap-parsing.html (right): https://codereview.chromium.org/1148873005/diff/120001/LayoutTests/fast/css/scroll-snap-parsing.html#newcode38 LayoutTests/fast/css/scroll-snap-parsing.html:38: <div class="test" property="scroll-snap-destination" style="scroll-snap-destination: 0 10px;" expected="0px 10px" desc="unitless/pixel ...
5 years, 7 months ago (2015-05-26 19:25:07 UTC) #3
Timothy Loh
I skimmed the patch and it seems mostly fine. Will have a closer look later ...
5 years, 7 months ago (2015-05-27 00:54:04 UTC) #4
majidvp
https://codereview.chromium.org/1148873005/diff/120001/LayoutTests/fast/css/scroll-snap-parsing.html File LayoutTests/fast/css/scroll-snap-parsing.html (right): https://codereview.chromium.org/1148873005/diff/120001/LayoutTests/fast/css/scroll-snap-parsing.html#newcode38 LayoutTests/fast/css/scroll-snap-parsing.html:38: <div class="test" property="scroll-snap-destination" style="scroll-snap-destination: 0 10px;" expected="0px 10px" desc="unitless/pixel ...
5 years, 7 months ago (2015-05-27 17:48:11 UTC) #5
Timothy Loh
https://codereview.chromium.org/1148873005/diff/120001/LayoutTests/fast/css/scroll-snap-parsing.html File LayoutTests/fast/css/scroll-snap-parsing.html (right): https://codereview.chromium.org/1148873005/diff/120001/LayoutTests/fast/css/scroll-snap-parsing.html#newcode38 LayoutTests/fast/css/scroll-snap-parsing.html:38: <div class="test" property="scroll-snap-destination" style="scroll-snap-destination: 0 10px;" expected="0px 10px" desc="unitless/pixel ...
5 years, 6 months ago (2015-05-28 07:09:27 UTC) #6
majidvp
PTAL. https://codereview.chromium.org/1148873005/diff/120001/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1148873005/diff/120001/Source/core/css/parser/CSSPropertyParser.cpp#newcode2063 Source/core/css/parser/CSSPropertyParser.cpp:2063: // TODO(majidvp): parse comma separated position lists correctly ...
5 years, 6 months ago (2015-06-01 20:06:37 UTC) #7
majidvp
On 2015/06/01 20:06:37, majidvp wrote: > PTAL. > > https://codereview.chromium.org/1148873005/diff/120001/Source/core/css/parser/CSSPropertyParser.cpp > File Source/core/css/parser/CSSPropertyParser.cpp (right): > ...
5 years, 6 months ago (2015-06-03 13:35:24 UTC) #8
Timothy Loh
https://codereview.chromium.org/1148873005/diff/140001/Source/core/css/CSSProperties.in File Source/core/css/CSSProperties.in (right): https://codereview.chromium.org/1148873005/diff/140001/Source/core/css/CSSProperties.in#newcode391 Source/core/css/CSSProperties.in:391: scroll-snap-type runtime_flag=CSSScrollSnapPoints, type_name=ScrollSnapType Can we keep the list of ...
5 years, 6 months ago (2015-06-04 03:58:27 UTC) #9
majidvp
https://codereview.chromium.org/1148873005/diff/140001/Source/core/css/CSSProperties.in File Source/core/css/CSSProperties.in (right): https://codereview.chromium.org/1148873005/diff/140001/Source/core/css/CSSProperties.in#newcode391 Source/core/css/CSSProperties.in:391: scroll-snap-type runtime_flag=CSSScrollSnapPoints, type_name=ScrollSnapType On 2015/06/04 03:58:26, Timothy Loh wrote: ...
5 years, 6 months ago (2015-06-04 22:41:40 UTC) #10
Timothy Loh
lgtm https://codereview.chromium.org/1148873005/diff/160001/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1148873005/diff/160001/Source/core/css/parser/CSSPropertyParser.cpp#newcode5622 Source/core/css/parser/CSSPropertyParser.cpp:5622: // a non or end of the list ...
5 years, 6 months ago (2015-06-05 01:16:12 UTC) #11
majidvp
+ vollick@: for RuntimeEnabledFeatures.in
5 years, 6 months ago (2015-06-05 01:31:22 UTC) #13
Ian Vollick
On 2015/06/05 at 01:31:22, majidvp wrote: > + vollick@: for RuntimeEnabledFeatures.in lgtm
5 years, 6 months ago (2015-06-05 02:23:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1148873005/180001
5 years, 6 months ago (2015-06-05 15:04:04 UTC) #17
commit-bot: I haz the power
5 years, 6 months ago (2015-06-05 16:24:08 UTC) #18
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196586

Powered by Google App Engine
This is Rietveld 408576698