Cameron McCormack
babad063ff
Bug 1328832
- Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
...
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
Mats Palmgren
10150aa1b7
Bug 1232194 part 1 - [writing-mode] Drop "Get" from GetConsumedBSize() and add a WritingMode param. r=dholbert
2017-01-04 00:56:19 +01:00
Mats Palmgren
99856fc256
Bug 1312379 part 4 - Rename GetBaseline() to BaselineBOffset(). r=me
2016-12-20 23:56:35 +01:00
Mats Palmgren
ed15c70d6d
Bug 1312379 part 1 - [css-align][css-flexbox][css-grid] Introduce nsIFrame methods for calculating baselines per CSS Alignment and CSS2 'vertical-align'. r=dholbert
2016-12-20 23:56:35 +01:00
Mats Palmgren
4050dea957
Bug 1313068 - [css-grid] Synthesize a grid container baseline from the margin-box when in an inline-level context, and from the border-box otherwise. r=dholbert
2016-12-20 23:56:34 +01:00
Mats Palmgren
016956854d
Bug 1314664 part 4 - [css-grid] Don't include percentage tracks in the repeat track calculation. r=dholbert
2016-12-20 23:56:34 +01:00
Mats Palmgren
57e65418cf
Bug 1314664 part 3 - [css-grid] Remove unused eIndefinitePercentMinSizing bit. r=dholbert
2016-12-20 23:56:34 +01:00
Mats Palmgren
93730b726a
Bug 1314664 part 2 - [css-grid] Don't re-resolve percentage track sizes since there is no need. r=dholbert
2016-12-20 23:56:34 +01:00
Mats Palmgren
802952926b
Bug 1314664 part 1 - [css-grid] Don't include percentage tracks in the back-computed intrinsic size equation. r=dholbert
2016-12-20 23:56:34 +01:00
Nathan Froyd
2ebbd09068
Bug 1320752 - remove mozilla/Function.h; r=gerald
...
We have std::function available now, which is likely to be somewhat more
efficient.
2016-11-28 11:03:53 -05:00
Mats Palmgren
5129a5aa52
Bug 1316051 part 3 - [css-grid] Store the CB size that we give to table-wrappers on a frame property, then propagate that later (minus margins) to the inner table frame. r=dholbert
2016-11-18 19:08:31 +01:00
Daniel Holbert
e8d54b0d73
Bug 1269017 part 5 - [css-grid] Tag grid placeholder children as needing CSS Box Alignment, & consolidate their placement code. r=mats
...
MozReview-Commit-ID: 5105oez3IO3
2016-11-08 16:30:00 -08:00
Daniel Holbert
e2446048f6
Bug 1269017 part 2 - [css-grid] Give grid an implementation of CSSAlignmentForAbsPosChild(). r=mats
...
This grid implementation is similar to the one on nsFlexContainerFrame, with a few simplifications:
- We can simply use the LogicalAxis to decide between align-* vs justify-* prpoerties (whereas flexbox has extra abstraction from the flex axes).
- We don't have to bother with "align-content" or "justify-content", since those apply to grid areas rather than to children. (And any grid area that's involved will be sized/positioned separately.)
- Grid can unconditionally treat "flex-start" & "flex-end" as "start" & "end".
MozReview-Commit-ID: 9l1Wq9Cq5T0
2016-11-08 16:30:00 -08:00
Mats Palmgren
faf8e6f6bf
Bug 1313254 part 6 - [css-grid] A few comment tweaks. rs=dholbert
2016-11-05 02:57:08 +01:00
Mats Palmgren
b1c4b6d89a
Bug 1313254 part 2 - [css-align] Change "last-baseline" to "last baseline" in layout/ (scripted change). r=dholbert
2016-11-05 02:57:07 +01:00
Mats Palmgren
e54d8218a4
Bug 1300369 part 7 - [css-grid] Implement margin-box min-size clamping for grid item reflow. r=dholbert
2016-11-05 02:57:06 +01:00
Mats Palmgren
6b8c4c8679
Bug 1300369 part 3 - [css-grid] Implement margin-box min-size clamping during track sizing. r=dholbert
2016-11-05 02:57:06 +01:00
Daniel Holbert
8a46fab5d0
Bug 1269046 part 8: Rewrite CSSAlignUtils::AlignJustifySelf to use a single "flags" arg instead of boolean args. r=mats
...
MozReview-Commit-ID: 5loE21U7FF6
2016-10-31 08:59:40 -07:00
Daniel Holbert
2a8bcc81e7
Bug 1269046 part 1: Spin out some grid alignment code into a helper method, in a new CSSAlignUtils class. r=mats
...
MozReview-Commit-ID: 1Eh2CreOLTC
2016-10-31 08:58:18 -07:00
Mats Palmgren
05a1e2c9a6
Bug 1305244 part 3 - [css-grid] Stop handling <flex> track min-sizing in layout since they can't occur anymore. r=dholbert
2016-10-29 01:30:10 +02:00
Mats Palmgren
d18b43c8b2
Bug 1228455 - [css-grid] Update the 'used flex fraction' for indefinite sizes to clamp flex factors less than 1 before dividing the base size (due to CSS Grid spec change). r=dholbert
...
CSS Grid spec change:
https://hg.csswg.org/drafts/rev/42427088d71f
2016-10-27 10:32:00 -04:00
Phil Ringnalda
c38078f6a2
Backed out 12 changesets (bug 1269045, bug 1269046) as the most likely cause of Windows build bustage
...
CLOSED TREE
Backed out changeset 16db55b642a9 (bug 1269046)
Backed out changeset a0008dd33cf4 (bug 1269046)
Backed out changeset 75b58c4e61e6 (bug 1269046)
Backed out changeset fb7655f3e1cf (bug 1269046)
Backed out changeset 8088e5a9e6e3 (bug 1269046)
Backed out changeset eea6479452f0 (bug 1269046)
Backed out changeset eb4b52bf06ec (bug 1269046)
Backed out changeset 539db74e4a88 (bug 1269046)
Backed out changeset f57f9ac1435e (bug 1269045)
Backed out changeset 2162d5c9fb54 (bug 1269045)
Backed out changeset 7aa8199183fc (bug 1269045)
Backed out changeset 86a391e3e163 (bug 1269045)
MozReview-Commit-ID: HYL7Bh8l02E
2016-10-27 21:59:00 -07:00
Daniel Holbert
d927c41a9f
Bug 1269046 part 1: Spin out some grid alignment code into a helper method, in a new CSSAlignUtils class. r=mats
...
MozReview-Commit-ID: 1Eh2CreOLTC
2016-10-27 18:58:26 -07:00
Daniel Holbert
d2f9598859
Bug 1311865: Refactor the grid "same sides" code into a simpler WritingMode::ParallelAxisHasSamePolarity() utility function. r=mats
...
MozReview-Commit-ID: G9FRriSlZaG
--HG--
extra : rebase_source : 6ecceaf0c8e21778787c567b6a7c2e4591c92283
2016-10-20 17:45:07 -07:00
Mats Palmgren
2c24c06a3b
Bug 1302541 part 5 - [css-grid] Back-compute percentages when calculating the number of auto-fill/fit tracks. r=dholbert
2016-10-19 04:20:48 +02:00
Mats Palmgren
5e3a5a5414
Bug 1302541 part 4 - [css-grid] Back-compute percentages for the intrinsic block size. r=dholbert
2016-10-19 04:20:48 +02:00
Mats Palmgren
a0ff5cb15a
Bug 1302541 part 3 - [css-grid] Back-compute percentages for the intrinsic inline size. r=dholbert
2016-10-19 04:20:48 +02:00
Mats Palmgren
e54565d5d4
Bug 1302541 part 2 - [css-grid] Propagate track state bits and store the union of all tracks in each axis. r=dholbert
2016-10-19 04:20:48 +02:00
Mats Palmgren
8b31c38aac
Bug 1302541 part 1 - [css-grid] Add a track state bit for percentage min-sizing that is treated as 'auto'. r=dholbert
2016-10-19 04:20:48 +02:00
Mats Palmgren
32e97d17ca
Bug 1309407
- [css-grid] Apply min/max-sizes after stretching <flex> grid items with an indefinite CB size and re-run the algo with a definite size if the grid size changed. r=dholbert
2016-10-19 04:20:48 +02:00
Mats Palmgren
d01e18549b
Bug 1306906 - [css-grid] Get the relevant baseline from the grid item for the basline group. r=dholbert
2016-10-06 22:43:22 +02:00
Mats Palmgren
21939c963e
Bug 1307113 - [css-grid] Fix a typo in baseline track selection. r=dholbert
2016-10-04 21:13:53 +02:00
Carsten "Tomcat" Book
02f4754fbc
merge mozilla-inbound to mozilla-central a=merge
2016-10-04 11:58:07 +02:00
David Keeler
2ebfcec051
bug 1307226 - extend clang crash workaround to work around similar crash in SetGridItemCount r=mats
...
MozReview-Commit-ID: 1fHN2mpYyxz
--HG--
extra : rebase_source : 564234074558f5ba7b966b9190504c4f10fa86df
2016-10-03 14:08:54 -07:00
Mats Palmgren
479e0b57fd
Bug 1151204 part 5 - [css-grid] Fix a bug in the is-this-the-last-track check. r=dholbert
2016-10-01 02:26:39 +02:00
Mats Palmgren
7d542f321e
Bug 1151204 part 4 - [css-grid] Implement Grid Container Baselines. r=dholbert
2016-10-01 02:26:39 +02:00
Mats Palmgren
bcb5907785
Bug 1151204 part 3 - [css-grid] Add a couple of members to record fragmentation state. r=dholbert
2016-10-01 02:26:39 +02:00
Mats Palmgren
98159ca3c7
Bug 1151204 part 2 - [css-grid] Add methods for finding the first/last grid item in Grid Order in this fragment. r=dholbert
2016-10-01 02:26:39 +02:00
Mats Palmgren
fd54eb1633
Bug 1151204 part 1 - [css-grid] Make GridItemCSSOrderIterator use nsFrameList iterators internally and make the specific type (forward/reverse) a template param. r=dholbert
2016-10-01 02:26:39 +02:00
Brad Werth
2fe8e4a753
Bug 1304012 -- Part 2: Rename nsStyleStruct Computed**Self functions to Used**Self. r=dholbert
...
MozReview-Commit-ID: FCBuT2Z7sy6
2016-09-30 09:15:57 -07:00
Brad Werth
25da11fb5e
Bug 1305844 - Make most align/justify nsStylePosition members public, and remove trivial accessors. r=dholbert
...
--HG--
extra : rebase_source : a38fdd5d608370e3408a698fd887cc15f5c01537
2016-10-03 13:05:35 -07:00
Mats Palmgren
534e65315b
Bug 1303643
part 2 - [css-grid] Apply percentages to grid item min-content contributions. r=dholbert
2016-09-29 21:49:54 +02:00
Mats Palmgren
24e5de8ccb
Bug 1255393 part 7 - [css-grid] Update intrinsic max track sizing for span>1 to the latest Grid spec. r=dholbert
...
Step 2.5 "For intrinsic maximums" now use the min-size contribution.
https://hg.csswg.org/drafts/diff/575fb847e29d/css-grid/Overview.bs
https://drafts.csswg.org/css-grid/#algo-content
2016-09-27 17:05:41 +02:00
Mats Palmgren
cd4c23a413
Bug 1255393 part 6 - [css-grid] Update 'auto' min track sizing for span>1 to the latest Grid spec. r=dholbert
...
'auto' tracks now also gets an item's min/max-content contribution
(in 2.2/2.3) when sizing under a min/max-content constraint.
(Previously, 'auto' only got the min-size contribution under 2.1)
https://drafts.csswg.org/css-grid/#algo-content
2016-09-27 17:05:41 +02:00
Mats Palmgren
7a1dca9913
Bug 1255393 part 5 - [css-grid] Remove dead code related to obsolete flex track min-sizing. r=dholbert
2016-09-27 17:05:41 +02:00
Mats Palmgren
9aa8eef809
Bug 1255393 part 4 - [css-grid] Cache min/max-content and min-size contributions better. r=dholbert
2016-09-27 17:05:41 +02:00
Mats Palmgren
9ab65db5db
Bug 1255393 part 3 - [css-grid] Update 'auto' min track sizing for span=1 to the latest Grid spec. r=dholbert
...
Now it returns the min/max-content contribution for intrinsic sizing.
Otherwise, i.e. during Reflow, return the min-size contribution.
(Previously, it always returned the min-size contribution.)
https://drafts.csswg.org/css-grid/#algo-content
2016-09-27 17:05:40 +02:00
Mats Palmgren
0f91dea2f7
Bug 1255393 part 2 - [css-grid] Update MinSize() to reflect the latest spec text for min-size contribution. r=dholbert
...
https://drafts.csswg.org/css-grid/#min-size-contributions
2016-09-27 17:05:40 +02:00
Mats Palmgren
d17a96db4a
Bug 1255393 part 1 - [css-grid] Introduce a SizingConstraint enum type. r=dholbert
2016-09-27 17:05:40 +02:00
Brad Werth
ac8eac6caa
Bug 1300877 - Expose removed grid auto-fit tracks to devtools API. r=mats, r=ehsan
...
MozReview-Commit-ID: 3E1au3BQyLw
--HG--
rename : dom/grid/test/chrome/test_grid_track_state.html => dom/grid/test/chrome/test_grid_repeats.html
2016-09-21 11:49:29 -07:00