roytam1
5134d40d65
Revert "ported from mozilla: Bug 1819025 - Don't consider following join-controls when determining whether a space is collapsible. r=emilio (fad4426b7b)"
...
This reverts commit 854fac5c4c .
2024-06-28 22:10:57 +08:00
roytam1
a2f81bc791
Merge remote-tracking branch 'origin/tracking' into custom
2024-06-17 16:15:30 +08:00
Moonchild
b6d077bbbb
Issue #2532 - Prevent unwanted text selection when backdrop is clicked.
2024-06-17 16:12:00 +08:00
Moonchild
368ee51d86
Issue #2532 - Don't do PreventDefault for escape key if <select> dropdown is not shown
...
We always use PreventDefault for <select> element, which is problematic if modal
dialog is on as it prevents cancelling the dialog. We fix it by not blocking the
default action if <select> is not shown.
See Bug 1649278
2024-06-17 16:11:45 +08:00
roytam1
d835b252d7
Merge remote-tracking branch 'origin/tracking' into custom
2024-06-13 11:32:08 +08:00
Daniel Holbert
0e05cb9630
[layout] Initialize PerSpanData members mBaseline and mReflowInput.
...
We null-initialize all of the other pointer members in NewPerSpanData; we should
do the same for these ones, for consistency & robustness.
(In practice, the callers end up initializing these members before reading them
anyway, so it's been benign that we weren't initializing them. But better for
safety & futureproofing to have them reliably initialized.)
2024-06-13 11:31:46 +08:00
roytam1
36bc963804
layout: fix corrupted unicode in comments, no code change
2024-06-11 10:43:29 +08:00
roytam1
a30e0e7448
Merge remote-tracking branch 'origin/tracking' into custom
2024-06-11 10:15:00 +08:00
FranklinDM
2ba31f4e97
Issue #2522 - Part 2: Implement support for logical viewport units
2024-06-11 10:14:40 +08:00
FranklinDM
5c06335c5b
Issue #2522 - Part 1: Alias small, large, and dynamic viewport units to base viewport
2024-06-11 10:14:27 +08:00
roytam1
854fac5c4c
ported from mozilla: Bug 1819025 - Don't consider following join-controls when determining whether a space is collapsible. r=emilio (fad4426b7b)
2024-06-08 12:10:00 +08:00
roytam1
9df06e86a2
layout: fix source code mojibake in nsCSSParser
2024-05-08 16:36:49 +08:00
roytam1
390799012c
Merge remote-tracking branch 'origin/tracking' into custom
2024-05-08 10:05:44 +08:00
Moonchild
c77b4b0bad
Issue #2510 - Unprefix -moz-fit-content
...
No aliasing since this has been out for a while.
Devtools db regenerated with `mach devtools-css-db`
Resolves #2510
2024-05-08 09:59:34 +08:00
Moonchild
87a7cf7332
Issue #2472 - Part 6: Fire cancel event and close modal <dialog> on [ESC]
...
This implementation is different than Mozilla, not indirectly queueing cancel
tasks to be arbitrarily ordered, but rather synchronously close in reverse
top layer order.
2024-05-08 09:57:53 +08:00
Moonchild
7d34b285e0
Issue #2472 - Part 5: Make modal versions of <dialog> work, and tune styles.
...
This adds a pseudo-class `:-moz-modal-dialog` to be able to track whether the
dialog is in the top layer in CSS.
This implements default styling for modal dialogs following the HTML standard.
Slightly off-extreme color scheme chosen for unstyled <dialog> elements.
2024-05-08 09:57:29 +08:00
Moonchild
79c7489bb0
Issue #2472 - Part 3: Refactor Fullscreen stack to Top Layer stack
...
Fullscreen stack isn't part of the spec anymore; it's been changed to a more
generic version called Top Layer stack, which is being used by both full-screen
APIs and dialog elements.
This patch refactors it to Top Layer stack so that it can be reused for dialog
elements.
Top Layer stack spec: https://fullscreen.spec.whatwg.org/#new-stacking-layer
2024-05-08 09:55:18 +08:00
roytam1
5479b6d9c0
Merge remote-tracking branch 'origin/tracking' into custom
2024-04-11 15:58:11 +08:00
FranklinDM
f41ad3aae5
Issue #2477 - Part 3: Logical box properties should accept auto values
2024-04-11 15:56:49 +08:00
FranklinDM
bfe76f65db
Issue #2477 - Part 2: Implement shorthand properties for [margin/padding][block/inline]
2024-04-11 15:56:31 +08:00
FranklinDM
1e73f1f2d2
Issue #2477 - Part 1: Implement a separate function for parsing pair box properties
...
This reuses existing logic from ParseGap.
2024-04-11 15:54:36 +08:00
roytam1
4f792793c2
Merge remote-tracking branch 'origin/tracking' into custom
2024-04-08 11:13:25 +08:00
Moonchild
641b556c53
Issue #2490 - Part 20: Remove the stuff that was added temporarily to deal with a mix of WebIDL and non-WebIDL rules.
2024-04-08 11:12:53 +08:00
Moonchild
7fb5d53a79
Issue #2490 - Part 19: Convert CSSCounterStyleRule to WebIDL.
2024-04-08 11:12:32 +08:00
Moonchild
b984856d8f
Issue #2490 - Part 18: Convert CSSKeyframesRule to WebIDL.
2024-04-08 11:08:39 +08:00
Moonchild
89d96e0226
Issue #2490 - Part 17: Convert CSSKeyframeRule to WebIDL.
2024-04-08 11:08:06 +08:00
Moonchild
f0de637255
Issue #2490 - Part 16: Convert CSSFontFeatureValuesRule to WebIDL.
2024-04-08 11:07:44 +08:00
Moonchild
50f8c18757
Issue #2490 - Part 15: Convert CSSFontFaceRule to WebIDL.
...
The .style PutForwards bit is coming along for the ride here as a new feature.
2024-04-08 11:07:15 +08:00
Moonchild
74fdaed1fe
Issue #2490 - Part 14: Convert CSSPageRule to WebIDL.
...
The .style PutForwards bit is coming along for the ride here as a new feature.
2024-04-08 11:05:31 +08:00
Moonchild
d1b6a584b8
Issue #2490 - Part 13: Convert media, supports, and moz-document rules to WebIDL.
...
This also converts the internal ConditionRule and GroupingRule classes.
2024-04-08 11:03:50 +08:00
Moonchild
6176bd62d9
Issue #2490 - Part 12: Convert CSSStyleRule to WebIDL.
...
The .style PutForwards bit is coming along for the ride here, aligning us with
the behavior of Blink and Gecko.
2024-04-08 11:01:02 +08:00
Moonchild
525606c15d
Issue #2490 - Part 11: Convert CSSImportRule to WebIDL.
...
Note that the .media PutForwards is a new feature coming along for the ride, now
that we're using the spec IDL.
2024-04-08 10:59:42 +08:00
Moonchild
95642cb4e5
Issue #2490 - Part 10: Convert CSSNamespaceRule to WebIDL.
2024-04-08 10:58:54 +08:00
Moonchild
264f152ba0
Issue #2490 - Part 9b: Add a CSSRule Web IDL interface.
...
Fix Paris bindings by providing a temporary IID for nsIDOMCSSRule
(thanks FranklinDM!)
2024-04-08 10:56:40 +08:00
Moonchild
5a522d9145
Issue #2490 - WIP: part 9. Add a CSSRule Web IDL interface.
2024-04-08 10:56:20 +08:00
Moonchild
bb2aaeac9f
Issue #2490 - Part 8: Get rid of css::Rule::GetDOMRule.
2024-04-08 10:56:04 +08:00
Moonchild
fce04b3591
Issue #2490 - Part 7: Push the nsIDOMCSSRule implementation up to css::Rule.
2024-04-08 10:55:49 +08:00
Moonchild
8c871f602e
Issue #2490 - Part 6: Make css::Rule inherit from nsIDOMCSSRule.
2024-04-08 10:55:26 +08:00
Moonchild
c2ee755574
Issue #2490 - Part 5: Get rid of DOMCSSStyleRule.
2024-04-08 10:53:21 +08:00
Moonchild
1342838b3f
Issue #2490 - Part 4: Make css::Rule wrappercached.
2024-04-08 10:46:40 +08:00
Moonchild
5bb39ec403
Issue #2490 - Part 2: Remove the now-unused GetExistingDOMRule() function.
2024-04-08 10:40:28 +08:00
Moonchild
d6ec56a4c4
Issue #2490 - Part 1: Make all CSS rules cycle-collected.
2024-04-08 10:39:37 +08:00
roytam1
1577c24777
css: follow-up Issue #2112 of Servo removal
2024-04-02 23:12:59 +08:00
roytam1
a944026bae
Merge remote-tracking branch 'origin/tracking' into custom
2024-04-02 22:57:21 +08:00
FranklinDM
f0116f51db
Issue #2488 - Part 6: Define and declare CSSStyleSheet cast functions directly in StyleSheet
...
This renames AsGecko calls to AsConcrete and removes the header containing leftover Stylo macros.
2024-04-02 22:52:28 +08:00
FranklinDM
81f77f18a0
Issue #2488 - Part 5: Remove HandleRefPtr (exclusively used by smart pointer classes)
2024-04-02 22:50:27 +08:00
FranklinDM
6803c1f710
Issue #2488 - Part 4: Remove the RestyleManagerHandle smart pointer class
2024-04-02 22:50:07 +08:00
FranklinDM
4bf43b8fb4
Issue #2488 - Part 3: Remove the StyleSetHandle smart pointer class
2024-04-02 22:49:48 +08:00
FranklinDM
4d7bdedade
Issue #2488 - Part 2: Remove the DeclarationBlock class and use Declaration directly
2024-04-02 22:47:20 +08:00
FranklinDM
d922a18efb
Issue #2488 - Part 1a: nsCSSPseudoClassList should not include any header
2024-04-02 22:46:48 +08:00