Francis Dominic Fajardo
5fccc6ec3d
Issue #2835 - Follow-up: Guard against import rules with no attached style sheet
2025-08-04 00:02:36 +08:00
Francis Dominic Fajardo
2ba24302d9
Issue #2835 - Part 2: Implement processing of import rules based on order of appearance
2025-07-26 14:55:22 +08:00
Francis Dominic Fajardo
047458a002
Issue #2828 – Part 10: Clean up cascade layer constructor
...
This also renames mIsWeak to mIsStrong. Cascade layers are weak by default and there's no point in always setting this to true.
2025-07-22 22:39:47 +08:00
Francis Dominic Fajardo
ebb0ae456c
Issue #2828 - Part 9: Rename CascadeEnumData to CascadeLayer
2025-07-22 22:39:47 +08:00
Francis Dominic Fajardo
5fda071898
Issue #2828 - Part 8: Extract RuleProcessorGroup (formerly ResolvedRuleCascades) into separate file
...
The struct no longer holds rule cascades since part 5 anyway, and extracting it to a separate file allows it to be reused in the future.
2025-07-22 22:39:46 +08:00
Francis Dominic Fajardo
bc45ec4f57
Issue #2828 - Part 5: Implement child rule processors
2025-07-22 22:39:44 +08:00
Francis Dominic Fajardo
202e354f87
Issue #2828 - Part 4: Move cache key storage to ResolvedRuleCascades
2025-07-22 22:39:44 +08:00
Francis Dominic Fajardo
211aa6d652
Issue #2828 - Part 3: Refactor selector matching and rule cascade data into separate files/classes
2025-07-22 22:39:43 +08:00
Francis Dominic Fajardo
a91b385f68
Issue #2828 - Part 2: Collect and hold rule cascade data per cascade layer
2025-07-22 22:39:42 +08:00
Martok
ddb37273bd
Issue #2078 - Follow-up: Don't try to resolve ancestor link elements when matching for Has*DependentStyle
2025-01-22 00:11:03 +01:00
Moonchild
01a1a8557b
Issue #2653 - Part 1: Initial cleanup of AppId and isolated mozbrowser.
...
This removes a lot of the plumbing for having the platform embed itself
through IPC which was required for B2G running the browser as both
shell and browser application.
2024-11-17 20:39:45 +01:00
FranklinDM
caaf54a046
Issue #2486 - Part 2: Implement parser support for layer block and layer statements
...
This does not deal with layer specificity.
2024-07-14 22:58:25 +08:00
FranklinDM
0627dc7639
Issue #2250 - Part 2: Ignore the ancestor filter assertion if rule matching is restricted or if the current element is under a shadow host
...
This only affects debug builds.
2023-05-21 19:01:42 +08:00
FranklinDM
c58f825821
Issue #2250 - Part 1: Return early if the element being tested for is likely an ancestor and does not have an assigned slot
2023-05-21 19:01:41 +08:00
Moonchild
5eab50c9f9
Issue #1656 - Remove more vim control lines.
...
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from embedding, extensions, gfx, hal, ipc, layout, mailnews,
media and memory. More to come.
2023-05-04 22:06:35 +02:00
FranklinDM
9365fbd8ad
Issue #2135 - Don't discard event state mask when matching ::slotted() or :host arguments
...
This should fix issues with selectors like :host(:hover) that continue to be matched although the cursor is no longer hovering over those elements.
2023-03-24 19:39:30 +08:00
FranklinDM
c0e6ba933e
Issue #1592 - Part 8: Test the assigned slot for type/class/ID/attribute instead of the slottable when matching ::slotted()
2023-03-23 12:18:02 +01:00
FranklinDM
4665c79582
Issue #1592 - Part 7: Slottables cannot be matched from the outer tree.
2023-03-23 12:18:02 +01:00
FranklinDM
c5cb2983e6
Issue #1592 - Part 5: Use flattened element tree when looking for a parent while matching ::slotted()
2023-03-23 12:18:01 +01:00
FranklinDM
9c5999c8bc
Issue #1592 - Part 4: Walk ::slotted()-containing rules for slottables
...
- Check against all selector parts and not the leftmost selector only for ::slotted()
- Walk rules for ::slotted() regardless if the shadow root is opened/closed
- Ensure that ::slotted() rules are walked in the right order
- Fix ::slotted inheritance from topmost shadow root
2023-03-23 12:18:00 +01:00
FranklinDM
8313fea7c5
Issue #1592 - Part 3: Ensure only tree-abiding pseudo-elements will follow ::slotted()
2023-03-23 12:17:59 +01:00
FranklinDM
5fc444a0b6
Issue #1592 - Part 2: Parse ::slotted() pseudo-element as if it were a pseudo-class
...
- Block slot elements from being matched by ::slotted
- Ensure ::slotted() is serialized as a pseudo-element
- Add pref to control whether the pseudo-class is enabled
2023-03-23 12:17:59 +01:00
FranklinDM
9700f5557b
Issue #1593 - Follow-up: Fix :host matching from inside the shadow tree
...
Previously, we'd match :host despite the element having a different shadow root from the one that we currently have. Also, there's a test where :host should be blocked from matching if it is a descendant of an explicit universal selector.
2023-03-20 20:15:13 +08:00
FranklinDM
de225cca0d
Issue #2137 - Part 1: Modify :not() selector to accept a complex selector list
2023-03-10 19:14:24 +08:00
FranklinDM
468a37eab8
Issue #1593 - Follow-up: Fix :host selector matching
...
Previously, we would match `:host` if:
(a) we don't have any arguments and our parent is the shadow root, or;
(b) if any of the arguments match, then reject if we don't have a containing shadow
Revised, we would match `:host` if:
(Preconditions) The element must have a shadow root, the selector must not have any feature selectors, and it is not blocked from matching `:host` (e.g. .matches outside of the shadow root context)
(a) The selector does not have any arguments, or;
(b) It matches any of its arguments in the functional part of the pseudo-class
With this, we now pass these tests that were previously failing:
http://wpt.live/css/css-scoping/css-scoping-shadow-host-rule.html
http://wpt.live/css/css-scoping/host-descendant-002.html
http://wpt.live/css/css-scoping/host-multiple-001.html
Improved (1 less red box):
http://wpt.live/css/css-scoping/css-scoping-shadow-host-namespace.html
2023-02-26 01:32:13 +08:00
FranklinDM
f17feba05f
Issue #2078 - Follow-up: aPreventComplexSelectors should be passed
2023-02-22 14:00:49 +08:00
FranklinDM
9c1d44f5f6
Issue #1593 - Follow-up: Copy mIsRelevantLink value over rather than calling IsLink
...
Calling IsLink ignores whatever state we have for aTreeMatchContext and will trigger an assertion if aTreeMatchContext.mForStyling is false. This also adds a comment about what that line effectively does.
2023-02-21 22:50:18 +08:00
FranklinDM
ab5a651d55
Issue #1593 - Follow-up: :host() should not automatically match if we have a non-empty selector list
2023-02-21 22:50:17 +08:00
FranklinDM
adc21f14fa
Issue #2078 - Part 4: Unify selector list matching
...
This should allow pseudo-classes that accept selector lists to properly handle complex selectors. `:visited` is also matched inside selector lists.
A previous iteration of this commit had incorrect matching behavior when called from `RestrictedSelectorListMatches`.
2023-02-20 23:36:26 +08:00
FranklinDM
828c8cc46f
Issue #2078 - Part 3: Rename nsCSSRuleProcessor::SelectorListMatches to RestrictedSelectorListMatches
...
This is in preparation for merging the logic of RestrictedSelectorListMatches and AnySelectorInArgListMatches.
2023-02-20 23:35:55 +08:00
FranklinDM
bc399f7871
Issue #2078 - Part 2: Rename nsPseudoClassList->u.mSelectors to mSelectorList
...
This makes it clear that we're accessing a selector list (nsCSSSelectorList), which is different from the selectors (nsCSSSelector) contained inside a selector list. Previously, both were confusingly referred to as mSelectors.
2023-02-20 23:35:54 +08:00
FranklinDM
024b7500d1
Issue #2078 - Part 1: Update CSS rule processor to handle :is() and :where() CSS pseudo-classes
...
This modifies selector list parsing to accommodate being "forgiving". Aliases for the :is selector's former names were also included. Note that the older and prefixed variant `-moz-any` remains unforgiving.
2023-02-20 23:35:47 +08:00
Jeremy Andrews
643e298a55
Issue #1593 - Part 4: Make :host pass DOM parsing test and basic specificity tests.
2022-04-19 21:45:51 +00:00
Jeremy Andrews
f82c95d1eb
Issue #1593 - Part 3: Add selector logic for :host and :host-context.
2022-04-19 21:44:23 +00:00
Jeremy Andrews
22b8e6b79f
Issue #1593 - Part 1: Import William Chen's patches w/o selector implementation,
...
fixed up.
2022-04-19 21:42:11 +00:00
Moonchild
ddaee7c1be
Issue #1830 - Remove --disable-xul config and conditionals.
2022-04-01 14:47:16 +02:00
Moonchild
a970411caf
Issue #1782 : Remove Luna, Royale and Zune support from the platform.
...
These are obsolete system themes; the platform will fall back to generic/unknown
theme support instead.
2021-06-14 11:52:16 +00:00
SpockMan02
6151dca6ea
Undo Mozilla Bug 1302937; Reinstate -moz-mac-lion-theme media query
2018-06-27 03:25:34 -07:00
wolfbeast
0f285318cd
Add -moz-windows-accent-color-is-dark
...
#31 point 4
2018-02-04 20:41:16 +01:00
wolfbeast
ac66308395
Add @media(-moz-windows-accent-color-applies)
...
#31 point 3
2018-02-04 20:36:05 +01:00
Matt A. Tobin
5f8de423f1
Add m-esr52 at 52.6.0
2018-02-02 04:16:08 -05:00