|
|
[CSS Grid Layout] Avoid using StyleAdjuster to resolve 'auto' values.
CSS Box Alignment specification defines a particular way of resolving
'auto' values for the alignment properties, resulting in different
values depending on the kind of the styled element. Because of this, we
were resolving such values during the style cascade resolution.
This approach implies that we need to Reattach the style whenever a
change is made in the value of these properties, in order to perform
again the style cascade resolution.
The Reattach causes many issues so we need to explore a different approach
to perform the 'auto' values resolution. This patch delegates this logic
to the appropriated LayoutObjects during the layout, where these values
are actually used.
The cons of this approach is that we need to duplicated part of this code
to implement the computed style logic for these properties, which I think
is something we can assume.
BUG= 249451, 376823
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+239 lines, -289 lines) |
Patch |
 |
M |
LayoutTests/TestExpectations
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/css3/flexbox/css-properties.html
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/css3/flexbox/css-properties-expected.txt
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/alignment/parse-align-self.html
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/alignment/parse-align-self-expected.txt
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/alignment/parse-justify-content.html
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/alignment/parse-justify-content-expected.txt
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/alignment/parse-justify-items.html
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/alignment/parse-justify-items-expected.txt
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/alignment/parse-justify-self.html
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/alignment/parse-justify-self-expected.txt
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/alignment/resources/alignment-parsing-utils.js
|
View
|
|
1 chunk |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-listing-expected.txt
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/repaint/align-content-distribution-change-grid-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/repaint/align-content-position-change-grid-expected.txt
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/repaint/align-items-change-expected.txt
|
View
|
1
2
|
1 chunk |
+4 lines, -10 lines |
0 comments
|
Download
|
 |
A + |
LayoutTests/fast/repaint/align-items-change-keeping-geometry.html
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
A + |
LayoutTests/fast/repaint/align-items-change-keeping-geometry-expected.txt
|
View
|
1
2
3
4
5
6
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
LayoutTests/fast/repaint/align-items-change-keeping-geometry-grid.html
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A + |
LayoutTests/fast/repaint/align-items-change-keeping-geometry-grid-expected.txt
|
View
|
1
2
3
4
5
6
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/repaint/align-items-overflow-change-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/repaint/align-self-change-grid-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/repaint/align-self-overflow-change-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/repaint/justify-content-distribution-change-grid-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/repaint/justify-content-position-change-grid-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/repaint/justify-items-change-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
A + |
LayoutTests/fast/repaint/justify-items-change-keeping-geometry.html
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
A + |
LayoutTests/fast/repaint/justify-items-change-keeping-geometry-expected.txt
|
View
|
1
2
3
4
5
6
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/repaint/justify-items-legacy-change-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/repaint/justify-items-overflow-change-expected.txt
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/repaint/justify-self-overflow-change-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/virtual/slimmingpaint/fast/repaint/align-content-distribution-change-grid-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/virtual/slimmingpaint/fast/repaint/align-content-position-change-grid-expected.txt
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/virtual/slimmingpaint/fast/repaint/align-items-change-expected.txt
|
View
|
1
2
3
|
1 chunk |
+5 lines, -19 lines |
0 comments
|
Download
|
 |
A + |
LayoutTests/virtual/slimmingpaint/fast/repaint/align-items-change-keeping-geometry-expected.txt
|
View
|
1
2
3
4
5
6
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
LayoutTests/virtual/slimmingpaint/fast/repaint/align-items-change-keeping-geometry-grid-expected.txt
|
View
|
1
2
3
4
5
6
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/virtual/slimmingpaint/fast/repaint/align-items-overflow-change-expected.txt
|
View
|
1
2
3
4
|
2 chunks |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/virtual/slimmingpaint/fast/repaint/align-self-change-grid-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/virtual/slimmingpaint/fast/repaint/align-self-overflow-change-expected.txt
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/virtual/slimmingpaint/fast/repaint/justify-content-distribution-change-grid-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/virtual/slimmingpaint/fast/repaint/justify-content-position-change-grid-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/virtual/slimmingpaint/fast/repaint/justify-items-change-expected.txt
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
A + |
LayoutTests/virtual/slimmingpaint/fast/repaint/justify-items-change-keeping-geometry-expected.txt
|
View
|
1
2
3
4
5
6
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/virtual/slimmingpaint/fast/repaint/justify-items-legacy-change-expected.txt
|
View
|
1
2
3
|
1 chunk |
+0 lines, -12 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/virtual/slimmingpaint/fast/repaint/justify-items-overflow-change-expected.txt
|
View
|
1
2
3
4
5
6
|
2 chunks |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/virtual/slimmingpaint/fast/repaint/justify-self-overflow-change-expected.txt
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/ComputedStyleCSSValueMapping.cpp
|
View
|
1
2
3
4
5
6
|
5 chunks |
+55 lines, -24 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/resolver/StyleAdjuster.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/css/resolver/StyleAdjuster.cpp
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+5 lines, -73 lines |
0 comments
|
Download
|
 |
M |
Source/core/layout/LayoutBox.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/layout/LayoutBox.cpp
|
View
|
1
2
3
4
5
6
|
3 chunks |
+19 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/layout/LayoutFlexibleBox.cpp
|
View
|
1
|
8 chunks |
+21 lines, -12 lines |
0 comments
|
Download
|
 |
M |
Source/core/layout/LayoutGrid.cpp
|
View
|
1
2
3
4
5
6
|
11 chunks |
+18 lines, -14 lines |
0 comments
|
Download
|
 |
M |
Source/core/style/ComputedStyle.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/style/ComputedStyle.cpp
|
View
|
1
2
3
4
5
6
|
4 chunks |
+54 lines, -7 lines |
0 comments
|
Download
|
Total messages: 14 (3 generated)
|