|
|
Created:
4 years, 9 months ago by rwlbuis Modified:
4 years, 9 months ago CC:
chromium-reviews, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionMove some grid related longhands into CSSPropertyParser
Move the following grid related shorthands from
LegacyCSSPropertyParser into CSSPropertyParser:
justify-self, justify-items,
align-self, align-items
BUG=499780
Committed: https://crrev.com/4699914d8fe7b1594c711c94a3c3362b8fe54c1f
Cr-Commit-Position: refs/heads/master@{#380513}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Address review comments #Patch Set 3 : V3 #
Messages
Total messages: 32 (14 generated)
Description was changed from ========== justify-self WIP BUG= ========== to ========== Move some grid related longhands into CSSPropertyParser Move the following grid related shorthands from LegacyCSSPropertyParser into CSSPropertyParser: justify-self, justify-items, align-self, align-items BUG=499780 ==========
rob.buis@samsung.com changed reviewers: + timloh@chromium.org
PTAL.
ccing jfernandez - fyi this will conflict with a patch you have up. Also could you comment on my suggestion below to rename variable names? Thanks! https://codereview.chromium.org/1776983003/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1776983003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:3570: if (isItemPositionKeyword(range.peek().id())) { Isn't this almost the same as the regular pattern ? Seems like we should just do it like normal. Also maybe a good idea to match the terms in the current spec? overflowPosition = consumeIdent<CSSValueUnsafe, CSSValueSafe>(range); selfPosition = consumeSelfPositionKeyword(range); if (!selfPosition) return false; if (!overflowPosition) overflowPosition = consumeIdent<CSSValueUnsafe, CSSValueSafe>(range); ...
jfernandez@igalia.com changed reviewers: + jfernandez@igalia.com
https://codereview.chromium.org/1776983003/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1776983003/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:3570: if (isItemPositionKeyword(range.peek().id())) { On 2016/03/10 00:12:14, Timothy Loh wrote: > Isn't this almost the same as the regular pattern ? Seems like we should just do > it like normal. The only special thing we do here is to take care about the order we consume the different keywords. Specs defines the syntax <overflow-position> && <self-position>, so they can be defined in any order. Also maybe a good idea to match the terms in the current spec? > Totally agree about the names; it as <item-position> at the time we implemented that parsing logic. > overflowPosition = consumeIdent<CSSValueUnsafe, CSSValueSafe>(range); > selfPosition = consumeSelfPositionKeyword(range); > if (!selfPosition) > return false; > if (!overflowPosition) > overflowPosition = consumeIdent<CSSValueUnsafe, CSSValueSafe>(range); > ...
On 2016/03/10 14:11:02, jfernandez wrote: > https://codereview.chromium.org/1776983003/diff/1/third_party/WebKit/Source/c... > File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): > > https://codereview.chromium.org/1776983003/diff/1/third_party/WebKit/Source/c... > third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:3570: if > (isItemPositionKeyword(range.peek().id())) { > On 2016/03/10 00:12:14, Timothy Loh wrote: > > Isn't this almost the same as the regular pattern ? Seems like we should just > do > > it like normal. > > The only special thing we do here is to take care about the order we consume the > different keywords. Specs defines the syntax <overflow-position> && > <self-position>, so they can be defined in any order. > > Also maybe a good idea to match the terms in the current spec? > > > > Totally agree about the names; it as <item-position> at the time we implemented > that parsing logic. > > > overflowPosition = consumeIdent<CSSValueUnsafe, CSSValueSafe>(range); > > selfPosition = consumeSelfPositionKeyword(range); > > if (!selfPosition) > > return false; > > if (!overflowPosition) > > overflowPosition = consumeIdent<CSSValueUnsafe, CSSValueSafe>(range); > > ... Thanks guys, I basically used above code in patch set 2. BTW I implement the parsing logic based on what I hope is the latest spec: https://www.w3.org/TR/css3-align/#propdef-align-self PTAL.
On 2016/03/10 19:20:19, rwlbuis wrote: > On 2016/03/10 14:11:02, jfernandez wrote: > > > https://codereview.chromium.org/1776983003/diff/1/third_party/WebKit/Source/c... > > File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (right): > > > > > https://codereview.chromium.org/1776983003/diff/1/third_party/WebKit/Source/c... > > third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:3570: if > > (isItemPositionKeyword(range.peek().id())) { > > On 2016/03/10 00:12:14, Timothy Loh wrote: > > > Isn't this almost the same as the regular pattern ? Seems like we should > just > > do > > > it like normal. > > > > The only special thing we do here is to take care about the order we consume > the > > different keywords. Specs defines the syntax <overflow-position> && > > <self-position>, so they can be defined in any order. > > > > Also maybe a good idea to match the terms in the current spec? > > > > > > > Totally agree about the names; it as <item-position> at the time we > implemented > > that parsing logic. > > > > > overflowPosition = consumeIdent<CSSValueUnsafe, CSSValueSafe>(range); > > > selfPosition = consumeSelfPositionKeyword(range); > > > if (!selfPosition) > > > return false; > > > if (!overflowPosition) > > > overflowPosition = consumeIdent<CSSValueUnsafe, CSSValueSafe>(range); > > > ... > > Thanks guys, I basically used above code in patch set 2. BTW I implement the > parsing logic based on what I hope is the latest spec: > https://www.w3.org/TR/css3-align/#propdef-align-self > > PTAL. Better use this spec version https://drafts.csswg.org/css-align/#align-self-property
On 2016/03/10 19:39:39, jfernandez wrote: > Better use this spec version > > https://drafts.csswg.org/css-align/#align-self-property Thanks, I renamed based on this in patch set 3.
On 2016/03/10 19:48:37, rwlbuis wrote: > On 2016/03/10 19:39:39, jfernandez wrote: > > Better use this spec version > > > > https://drafts.csswg.org/css-align/#align-self-property > > Thanks, I renamed based on this in patch set 3. lgtm
The CQ bit was checked by rob.buis@samsung.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776983003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776983003/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by rob.buis@samsung.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776983003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776983003/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by rob.buis@samsung.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776983003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776983003/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by rob.buis@samsung.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776983003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776983003/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by rob.buis@samsung.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776983003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776983003/40001
Message was sent while issue was closed.
Description was changed from ========== Move some grid related longhands into CSSPropertyParser Move the following grid related shorthands from LegacyCSSPropertyParser into CSSPropertyParser: justify-self, justify-items, align-self, align-items BUG=499780 ========== to ========== Move some grid related longhands into CSSPropertyParser Move the following grid related shorthands from LegacyCSSPropertyParser into CSSPropertyParser: justify-self, justify-items, align-self, align-items BUG=499780 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Move some grid related longhands into CSSPropertyParser Move the following grid related shorthands from LegacyCSSPropertyParser into CSSPropertyParser: justify-self, justify-items, align-self, align-items BUG=499780 ========== to ========== Move some grid related longhands into CSSPropertyParser Move the following grid related shorthands from LegacyCSSPropertyParser into CSSPropertyParser: justify-self, justify-items, align-self, align-items BUG=499780 Committed: https://crrev.com/4699914d8fe7b1594c711c94a3c3362b8fe54c1f Cr-Commit-Position: refs/heads/master@{#380513} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/4699914d8fe7b1594c711c94a3c3362b8fe54c1f Cr-Commit-Position: refs/heads/master@{#380513} |