Commit Graph

96 Commits

Author SHA1 Message Date
Mats Palmgren
aa1a02ded6 Bug 1118820 part 5 - [css-grid] Remove any empty 'repeat(auto-fit)' tracks at the end of its range and adjust affected grid area line numbers accordingly. r=dholbert 2015-12-22 23:03:16 +01:00
Mats Palmgren
6c3dc42815 Bug 1118820 part 4 - [css-grid] Provide the sizes to use for CalculateRepeatFillCount. r=dholbert 2015-12-22 23:03:16 +01:00
Mats Palmgren
6db102a5d8 Bug 1118820 part 3b - [css-grid] Implement the CalculateRepeatFillCount method that calculates the number of 'repeat(auto-fill/auto-fit)' tracks to use for the given sizes. r=dholbert 2015-12-22 23:03:16 +01:00
Mats Palmgren
0fa25cd68c Bug 1118820 part 3a - [css-grid] Modify TrackSizingFunctions to take a dynamic number of 'repeat(auto-fill/auto-fit)' tracks taking into account. r=dholbert 2015-12-22 23:03:16 +01:00
Mats Palmgren
6a0b77effc Bug 1118820 part 2c+2d - [css-grid] Modify the LineNameMap::FindLine/RFindLine/FindNamedLine methods to take line names associated with 'repeat(auto-fill/auto-fit)' tracks into account. Instantiate and pass around a LineNameMap object instead of an array of line name arrays. r=dholbert 2015-12-22 23:03:15 +01:00
Mats Palmgren
1d19f2a174 Bug 1118820 part 2b - [css-grid] Move the static functions FindLine/RFindLine/FindNamedLine into the LineNameMap class (idempotent patch). r=dholbert 2015-12-22 23:03:15 +01:00
Mats Palmgren
8c1437aebd Bug 1118820 part 2a - [css-grid] Add a LineNameMap class that lets us lookup line names with a dynamic number of 'repeat(auto-fill/auto-fit)' tracks taken into account. r=dholbert 2015-12-22 23:03:15 +01:00
Mats Palmgren
bf96241100 Bug 1226697 part 1 - [css-grid] Fix off-by-one error when counting lines in reverse. r=dholbert 2015-12-17 04:12:09 +01:00
Carsten "Tomcat" Book
b2138a4f83 Backed out changeset 2391e16acb15 (bug 1226697) for android r14 test failures in clipPath-html-06.xhtml 2015-12-16 12:03:13 +01:00
Mats Palmgren
d91ea7b40a Bug 1226697 part 1 - [css-grid] Fix off-by-one error when counting lines in reverse. r=dholbert 2015-12-16 04:27:12 +01:00
Mats Palmgren
d7d5269f4c Bug 1230695 - [css-grid] abs.pos. child spanning from an 'auto' start position to an end line should end on the start side of the gutter. r=dholbert 2015-12-09 23:46:58 +01:00
Mats Palmgren
0b4f94271c Bug 1229999 - [css-grid] Clamp auto-placed lines to where kMaxLine is in the translated grid. r=dholbert 2015-12-09 23:46:58 +01:00
Tobias Schneider
df13650f35 Bug 978212 - [css-grid] Resolved value of grid-template-{columns,rows} in px units. r=mats 2015-11-24 17:27:54 -08:00
Nigel Babu
f0c9c1d883 Backed out changeset c798c2576ad4 (bug 978212) for mochitest bustage 2015-12-08 15:55:13 +05:30
Tobias Schneider
cbe699d03c Bug 978212 - Resolved value of grid-template-{columns,rows} in px units. r=mats 2015-12-03 14:23:00 +01:00
Mats Palmgren
a9ed4267a5 Bug 1228984 - [css-grid] Auto-placement into columns missed some unoccupied span-1 column slots. r=dholbert 2015-12-02 14:12:24 +01:00
Mats Palmgren
23eba646ad Bug 1229165 - [css-grid] Apply min/max-width/height properties to clamp block-size of auto-height grid containers. r=dholbert 2015-12-02 14:12:24 +01:00
Mats Palmgren
2874c6e6fc Bug 1227285 part 2 - [css-grid] Request shrink-wrap behavior when doing a measuring reflow to figure out a grid item's block-size. r=dholbert 2015-12-02 14:12:23 +01:00
Mats Palmgren
1998e3c898 Bug 1229145 - [css-grid] Account for start margin when calculating border box offset for align-self/justify-self:center. r=dholbert 2015-12-01 23:20:18 +01:00
Mats Palmgren
b65f5f8f9c Bug 1176793 part 1 - [css-grid] Implement margin:auto for grid items. r=dholbert 2015-12-01 23:20:18 +01:00
Mats Palmgren
5df657f9e0 Bug 1225368 - [css-grid] Make CollectGrowable() deal with frozen tracks; i.e. subtract their base size but don't collect them since they aren't growable. r=dholbert 2015-11-28 21:37:44 +01:00
Mats Palmgren
07bd900b59 Bug 1227099 - [css-grid] Grid container block-size should include a grid-row-gap between each row. r=dholbert 2015-11-28 21:37:44 +01:00
Mats Palmgren
c49a23f7ce Bug 1225592 - [css-grid] Apply a max limit to the number of explicit tracks we will store (kMaxLine - 1). Also make the layout code more robust so it doesn't depend on that. r=dholbert 2015-11-28 21:37:44 +01:00
Mats Palmgren
0a9fc78a26 Bug 1225376 part 1 - [css-align] Don't compute left/right to start in the style system anymore (due to pending spec change). Map the used value instead (in layout). r=dholbert
For background, see this www-style thread:
https://lists.w3.org/Archives/Public/www-style/2015Nov/0280.html
2015-11-28 21:37:44 +01:00
Mats Palmgren
787aab2030 Bug 1176792 part 2 - [css-grid] Implement layout for the 'grid-column-gap' and 'grid-row-gap' properties. r=dholbert 2015-11-18 19:52:27 +01:00
Mats Palmgren
b442e0b4b3 Bug 1225118 - [css-grid] Deal with nscoord overflow when applying [align|justify]-self:stretch. r=dholbert 2015-11-17 15:00:29 +01:00
Mats Palmgren
d860fa7191 Bug 1211260 - [css-grid] Follow-up: address a code readability nit that I missed. r=dholbert 2015-11-03 22:33:16 +01:00
Mats Palmgren
a09faf6998 Bug 1176775 part 1 - [css-grid] Implement "Implied Minimum Size of Grid Items" (special min-width/height:auto behavior). r=dholbert 2015-11-03 21:45:33 +01:00
Mats Palmgren
a113aae1a5 Bug 1163435 part 1 - [css-grid][css-flexbox] Propagate an explicit CB width/height to the reflow state to resolve percentage lengths for grid items properly. Resolve percent against the size in the same axis for abs.pos. children too. r=dholbert
Grid items are supposed to use the size of their 'grid area',
not their grid container, as their containing block.
2015-11-03 21:45:33 +01:00
Mats Palmgren
d05caaac36 Bug 1215957 - Start at the end of the explicit grid also when matching plain negative number lines. r=dholbert 2015-11-03 21:45:32 +01:00
Mats Palmgren
9f977fa5fc Bug 1215182 - [css-grid] Make our "Implicit Named Areas" detection match the spec. r=dholbert 2015-11-03 21:45:32 +01:00
Mats Palmgren
97a104a942 Bug 1211260 - Implement the new Grid Placement Conflict Handling: "If the placement for a grid item contains two lines, and the start line is further end-ward than the end line, swap the two lines." r=dholbert
https://drafts.csswg.org/css-grid/#grid-placement-errors
2015-11-03 21:45:32 +01:00
Mats Palmgren
b264df1571 Bug 1215099 part 2 - [css-grid] An empty grid should still have one explicit grid line in each axis. r=dholbert 2015-11-03 21:45:32 +01:00
Mats Palmgren
7920856c17 Bug 1151214 part 3 - [css-grid][css-align] Implement layout for the 'justify-content' and 'align-content' CSS properties on grid containers. r=dholbert 2015-11-03 17:52:40 +01:00
Mats Palmgren
8abe331366 Bug 1151213 part 1 - [css-grid][css-align] Implement layout for the 'align-self' and 'justify-self' properties on grid items. r=dholbert 2015-11-03 17:52:40 +01:00
Mats Palmgren
72573926a9 Bug 1204585 part 1 - [css-grid] Use the grid area's size when converting to physical coordinates for abs.pos. items. r=dholbert
It's the item's grid area that forms the containing block rect,
not the grid container.
2015-09-15 23:34:08 +02:00
Mats Palmgren
29efca660f Bug 1174553 part 5 - [css-grid] Replace the ambiguous Dimension with LogicalAxis. r=dholbert 2015-09-04 22:06:58 +02:00
Mats Palmgren
ea9f6fea4c Bug 1174574 part 2 - [css-grid] Implement intrinsic sizing for grid containers (aka GetMinISize/GetPrefISize). r=dholbert 2015-09-04 22:06:58 +02:00
Mats Palmgren
d799b25f16 Bug 1174574 part 1 - [css-grid] Move the guts of nsGridContainerFrame::CalculateTrackSizes into a Tracks method. r=dholbert 2015-09-04 22:06:57 +02:00
Mats Palmgren
d9b3096fbb Bug 1176621 - [css-grid] Implement "Stretch Flexible Tracks" and associated algorithms. r=dholbert 2015-09-04 22:06:57 +02:00
Mats Palmgren
d24fdc22fa Bug 1176619 - [css-grid] Implement the "Maximize Tracks" algorithm. r=dholbert 2015-09-04 22:06:57 +02:00
Mats Palmgren
08a8ff8de4 Bug 1151212 part 3 - [css-grid] Implement the "Resolve Intrinsic Track Sizes" algorithm. r=dholbert 2015-09-04 22:06:57 +02:00
Mats Palmgren
73b1279e0e Bug 1174553 part 3 - [css-grid] Implement the 'min-content' / 'max-content' sizing functions in layout. r=dholbert 2015-09-04 22:06:57 +02:00
Mats Palmgren
891bf53892 Bug 1174546 part 2 - [css-grid] Implement the 'auto' min-sizing function in Grid layout. r=jfkthame 2015-09-04 22:06:57 +02:00
Mats Palmgren
04c2ee449f Bug 1151212 part 2 - [css-grid] Introduce a local GridItemInfo struct for holding a grid item's GridArea and other things. Put two nsTArrays of those in the grid container frame, one for normal flow items and one for abs.pos. grid-aligned descendants. Add a GridItemIndex method on the grid item iterator to return the index for the current item. r=dholbert 2015-09-04 22:06:57 +02:00
Mats Palmgren
1c16c0bb7e Bug 1151212 part 1 - [css-grid] Introduce a few local structs (GridReflowState, Tracks, TrackSizingFunctions) to make it easier to pass around data. r=dholbert 2015-09-04 22:06:57 +02:00
Mats Palmgren
98e0e2b9c8 Bug 1194888 - [css-grid] A line outside the existing grid should be treated as 'auto' for abs.pos (10.1). r=dholbert 2015-08-25 15:40:10 +02:00
Mats Palmgren
5e18f6b48c Bug 1194892 - [css-grid] "span * / span *" should be treated as "auto / auto" for abs.pos. grid items. r=dholbert 2015-08-25 15:40:10 +02:00
Jonathan Kew
4e6c40d7ea Bug 1131451 part 1 - Replace containerWidth with containerSize in logical-coordinate classes and APIs, frame classes, etc. r=dholbert 2015-07-16 10:07:57 +01:00
Jonathan Kew
ded32b575f Bug 1171773 - Handle reflowing a grid item with different writing mode from its grid container. r=mats 2015-06-06 07:15:36 +01:00