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
FranklinDM
5e34e0e81b
Issue #2111 - Follow-up: Add missing include and fix namespace conflict when building layout deunified
2024-04-02 22:46:30 +08:00
FranklinDM
4cdc0ce964
Issue #2112 - Follow-up: Fix broken rule node assertion
2024-04-02 22:46:16 +08:00
FranklinDM
6d154eee11
Issue #58 - Follow-up: Remove Rust binding leftovers
2024-04-02 22:46:00 +08:00
FranklinDM
9279153af8
Issue #2112 - Part 14: Remove style context source and use rule node directly
...
Based on reverting bug 1260310.
2024-04-02 22:45:29 +08:00
FranklinDM
cb08fdd1f0
Issue #2112 - Part 13: Remove construction context for style structs
...
Partial reversion of bug 1261552. This keeps the behavior of always passing the presentation context to the style structs, unlike pre-stylo where it is conditional.
2024-04-02 22:45:08 +08:00
FranklinDM
4b44df794b
Issue #2112 - Part 11: Remove dead off-thread Stylo functions in nsStyleStruct
2024-04-02 22:44:39 +08:00
FranklinDM
d6852b3170
Issue #2112 - Part 10: Remove remaining Stylo/Servo includes and code
...
Some classes have been marked for removal/merging, macros used for forwarding/casting were moved to DeprecatedUtils.h.
2024-04-02 22:44:24 +08:00
FranklinDM
b96b733bfa
Issue #2112 - Part 9: Remove handling for multiple style backends
2024-04-02 22:42:43 +08:00
FranklinDM
28cd0ceb47
Issue #2112 - Part 8: Remove Stylo Stylesheet Cache
2024-04-02 22:42:25 +08:00
FranklinDM
14764253a5
Issue #2112 - Part 7: Remove Servo CSS Loader support
2024-04-02 22:42:09 +08:00
FranklinDM
10bf8705d0
Issue #2112 - Part 6: Remove IsStyledByServo function and callers
2024-04-02 22:41:54 +08:00
FranklinDM
a93a7bed47
Issue #2112 - Part 5: Remove Servo from forwarding code used by magic pointer classes
2024-04-02 22:41:34 +08:00
FranklinDM
b1c9206051
Issue #2112 - Part 4: Remove Stylo support for mask-image
2024-04-02 22:30:47 +08:00
FranklinDM
e777ae5a3c
Issue #2112 - Part 3: Remove --enable-stylo config and conditionals
2024-04-02 22:30:28 +08:00
FranklinDM
88ac168f96
Issue #2112 - Part 2: Stub out Servo functions
2024-04-02 22:30:08 +08:00
Moonchild
721ded9b48
Issue #2466 - Part 3: Implement style-src-elem and style-src-attr
2024-02-08 14:33:59 +08:00
Moonchild
4ea2206c15
Issue #2466 - Part 1: Reduce nsContentPolicy type usage.
...
Use CSPDirective instead, since it directly deals with CSP anyway.
This cleanup prepares for the following changes.
2024-02-08 14:33:28 +08:00
Brian Smith
5b068f3726
Issue #2402 - CSP Violation events should have the correct sample for inline contexts. https://bugzilla.mozilla.org/show_bug.cgi?id=1473587 Add preference to increase max length of CSP report source sample. https://bugzilla.mozilla.org/show_bug.cgi?id=1415352 Return valid columnNumber value in CSP violation events. https://bugzilla.mozilla.org/show_bug.cgi?id=1418246
2024-01-11 09:50:12 +08:00
Moonchild
f4cc47c049
Issue #2293 - Add preferences to disable CSS animation/transition props.
...
This resolves #2293
2023-08-31 22:40:10 +08:00
FranklinDM
3d917c9965
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-24 09:02:22 +08:00
FranklinDM
1c2dd6aee0
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-24 09:02:07 +08:00
FranklinDM
6ae0a69ac7
Issue #1765 - Part 3: Provided token type should be used in LookForTokenType
...
I didn't realize this immediately after moving the code into a method. Oops.
2023-05-15 09:14:24 +08:00
FranklinDM
d678cc2c45
Issue #1765 - Part 2: Implement calc() parsing inside rgb/a() and the non-hue component of hsl/a()
...
This also adds a new helper method for checking the type of tokens that will be parsed after the current token, which is useful for determining the unit of values inside calc() functions.
Partially based on 8a0897d23f
2023-05-15 09:14:07 +08:00
FranklinDM
73a6dc3122
Issue #1765 - Part 1: Move ReduceNumberCalcOps struct up higher, rename IsCSSTokenCalcFunction to CSSParserImpl::IsCalcFunctionToken
2023-05-15 09:13:47 +08:00
Moonchild
2f117eecaa
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-05 22:57:19 +08:00
FranklinDM
f169940742
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 23:32:36 +08:00
FranklinDM
4cd0de04d0
Issue #1592 - Part 8: Test the assigned slot for type/class/ID/attribute instead of the slottable when matching ::slotted()
2023-03-24 09:12:35 +08:00
FranklinDM
19226fd560
Issue #1592 - Part 7: Slottables cannot be matched from the outer tree.
2023-03-24 09:12:15 +08:00
FranklinDM
91d2b6f4cf
Issue #1592 - Part 6: Allow pseudo-classes with a forgiving selector list argument to follow pseudo-elements
...
Pseudo-classes with a forgiving selector list argument are allowed to follow a pseudo-element, but must treat any selector that is not of the same type as invalid. It doesn't make any sense, but that's the behavior of other tainted browsers.
2023-03-24 09:12:00 +08:00
FranklinDM
8d2533ad70
Issue #1592 - Part 5: Use flattened element tree when looking for a parent while matching ::slotted()
2023-03-24 09:11:26 +08:00
FranklinDM
518c41fd7a
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-24 09:11:07 +08:00
FranklinDM
92b31dd255
Issue #1592 - Part 3: Ensure only tree-abiding pseudo-elements will follow ::slotted()
2023-03-24 09:10:42 +08:00
FranklinDM
77ad970db6
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-24 09:07:36 +08:00
FranklinDM
ab63b7b946
Issue #1592 - Part 1c: Pass SelectorParsingFlags as a reference
2023-03-24 09:04:18 +08:00
FranklinDM
460e8db94c
Issue #1592 - Part 1b: Move <slot> UA rule to html.css
...
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1468127
2023-03-24 09:03:58 +08:00
FranklinDM
7374ca6716
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-23 09:02:47 +08:00
FranklinDM
2be0261d54
Issue #2078 - Follow-up: Ensure empty selector lists aren't iterated when serialized
...
Really odd that this wasn't caught/doesn't cause any issues on MSVC/unoptimized GCC. Must've been luck, I guess.
2023-03-12 07:10:40 +08:00
FranklinDM
ef36c56593
Issue #2137 - Part 4: Fix namespace regression
2023-03-12 07:09:56 +08:00
FranklinDM
b257a71cce
Issue #2137 - Part 3: Don't always use the internal pseudo-class for handling negations
2023-03-12 07:09:41 +08:00
FranklinDM
3bb3c193d0
Issue #2137 - Part 2: Implement SelectorParsingFlags and use it to pass info around
2023-03-12 07:09:22 +08:00
FranklinDM
82fa9fb80b
Issue #2137 - Part 1: Modify :not() selector to accept a complex selector list
2023-03-12 07:09:00 +08:00
Moonchild
2249fbdf49
Issue #2135 - Follow-up: Check for aElement not being null
...
This was introduced to Make <link rel="stylesheet"> work in shadow trees.
eElement can, however, be `null` here and if so, it would crash.
2023-03-12 07:07:25 +08:00
Martok
2b903a20b3
Issue #2143 - Implement CSS env() Environment Variables
2023-03-07 11:17:39 +08:00
FranklinDM
21d468ee65
Issue #2136 - Part 1: Implement CSS inset property
2023-03-06 16:27:53 +08:00
FranklinDM
7924a2f60d
Issue #2135 - Bug 1329877: Optimize AncestorFilter usage in lazy frame construction
2023-03-06 16:20:24 +08:00
FranklinDM
588c2154a5
Issue #2135 - Bug 1410578: Make <link rel="stylesheet"> work in shadow trees
2023-03-06 16:17:01 +08:00