summaryrefslogtreecommitdiff
path: root/layout
Commit message (Collapse)AuthorAge
* Issue #2250 - Part 2: Ignore the ancestor filter assertion if rule matching ↵FranklinDM2023-05-21
| | | | | | is restricted or if the current element is under a shadow host This only affects debug builds.
* Issue #2250 - Part 1: Return early if the element being tested for is likely ↵FranklinDM2023-05-21
| | | | an ancestor and does not have an assigned slot
* Issue #1765 - Part 3: Provided token type should be used in LookForTokenTypeFranklinDM2023-05-14
| | | | I didn't realize this immediately after moving the code into a method. Oops.
* Issue #1765 - Part 2: Implement calc() parsing inside rgb/a() and the ↵FranklinDM2023-05-13
| | | | | | | | 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 https://github.com/roytam1/UXP/commit/8a0897d23f5b51526f8a2c6ef63cb26968e6b985
* Issue #1765 - Part 1: Move ReduceNumberCalcOps struct up higher, rename ↵FranklinDM2023-05-13
| | | | IsCSSTokenCalcFunction to CSSParserImpl::IsCalcFunctionToken
* Issue #1656 - Remove more vim control lines.Moonchild2023-05-04
| | | | | | | 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.
* Issue #1862 - Follow-up: Replace deprecated Harfbuzz functions with current ↵Job Bautista2023-04-30
| | | | | | ones. Based on Mozilla bug 1500356.
* Issue #252 - Follow-up: Include a null check against mDocumentFranklinDM2023-04-07
|
* Issue #252 - Move getElementsByName from HTMLDocument to DocumentFranklinDM2023-04-07
| | | | Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1415176
* Issue #2191 - Remove as much old fontconfig support as needed for Harfbuzz ↵Job Bautista2023-04-05
| | | | | | | | | | | | | 7.1.0 update. Based on Mozilla bugs 1119128, 1285533, and 1421964. gfx.font_rendering.fontconfig.fontlist.enabled is no longer available. gfxFontconfigUtils.h still exists, and will be removed in another commit. Just need more research on bug 1385029. Tag #1862
* Merge pull request 'Don't reconstruct the parent when tearing down ↵Moonchild2023-03-26
|\ | | | | | | | | | | `display:contents` nodes' (#2178) from 2176 into master Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2178
| * Issue #2176 - Don't reconstruct the parent when tearing downMoonchild2023-03-26
| | | | | | | | | | | | | | | | | | | | | | | | | | display:contents nodes with pseudo-elements. We need to use StyleChildrenIterator which iterates over them, instead. This is a bit of a hack but we can't always have our cake. We need to be a bit careful though, since ::before and ::after are owned by their own frame, and thus could be unbound from the tree or even dead after removing the frame. This basically ports bugs 1435566 and 1438467
* | Issue #2135 - Don't discard event state mask when matching ::slotted() or ↵FranklinDM2023-03-24
|/ | | | | | :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.
* Issue #1592 - Part 8: Test the assigned slot for type/class/ID/attribute ↵FranklinDM2023-03-23
| | | | instead of the slottable when matching ::slotted()
* Issue #1592 - Part 7: Slottables cannot be matched from the outer tree.FranklinDM2023-03-23
|
* Issue #1592 - Part 6: Allow pseudo-classes with a forgiving selector list ↵FranklinDM2023-03-23
| | | | | | 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.
* Issue #1592 - Part 5: Use flattened element tree when looking for a parent ↵FranklinDM2023-03-23
| | | | while matching ::slotted()
* Issue #1592 - Part 4: Walk ::slotted()-containing rules for slottablesFranklinDM2023-03-23
| | | | | | | - 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
* Issue #1592 - Part 3: Ensure only tree-abiding pseudo-elements will follow ↵FranklinDM2023-03-23
| | | | ::slotted()
* Issue #1592 - Part 2: Parse ::slotted() pseudo-element as if it were a ↵FranklinDM2023-03-23
| | | | | | | | 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
* Issue #1592 - Part 1c: Pass SelectorParsingFlags as a referenceFranklinDM2023-03-23
|
* Issue #1592 - Part 1b: Move <slot> UA rule to html.cssFranklinDM2023-03-23
| | | | Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1468127
* Issue #1592 - Part 1a: Prevent crashing if a slot element was selected via ↵FranklinDM2023-03-23
| | | | DOM Inspector
* Issue #1593 - Follow-up: Fix :host matching from inside the shadow treeFranklinDM2023-03-20
| | | | 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.
* Merge pull request 'Modify :not() selector to accept a complex selector ↵Moonchild2023-03-11
|\ | | | | | | | | | | list' (#2151) from FranklinDM/UXP-contrib:work_css-not-selector-list-support into master Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2151
| * Issue #2137 - Part 4: Fix namespace regressionFranklinDM2023-03-10
| |
| * Issue #2137 - Part 3: Don't always use the internal pseudo-class for ↵FranklinDM2023-03-10
| | | | | | | | handling negations
| * Issue #2137 - Part 2: Implement SelectorParsingFlags and use it to pass info ↵FranklinDM2023-03-10
| | | | | | | | around
| * Issue #2137 - Part 1: Modify :not() selector to accept a complex selector listFranklinDM2023-03-10
| |
* | Issue #2078 - Follow-up: Ensure empty selector lists aren't iterated when ↵FranklinDM2023-03-11
|/ | | | | | serialized Really odd that this wasn't caught/doesn't cause any issues on MSVC/unoptimized GCC. Must've been luck, I guess.
* Issue #2135 - Follow-up: Check for aElement not being nullMoonchild2023-03-10
| | | | | This was introduced to Make <link rel="stylesheet"> work in shadow trees. eElement can, however, be `null` here and if so, it would crash.
* Issue #2143 - Implement CSS env() Environment VariablesMartok2023-03-05
|
* Merge pull request 'Implement CSS `inset` property' (#2140) from ↵Moonchild2023-03-05
|\ | | | | | | | | | | FranklinDM/UXP-contrib:work_css-inset-property into master Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2140
| * Issue #2136 - Part 1: Implement CSS inset propertyFranklinDM2023-03-05
| |
* | Issue #2135 - Bug 1329877: Optimize AncestorFilter usage in lazy frame ↵FranklinDM2023-03-04
| | | | | | | | construction
* | Issue #2135 - Bug 1410578: Make <link rel="stylesheet"> work in shadow treesFranklinDM2023-03-04
| |
* | Issue #2135 - Bug 1453789: Remove Element.createShadowRootFranklinDM2023-03-04
| |
* | Issue #2135 - Bug 1066965: Make contentEditable and spellchecking to work in ↵FranklinDM2023-03-04
|/ | | | Shadow DOM
* Issue #1375 - Follow-up: Get the insertion point right when reconstructing ↵FranklinDM2023-02-27
| | | | | | direct children of a shadow root This should've been changed alongside bug 1404789 when it landed.
* Issue #1375 - Follow-up: Remove shadow tree hacks in the frame constructorFranklinDM2023-02-27
| | | | This should've been removed alongside bug 1404789 when it landed.
* Merge pull request 'Fix :host selector matching' (#2128) from ↵Moonchild2023-02-26
|\ | | | | | | | | | | FranklinDM/UXP-contrib:work_css-fix-host-selector-matching into master Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2128
| * Issue #1593 - Follow-up: Fix :host selector matchingFranklinDM2023-02-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Issue #1382 - Part 2: Add crash testFranklinDM2023-02-25
| | | | | | | | Based on https://bugzilla.mozilla.org/show_bug.cgi?id=842114
* | Issue #1382 - Part 1: Remove assertion that GetPreEffectsVisualOverflowRect ↵FranklinDM2023-02-25
|/ | | | | | | | is called only by frames whose parent is an anonymous block This is always hit if an SVG effect is applied on other frame types. Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1340257
* Merge pull request 'Propagate combinator restriction to :is()/:where()' ↵Moonchild2023-02-23
|\ | | | | | | | | | | (#2122) from FranklinDM/UXP-contrib:work_css-propagate-combinator-restriction into master Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2122
| * Issue #2078 - Follow-up: Propagate combinator restriction to :is()/:where()FranklinDM2023-02-22
| | | | | | | | Based on spec discussion: https://github.com/w3c/csswg-drafts/issues/5093
| * Issue #2078 - Follow-up: aPreventComplexSelectors should be passedFranklinDM2023-02-22
| |
| * Issue #2078 - Follow-up: Move isForgiving check to ↵FranklinDM2023-02-22
| | | | | | | | ParsePseudoClassWithSelectorListArg
* | No issue - Move Has* function definition out of the header file for consistencyFranklinDM2023-02-22
|/
* Merge pull request 'Improve :host and :host-context matching' (#2120) from ↵Moonchild2023-02-21
|\ | | | | | | | | | | FranklinDM/UXP-contrib:work_css-host-matching-fixes into master Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2120