Граф коммитов

185 Коммитов

Автор SHA1 Сообщение Дата
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
Mats Palmgren e19fd63d88 Bug 1161038 - [css-grid] Make kAutoLine not clash with translated grid lines. r=dholbert 2015-05-05 21:53:22 +00:00
Mats Palmgren 57c61bb7d9 Bug 1009214 part 1 - [css-grid] Don't wrap placeholders in an anonymous grid item. r=dholbert 2015-05-05 21:53:22 +00:00
Mats Palmgren f2eae86aa2 Bug 1151316 part 1 - [css-grid] Implement relative positioning for grid items. r=roc 2015-05-05 21:53:22 +00:00
Mats Palmgren 167c7e473b Bug 1151201 - [css-grid] Update parsing of 'auto' in track-sizing functions to latest version of the spec. r=simon.sapin 2015-04-30 18:42:50 +00:00
Mats Palmgren 8140bec714 Bug 1146051 part 8 - [css-grid] Iterate all items again instead of collecting the ones with a definite position in an array which wouldn't be much of win anyway. r=dholbert 2015-04-30 18:42:50 +00:00
Mats Palmgren ba5c6f4116 Bug 1146051 part 7 - [css-grid] Make LineRange::mStart/mEnd into a union with both a signed/unsigned members to make it clear when we're working with translated line numbers and when not. r=dholbert 2015-04-30 18:42:50 +00:00
Mats Palmgren fe5823cb40 Bug 1146051 part 6b - [css-grid] Clamp grid lines after resolving 'auto'. r=dholbert 2015-04-30 18:42:50 +00:00
Mats Palmgren 998fe0239a Bug 1146051 part 6 - [css-grid] Make the grid zero-based after resolving definite lines. r=dholbert 2015-04-30 18:42:50 +00:00
Mats Palmgren fc5f8ce8f9 Bug 1146051 part 5b - [css-grid] Clamp resolved definite lines for abs.pos. to the untranslated grid bounds. r=dholbert 2015-04-30 18:42:50 +00:00
Mats Palmgren 4a11f80b65 Bug 1146051 part 5 - [css-grid] Resolve definite lines such that they expand the implicit grid also to the top/left as needed. Also, implement the 'If not enough lines with that name exist, all lines in the implicit grid are assumed to have that name' spec change when resolving <custom-ident> with <integer> or span. r=dholbert 2015-04-30 18:42:50 +00:00
Mats Palmgren 06a768fad0 Bug 1146051 part 4 - [css-grid] Translate the grid so that the top-/left-most implicit line becomes 1,1. r=dholbert 2015-04-30 18:42:50 +00:00
Mats Palmgren 4fbe133028 Bug 1146051 part 3 - [css-grid] Simplify some code because ResolveLine() never returns kAutoLine. r=dholbert 2015-04-30 18:42:50 +00:00
Mats Palmgren 2f3504012c Bug 1146051 part 2 - [css-grid] Remove dead code because ResolveLine() never returns kAutoLine. r=dholbert 2015-04-30 18:42:50 +00:00
Mats Palmgren e999493eb2 Bug 1146051 part 1 - [css-grid] Change the representation of 'auto' from zero to kAutoLine - an arbitrary number outside the range we clamp definite lines to. r=dholbert 2015-04-30 18:42:50 +00:00
Mats Palmgren 6c806ea505 Bug 1147423 part 2 - [css-grid] Clamp grid lines to the -10000 .. 10000 range. r=dholbert 2015-04-30 18:42:50 +00:00
Mats Palmgren c4cf89e642 Bug 1147423 part 1 - [css-grid] Use a signed integer type for some line variables in preparation for negative implicit lines. r=dholbert 2015-04-30 18:42:50 +00:00
Jonathan Kew 55f32f5016 Bug 1153140 - Include borderPadding width in the containerWidth for grid item placement. r=mats 2015-04-10 16:56:23 +01:00
Mats Palmgren 0de26abcb4 Bug 1151220 - [css-grid] Fix a couple of typos in InitializeTrackSize. r=dholbert 2015-04-04 08:50:00 -04:00
Mats Palmgren ed9ed2d61a Bug 1148833 part 3 - Remove nsIFrame::WillReflow and add a non-virtual MarkInReflow method instead that sets NS_FRAME_IN_REFLOW. Call it at the start of Reflow(). r=roc 2015-03-29 22:38:40 +00:00
Mats Palmgren f07f4ec4e5 Bug 1107786 - part 3, [css-grid] Implement layout and painting per the CSS 'order' property for absolute positioned grid items. r=dholbert 2015-03-26 18:57:39 +00:00
Mats Palmgren eec06d0223 Bug 1107786 - part 1, [css-grid] Implement layout and painting per the CSS 'order' property for normal flow grid items. r=dholbert 2015-03-26 18:57:39 +00:00
Mats Palmgren f1cf93f01b Bug 1145968 - [css-grid] Make grid items paint as inline-blocks and create a stacking context when 'z-index' != 'auto'. r=dholbert 2015-03-26 18:57:39 +00:00
Mats Palmgren 22055216dd Bug 1107783 - part 1, [css-grid] Implement abs.pos. grid item placement and reflow. r=dholbert 2015-03-26 18:57:39 +00:00
Mats Palmgren 666f29058a Bug 1139539 - part 2, [css-grid] Implement grid item containing block calculations and reflow (initial version). r=dholbert 2015-03-18 09:02:32 +00:00
Mats Palmgren 57c724ba23 Bug 1139539 - part 1, [css-grid] Implement primitive grid track sizing. r=dholbert
Basically just 11.4 "Initialize Track Sizes" in:
http://dev.w3.org/csswg/css-grid/#algo-init
2015-03-18 09:02:32 +00:00
Mats Palmgren 63f6e5c364 Bug 1107778 - part 1, [css-grid] implement automatic grid item placement. r=dholbert 2015-03-18 09:02:32 +00:00
Mats Palmgren edcb32eb0e Bug 1009776 - part 6, [css-grid] Update the spec reference in a comment. 2015-03-18 09:02:32 +00:00
Mats Palmgren 079c9c2c4f Bug 1009776 - part 5, [css-grid] Fill the cell map if the grid area is definite. r=dholbert 2015-03-18 09:02:32 +00:00
Mats Palmgren 18c26fbdc7 Bug 1009776 - part 4, [css-grid] Add a cell map to keep track of which grid cells are occupied. r=dholbert 2015-03-18 09:02:32 +00:00
Mats Palmgren 7dc47c3510 Bug 1009776 - part 3, [css-grid] Store the grid item's grid area on a frame property. r=dholbert 2015-03-18 09:02:32 +00:00
Mats Palmgren e6838ac9ee Bug 1009776 - part 2, [css-grid] Add a method to inflate the implicit grid to include a given grid area. r=dholbert 2015-03-18 09:02:32 +00:00
Mats Palmgren c6cd95c637 Bug 1009776 - part 1, [css-grid] Implement line-based placement. r=dholbert 2015-03-18 09:02:32 +00:00
Seth Fowler a271bba567 Bug 1128356 - Add template functions for common frame property destructors. r=dbaron 2015-02-04 15:22:27 -08:00
Mats Palmgren 3676a45518 Bug 1009282 - [css-grid] Add primitive support for implicit named areas. r=dholbert 2015-01-14 21:59:59 +00:00
Simon Montagu 18c9f2f61a Bug 789096 patch 10: make Reflow set nsHTMLReflowMetrics.ISize and BSize instead of Width and Height. r=jfkthame 2014-07-24 01:30:07 -07:00
Mats Palmgren 3e13115cf3 Bug 1025669 - part 0, Add BaseMargin::ApplySkipSides, remove nsIFrame::Apply*SkipSides, and change call sites to use the former. r=roc 2014-06-24 17:52:19 +00:00
Simon Montagu 82f2df73ba Bug 789096 patch 8: use logical coordinates in nsBlockReflowState. r=jfkthame 2014-06-20 02:55:35 -07:00
Mats Palmgren 2831fb8a6a Bug 508665 - part 4, Make nsCSSFrameConstructor use nsContainerFrame* for frames used as parent frames. r=roc 2014-05-24 22:20:40 +00:00
Mats Palmgren 006313a0a9 Bug 1009272 - [css-grid] Add some sanity checks for the grid container child frame lists. r=dholbert 2014-05-19 23:57:00 +00:00
Wes Kocher ebc2c1341a Backed out changeset 40c010000007 (bug 1009272) for B2G build bustage 2014-05-19 17:20:05 -07:00
Mats Palmgren dcad59dc18 Bug 1009272 - [css-grid] Add some sanity checks for the grid container child frame lists. r=dholbert 2014-05-19 23:57:00 +00:00
Mats Palmgren 043f9f8399 Bug 1008969 - part 2, Add a basic nsGridContainerFrame::Reflow() method. r=dholbert 2014-05-13 00:47:54 +00:00
Wes Kocher 3f93856e12 Backed out changeset 46cf8e706620 (bug 1008969) for depending on bug 1008917 which was already backed out to fix a CLOSED TREE 2014-05-12 15:57:53 -07:00
Mats Palmgren c2bbf1748b Bug 1008969 - part 2, Add a basic nsGridContainerFrame::Reflow() method. r=dholbert 2014-05-12 21:16:05 +00:00
Mats Palmgren b084cf48ba Bug 1008969 - part 0, make nsGridContainerFrame final for now, and remove some unnecessary boilerplate code, etc. r=dholbert 2014-05-12 21:16:05 +00:00
Simon Sapin 4ada4b1b26 Bug 975501 part 2: Add display:{inline-,}grid behind a pref, and a stub nsGridContainerFrame. r=dholbert 2014-02-26 23:45:29 -08:00