Commit Graph

36 Commits

Author SHA1 Message Date
Chris Peterson eea149e732 Issue #1328 - Part 3: Add fuzz to reftests and fix misc other tests. 2019-12-18 13:36:53 +01:00
Jonathan Kew 44967b330d Check if we're already at the end of the frame's content. 2019-12-06 13:42:37 +01:00
Mats Palmgren 6ea8e51aaa Remove unnecessary calls to ReparentFloatsForInlineChild in
nsInlineFrame.
2019-11-29 10:48:50 +01:00
Mats Palmgren 7070dddb4b Simplify the overflow child frame reparenting in
nsInlineFrame::DestroyFrom.
2019-11-29 00:19:03 +01:00
wolfbeast 5ab2da7004 Issue #146 - Part 6: Allow position: sticky on table elements. 2019-11-03 19:43:51 +01:00
wolfbeast ce11d5cae8 Issue #146 - Part 5: Treat table row groups as containing blocks.
This aligns our behavior with Gecko/Blink.
2019-11-03 19:09:47 +01:00
Gaming4JC 8ff295747e Issue #1230 - Part 1: Fix Back-computing percentages for intrinsic sizing in Layout CSS-Grid
List of relevant patches applied:

1398537 part 2 - [css-multicol] Implement percentages for 'column-gap' (Gecko part).

1434478 part 1 - [css-grid] Stop back-computing percentage grid gaps when the percentage basis is indefinite. Treat them as zero sized instead.

1434478 part 2 - Stop back-computing percentage padding/margin when the percentage basis is indefinite. Treat them as zero sized instead.

1434478 part 3 - Remove IntrinsicISizeOffsetData::hPctPadding/hPctMargin members since they are now unused.

1434478 part 4 - Factor out constants like NS_UNCONSTRAINEDSIZE so they can be used in headers without needing nsIFrame.h (idempotent patch).

1434478 part 5 - Create nsLayoutUtils::ResolveToLength for resolving CSS <length-percentage> (idempotent patch).

1434478 part 6 - Propagate a percentage basis to nsIFrame::IntrinsicISizeOffsets for resolving padding/margin.

This is needed only for CSS Grid since in other cases we're only using IntrinsicISizeOffsets in the inline-axis and the percentage basis is always indefinite for *intrinsic sizing*. When calculating the intrinsic size of grid items in the grid container's block axis however, we do have a definite size for the grid area in the inline-axis and it should be used per: https://drafts.csswg.org/css-grid/#algo-overview "2. Next, the track sizing algorithm resolves the sizes of the grid rows, using the grid column sizes calculated in the previous step." (Percentage padding/margin for grid items is always resolved against the grid area's inline-size nowadays.)
2019-09-28 23:47:05 -04:00
Gaming4JC f1adcd1eee Issue #1233 - Part 2: Update Reftests
List of relevant patches applied:

1425599 part 15 - [css-grid] Test reference fixes + more tests.

1373678 Part 3: Add line number checks to test_grid_implicit.html.

1416350 - Part 3: Add test to verify line numbers of grids with leading implicit tracks.

1416350 - Part 4: Add a reftest of repeat:auto-fit grids with leading implicit tracks.

1417711 - [css-grid] An abs.pos. grid container child that only covers removed 'auto-fit' tracks should not span to the end padding edge.

1416350 - Part 5: Correct the expected results for grids that have leading implicit tracks.

1418727 part 3 - [css-grid] Reftest updates.
2019-09-28 23:47:04 -04:00
Gaming4JC 22851ce36d Issue #1233 - Part 1: Fix grid overflow and rendering issues by improving Layout CSS-Grid API
List of relevant patches applied:

1425599 part 1 - [css-grid] Change the track sizing algorithm for spanning items so that it accumulates individual item contributions to the plan by max() rather than incrementing the planned size directly.

Also, fix a bug when copying back the planned limits after updating it for the first span group. It should only copy back track sizes that were actaully spanned by those items, other content-sized tracks' limits should remain at "infinity".

1425599 part 2 - [css-grid] Factor out the min-sizing parts of the track sizing for spanned items to a templated method (idempotent change).

1425599 part 3 - [css-grid] Factor out most of the max-sizing parts of the track sizing for spanned items to a templated method (idempotent change).

1425599 part 4 - [css-grid] Factor out the starting base/limit size to a templated method (idempotent change).

1425599 part 5 - [css-grid] Make CollectGrowable a templated method so that it works with either base/limit sizes (idempotent change).

1425599 part 6 - [css-grid] Make the size distribution methods templated with the intent of merging them in a later patch (idempotent change).

This patch also introduces an eInfinitelyGrowable bit to help get rid of the 'limits' temporary track sizes in the next patch.

1425599 part 7 - [css-grid] Remove the 'limits' copy of track sizes since they are no longer needed (idempotent change).

1425599 part 8 - [css-grid] Factor out the fit-content clamping function from DistributeToTrackLimits and pass it as a param instead (idempotent change).

1425599 part 9 - [css-grid] Merge DistributeToTrackLimits/Bases (idempotent change).

1425599 part 10 - [css-grid] Make MarkExcludedTracks a static method since it doesn't use 'this' (idempotent change).

1425599 part 11 - [css-grid] Hoist the marking of excluded tracks out from GrowSelectedTracksUnlimited to a separate method (idempotent change).

1425599 part 12 - [css-grid] Merge CopyPlanToBase/Limits into a templated method instead (idempotent change).

1425599 part 13 - [css-grid] Merge Grow[Base|Limits]ForSpanningItems into a templated method instead (idempotent change).

1425599 part 14 - [css-grid] Use iterators instead of an array + start/end index for the item data (idempotent change).

1425599 part 16 - [css-grid] Make SizeContributionForPhase a template.

1425599 - [css-grid] Follow-up bustage fix for stupid compiler warnings.

1378481 - Assign 'roundingError' in the default branch too, to avoid a maybe-uninitialized compiler warning.

1423292 - [css-grid] Add a couple of ItemState bits to Dump(), and make an ItemState assertion stricter (DEBUG-only changes).

1373678 Part 1: Reduce grid line numbers by count of leading implicit lines, minimum 0.

1416350 - Part 1: Correctly account for removed 'auto-fit' tracks also when there are leading implicit tracks.

1416350 - Part 2: Correct logic for Grid API line numbering with leading implicit tracks.

1418727 part 1 - [css-grid] Introduce StateBitsForRange() that collects the union of the state bits for a range of tracks (idempotent change).

1418727 part 2 - [css-grid] Require that an item spans at least one track with an 'auto' min sizing function for Automatic Minimum Size to apply.
2019-09-28 23:47:04 -04:00
win7-7 a059b0688b Fix comments for Frameproperties
https://bugzilla.mozilla.org/show_bug.cgi?id=1373884

Fixes comments for Frameproperties.

These comments went unnoticed earlier.

No code changes.
2019-07-12 00:30:22 +03:00
win7-7 570cad8279 Iterate the frame property list once to collect which child list properties we have
Look into optimizing out the hashtable lookups from nsContainerFrame
2019-07-08 19:19:56 +03:00
win7-7 00812e30df Attach FrameProperties to each frame instead of using a shared hashtable
Dispense the shared hashtable and instead attach the frame property list directly to nsIFrame.
2019-06-26 01:51:45 +03:00
wolfbeast 1bf6a5c7da Remove 18 yo OS/2 and AIX bustage workaround.
Tag #186
2019-03-31 15:27:49 +02:00
JustOff c427cf64a8 Handle the special case of a flex frame being the absolute containing block correctly from the CSS align code 2019-03-14 19:40:42 +02:00
wolfbeast 23f587278a Merge branch 'master' of https://github.com/MoonchildProductions/UXP 2019-02-03 08:34:51 +01:00
yami b241a84d88 issue #908 - implement missing parts of CSS mask 2019-02-02 18:06:10 +01:00
wolfbeast 1f9ab3a6e6 Remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS 2019-01-18 22:43:29 +01:00
wolfbeast 3b2c342f38 Make sure we remove our RefreshDriver observers in CompleteAsyncScroll.
Follow-up to fdbac09596
2018-11-02 10:47:05 +01:00
wolfbeast fdbac09596 Ensure that the scroll frame deregisters its refresh driver observers (mAsyncScroll & mAsyncSmoothMSDScroll) before it's destroyed.
Tag #345
2018-10-31 18:47:29 +01:00
JustOff 88671bcc36 [css-grid] Don't shrink-wrap the inline size when we have an available size when measuring block size 2018-10-20 16:25:28 +03:00
wolfbeast ab961aeb54 Remove all C++ Telemetry Accumulation calls.
This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables).
Stub resolution/removal should be a follow-up to this.
2018-09-03 10:11:38 +02:00
janekptacijarabaci 1b153b3f2a Bug 958714 Remove obsolete assertion & comment
+ Used "mFrame->GetType()" instead of "mFrame->Type()"
2018-07-20 09:15:48 +02:00
janekptacijarabaci 83459c9277 Bug 958714 Simplify percent-margin/padding resolution code to pass around a single length as the percent basis 2018-07-20 09:13:56 +02:00
janekptacijarabaci b12973bc9a Bug 958714 Remove special case for flex & grid items' percent block-axis margin/padding resolution, to align with other browsers 2018-07-20 09:09:36 +02:00
wolfbeast b7d9dad58e Remove MOZ_B2G leftovers and some dead B2G-only components. 2018-05-12 14:32:03 +02:00
janekptacijarabaci 966e69291a Bug 1216885 - Make nsISelectionPrivate not inherit from nsISelection 2018-04-30 15:00:01 +02:00
Moonchild 8c146ab24a Merge pull request #297 from janekptacijarabaci/css_text-justify_1
CSS - implement text-justify property
2018-04-29 18:52:17 +02:00
janekptacijarabaci d0e748cada Bug 1338053: Make nsFlexContainerFrame::MarkIntrinsicISizesDirty() also call its parent class's method 2018-04-24 20:25:23 +02:00
janekptacijarabaci dca75f84eb Bug 1336708: Don't reuse cached flex-item reflow measurements if the item's computed height has changed 2018-04-24 20:21:41 +02:00
janekptacijarabaci 2f87463ea3 Bug 1209697: Cache flex measuring reflows to avoid exponential behavior 2018-04-24 20:18:05 +02:00
janekptacijarabaci 0a9acadcca moebius#121: DOM - Selection API - getSelection() should exist on XMLDocument / Selection.type
https://github.com/MoonchildProductions/moebius/pull/121
2018-04-23 09:16:50 +02:00
janekptacijarabaci 1f4ce97ecd moebius#90: CSS - implement text-justify property 2018-04-01 19:32:49 +02:00
Daniel Holbert 5babf7dc56 Bug 1324042 - Fix trimmedOffsets arithmetic in GetRenderedText(). r=mats, a=RyanVM
MozReview-Commit-ID: H4ngU8Juyln

--HG--
extra : rebase_source : f4d6ab58ae70e485dfe72d5290cf6fae2c8397dd
extra : intermediate-source : bec50ba1fb12aebde4e4065b2799bc730bc30010
extra : source : fbf54020043bd09c162530907b2a1091a10f4f92
2018-03-14 11:00:47 +01:00
janekptacijarabaci 76e1c016a3 CSS - Grid - transferred min-size contribution of percentage size grid item with an intrinsic ratio 2018-03-12 09:46:33 +01:00
janekptacijarabaci 920519e7c5 CSS - Grid - intristic content with overflow:auto overlaps in grid 2018-03-12 09:46:03 +01:00
Matt A. Tobin 5f8de423f1 Add m-esr52 at 52.6.0 2018-02-02 04:16:08 -05:00