Description[Alignment] Single class for holding the alignment data.
The new CSS3 Box Alignment specification changed the value of alignment
properties, like align-self, align-items and justify-content to be
complex values rather than single keywords.
We have implemented the new spec by defining different class fields for
each kind of keyword, eg. <item-position>, <content-position>, <overflow>
and <content-distribution>. This approach has been proved to be fairly
inconsitent and buggy, as several Flexbox regressions have shown so far.
This patch defines a single class to hold all the alignment data stored
before in the different StyleRareNonInherited class fields. This way we
can detect style changes more easily, provide more consitent behavior
and ensuring backward compatibility with Flexbox implementation.
BUG=226252
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194466
Patch Set 1 #
Total comments: 4
Patch Set 2 : Applied suggested changes. #
Total comments: 10
Patch Set 3 : Using the StyleConverter. #
Total comments: 19
Patch Set 4 : Defining one converter for each property. #Patch Set 5 : Applied suggested changes. #Patch Set 6 : Unify inital values and simplify style converter logic. #Patch Set 7 : Adjusting the StyleRareNonIheritedData class size. #
Total comments: 2
Patch Set 8 : Rebased and got back previous setter names. #Messages
Total messages: 20 (4 generated)
|