Changeset 182780 in webkit for trunk/Source/WebCore/ChangeLog
- Timestamp:
- Apr 13, 2015, 9:59:09 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/Source/WebCore/ChangeLog (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r182773 r182780 1 2015-04-13 Manuel Rego Casasnovas <rego@igalia.com> 2 3 [CSS Grid Layout] Columns set in percentages collapse to auto width 4 https://bugs.webkit.org/show_bug.cgi?id=141435 5 6 Reviewed by David Hyatt. 7 8 Based on a patch by Sergio Villar Senin <svillar@igalia.com>. 9 10 This patch adds 2 new new methods in RenderBox to determine if the grid 11 has a definite size or not. 12 13 RenderGrid::gridTrackSize() was not checking properly if the grid has or 14 not an indefinite size. 15 The condition was including auto which is not indefinite per se. For 16 example, auto is definite if the containing block is definite. 17 As the new method is more expensive, we just call it when it's really 18 needed to avoid performance regressions. 19 20 Finally we were setting the override logical width/height to -1 (no 21 possible resolution) for all the items regardless if they've a relative 22 width/height or a fixed one. 23 Added the condition, including not only items with percentage logical 24 width/height but also relative, to avoid overriding the value for items 25 with fixed width/height as it's not needed. 26 27 Tests: fast/css-grid-layout/grid-item-with-percent-height-in-auto-height-grid-resolution.html 28 fast/css-grid-layout/percent-intrinsic-track-breadth.html 29 fast/css-grid-layout/percent-track-breadths-regarding-container-size.html 30 31 * rendering/RenderBox.cpp: 32 (WebCore::logicalWidthIsResolvable): 33 (WebCore::RenderBox::hasDefiniteLogicalWidth): 34 (WebCore::RenderBox::percentageLogicalHeightIsResolvableFromBlock): 35 (WebCore::RenderBox::hasRelativeLogicalWidth): 36 * rendering/RenderBox.h: 37 * rendering/RenderGrid.cpp: 38 (WebCore::RenderGrid::hasDefiniteLogicalSize): 39 (WebCore::RenderGrid::gridTrackSize): 40 (WebCore::RenderGrid::logicalContentHeightForChild): 41 (WebCore::RenderGrid::minContentForChild): 42 (WebCore::RenderGrid::maxContentForChild): 43 * rendering/RenderGrid.h: 44 1 45 2015-04-13 Chris Dumez <cdumez@apple.com> 2 46
Note:
See TracChangeset
for help on using the changeset viewer.