|
Support intrinsic values for height, min-height and max-height
As specified in http://dev.w3.org/csswg/css-sizing/
The changes here fall in three categories:
- Change RenderBox to pass the content height through to
computeLogicalHeight and related functions, which needs it to resolve
max-content, et. al.
- Make the callers pass the content height to this function. Some
callers pass logicalHeight() (adjusted for border/padding) - this
works because if logicalHeight is not the content height, then it is
the height we ended up using, so the constrain* functions will just
constrain to that value again
- Changes to CSS parsing to accept the values for heights, not just
widths.
BUG= 226251
R=ojan@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148314
Total comments: 29
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1382 lines, -111 lines) |
Patch |
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height.html
|
View
|
1
2
|
1 chunk |
+92 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-css-tables.html
|
View
|
1
2
3
4
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-css-tables-collapsed.html
|
View
|
1
2
3
4
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-css-tables-collapsed-expected.html
|
View
|
1
2
3
4
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-css-tables-expected.html
|
View
|
1
2
3
4
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-expected.html
|
View
|
1
2
|
1 chunk |
+80 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-flexbox.html
|
View
|
1
2
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-flexbox-expected.html
|
View
|
1
2
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-positioned.html
|
View
|
1
2
3
|
1 chunk |
+129 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-positioned-expected.html
|
View
|
1
2
3
|
1 chunk |
+120 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-positioned-replaced.html
|
View
|
1
2
3
|
1 chunk |
+119 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-positioned-replaced-expected.html
|
View
|
1
2
3
|
1 chunk |
+111 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/css-intrinsic-dimensions/height-property-value.html
|
View
|
|
2 chunks |
+13 lines, -13 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/css-intrinsic-dimensions/height-property-value-expected.txt
|
View
|
|
1 chunk |
+13 lines, -28 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-replaced.html
|
View
|
1
2
|
1 chunk |
+84 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-replaced-expected.html
|
View
|
1
2
|
1 chunk |
+85 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-tables.html
|
View
|
1
2
3
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-tables-collapsed.html
|
View
|
1
2
3
4
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-tables-collapsed-expected.html
|
View
|
1
2
3
4
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/height-tables-expected.html
|
View
|
1
2
3
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/css-intrinsic-dimensions/resources/height-keyword-classes.css
|
View
|
1
2
|
1 chunk |
+77 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/WebCore/css/CSSParser.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
Source/WebCore/css/CSSParser.cpp
|
View
|
1
2
3
|
3 chunks |
+8 lines, -26 lines |
0 comments
|
Download
|
 |
M |
Source/WebCore/css/StyleBuilder.cpp
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/WebCore/platform/Length.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/WebCore/rendering/RenderBox.h
|
View
|
1
2
3
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/WebCore/rendering/RenderBox.cpp
|
View
|
1
2
3
|
13 chunks |
+49 lines, -21 lines |
0 comments
|
Download
|
 |
M |
Source/WebCore/rendering/RenderFlexibleBox.cpp
|
View
|
|
2 chunks |
+10 lines, -6 lines |
0 comments
|
Download
|
 |
M |
Source/WebCore/rendering/RenderGrid.cpp
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/WebCore/rendering/RenderReplaced.cpp
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/WebCore/rendering/RenderTable.cpp
|
View
|
1
2
3
|
2 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
Total messages: 16 (0 generated)
|