aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
...
* clippy: Fix a few problems in `components/scripts` (#31959)Rosemary Ajayi2024-04-012-2/+2
| | | | | * fixed various clippy warnings * fixed various clippy warnings
* clippy: Fix a few problems in `components/script/dom` (#31955)Rosemary Ajayi2024-03-315-9/+7
| | | | | | | * fixed various clippy warnings * fixed various clippy warnings * fixed various clippy warnings
* clippy: Fix various clippy problems in `components/scripts/dom` (#31910)Rosemary Ajayi2024-03-313-3/+3
| | | | | | | | | | | | | | | | | * boxing is unnecessary * boxing is unnecessary * boxing is unnecessary * boxing is unnecessary * fix * fix * fix * Update globalscope.rs
* fixed various clippy warnings (#31954)Rosemary Ajayi2024-03-316-6/+6
|
* Fixed some clippy warnings in components/script (#31950)komuhangi2024-03-311-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixd some clippy warnings in components/script * Update node.rs Removed the ```# Safety ``` section. * Update shadow_root.rs Removed the ``` # Safety ``` section from components/script/layout_dom * Updated fixes to some clippy warnings in components/script * Revert "Updated fixes to some clippy warnings in components/script" This reverts commit 2a37c3dec8e68df132e788663567a0db94e0edb4. * Updated fixes to clippy warnings in components/script * Revert "Updated fixes to clippy warnings in components/script" This reverts commit 5780dc3a0a8d51d4b36f56c095d0cc6c63c0cb36. * Revert "Revert "Updated fixes to some clippy warnings in components/script"" This reverts commit 98c411354a0ed00ad8e43e8d1be06d1a7007d244. * Revert "Updated fixes to some clippy warnings in components/script" This reverts commit 2a37c3dec8e68df132e788663567a0db94e0edb4. * Update shadow_root.rs (Ignore change) * Update node.rs (Ignore changes) * Updated fixes to clippy warnings in components/script * Removed trailing white space in componets/script/layout_dom_root.rs * Revert "Removed trailing white space in componets/script/layout_dom_root.rs" This reverts commit 1976fd040565c7624338fa904e527c5f9f0fd1ab. * Revert "Updated fixes to clippy warnings in components/script" This reverts commit 5c71b925fb8dd833243eb4e1ca99b80359596f51. * Updated fixes to clippy warnings in components/script including review suggestions.
* Update Stylo to 2023-10-16 (#31932)Oriol Brufau2024-03-308-12/+12
| | | | | | | | | | | | | | | | | | | | | | | * Update Stylo to 2023-10-16 * Fixup for https://phabricator.services.mozilla.com/D185154 * Fixup for https://phabricator.services.mozilla.com/D188216 * Fixup for https://phabricator.services.mozilla.com/D185677 * Fixup for https://phabricator.services.mozilla.com/D188566 * Fixup for https://phabricator.services.mozilla.com/D188727 * Fixup for https://phabricator.services.mozilla.com/D189475 * Fixup for https://phabricator.services.mozilla.com/D189521 * Fixup for https://phabricator.services.mozilla.com/D188812 * Fixup for https://phabricator.services.mozilla.com/D189484 * Update test expectations
* clippy: Fix `from_over_into` warnings (#31946)eri2024-03-304-24/+24
|
* clippy: Fix `match_like_matches` warnings (#31947)eri2024-03-304-41/+28
| | | | | | | | | * clippy: Fix `match_like_matches` warnings * Fix link to custom element state in specification. --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* fix: remove unused imports in components/script (#31943)Azhar Ismagulova2024-03-291-1/+0
|
* layout: Remove LayoutRPC and query layout via the `Layout` trait (#31937)Martin Robinson2024-03-294-65/+78
| | | | | | | | | | | | | | | | | Instead of the tricky `LayoutRPC` interface, query layout using the `Layout` trait. This means that now queries will requires calling layout and then running the query. During layout an enum is used to indicate what kind of layout is necessary. This change also removes the mutex-locked `rw_data` from both layout threads. It's no longer necessary since layout runs synchronously. The one downside here is that for resolved style queries, we now have to create two StyleContexts. One for layout and one for the query itself. The creation of this context should not be very expensive though. `LayoutRPC` used to be necessary because layout used to run asynchronously from script, but that no longer happens. With this change, it becomes possible to safely pass nodes to layout from script -- a cleanup that can happen in a followup change.
* clippy: Fix a variety of warnings in components/script/dom (#31894)Ekta Siwach2024-03-2910-43/+45
|
* clippy: Fix needless_lifetimes warnings (#31933)Oluwatobi Sofela2024-03-2910-15/+15
|
* clippy: Fix option_as_ref_deref warnings (#31936)Oluwatobi Sofela2024-03-296-29/+16
|
* clippy: Fix len_zero warnings (#31935)Oluwatobi Sofela2024-03-294-5/+5
|
* clippy: Fix needless_borrow warnings in components/script (#31928)Azhar Ismagulova2024-03-2917-26/+26
|
* fix: remove unused imports (#31929)Azhar Ismagulova2024-03-282-3/+0
|
* clippy: Fix some warnings in `script/dom` (#31915)Ekta Siwach2024-03-283-9/+5
| | | | | | | | | | | * fixed some clippy warnings * resolved conflict * updated texttracklist.rs --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* clippy: remove unneeded return statements (#31923)Azhar Ismagulova2024-03-287-15/+11
|
* clippy: Fix manual_map warnings (#31922)Oluwatobi Sofela2024-03-287-47/+30
|
* clippy: Fix mem_replace_with_default warnings (#31921)Oluwatobi Sofela2024-03-284-11/+4
|
* clippy: Fix various clippy warnings in `components/scripts/dom/bindings` ↵Rosemary Ajayi2024-03-282-3/+3
| | | | | | | (#31901) * single-character string constant used as pattern * singuse of with literal radix of 16
* clippy: Fix another set of clippy problems in `components/script/dom` (#31909)Rosemary Ajayi2024-03-285-19/+19
| | | | | | | | | * a reference to a reference * length comparison to zero * length comparison to zero * length comparison to zero
* clippy: Fix another batch of clippy warnings in `components/scripts` (#31912)Rosemary Ajayi2024-03-282-10/+10
| | | | | | | * boolean can be simplified * boolean can be simplified * boolean can be simplified
* clippy: Fix more clippy warnings in `components/scripts/dom` (#31914)Rosemary Ajayi2024-03-285-11/+11
| | | | | * refrence to a reference * refrence to a reference
* clippy: Fix a few clippy problems in `components/scripts/dom` (#31905)Rosemary Ajayi2024-03-283-12/+10
| | | | | * option_as_ref_deref * fix
* fix redundant closures in component/script/dom (#31917)Ekta Siwach2024-03-2826-44/+35
| | | | | | | | | | | | | * fixed unnecessary conversions * resolved conflicts * resolved conflicts * fix redundant closures in component/script/dom * resolved conflicts * fixed formatting
* clippy: Fix all errors in `components/script` (#31911)Azhar Ismagulova2024-03-286-12/+13
| | | | | * clippy: Fix errors in components/script/dom * clippy: fixed remaining errors in components/script
* deref on an immutable reference (#31899)Rosemary Ajayi2024-03-281-1/+1
|
* clippy:fix various clippy problems in components/scripts (#31907)Rosemary Ajayi2024-03-274-14/+14
| | | | | | | | | * manual implementation of an assign operation * manual implementation of an assign operation * single-character string * manual cjheck for common ascii range
* WebIDL: Replace `NonNull<JSObject>` in `xmlhttprequest` (#31880)eri2024-03-271-51/+44
| | | | | | | | | | | * WebIDL: Replace `NonNull<JSObject>` in `xmlhttprequest.rs` * doc: Update functions comments to docstring * fix: Actually allocate `response_arraybuffer` * fix: Change step descriptions * fix: change step numbers
* fix: omitted the `let` bindings (#31908)Azhar Ismagulova2024-03-278-25/+19
|
* clippy: Fix option_map_unit_fn warnings (#31906)Oluwatobi Sofela2024-03-2710-28/+41
|
* clippy: Fix clippy problems in `components/script/dom` (#31891)Rosemary Ajayi2024-03-274-13/+12
| | | | | | | * deref on an immutable reference * use of with literal radix of 10 * fix
* clippy: Fix op_ref warnings (#31900)Oluwatobi Sofela2024-03-278-19/+15
|
* clippy: Fix unnecessary_lazy_evaluations warnings (#31898)Oluwatobi Sofela2024-03-271-6/+2
|
* clippy:Fix clippy problems in components/scripts/binding (#31893)Rosemary Ajayi2024-03-277-16/+12
| | | | | | | | | | | | | | | * constants have by default a static lifetime * constants have by default a static lifetime * unneeded unit expression * unneeded unit expression * Box of default value * casting raw pointers * casting raw pointers
* clippy: Fix warnings in `components/script/dom/request.rs` (#31867)Aarya Khandelwal2024-03-271-38/+38
|
* clippy: Fix various warnings in `components/script/dom` (#31890)Rosemary Ajayi2024-03-273-15/+15
| | | | | * redundant field names in struct initialization * reduthis pattern creates a reference to a reference
* clippy: fixed some warnings in components/script (#31888)Ekta Siwach2024-03-269-35/+35
|
* fonts: Add support for WOFF2 and properly load web fonts from @imports (#31879)Martin Robinson2024-03-261-3/+10
| | | | | | | | | | | | This change also makes two fixes that are necessary to get WOFF2 fonts working: 1. It adds support for loading web fonts from stylesheets included via @import rules. 2. It ensure that when web fonts are loaded synchronusly they invalidate the font cache. This led to incorrect font rendering when running tests before. Fixes #31598.
* clippy: Fix clone-on-copy warnings (#31877)Oluwatobi Sofela2024-03-267-40/+34
|
* dom: Abort media element load on decode errors (#31748)Frederik Reiter2024-03-261-0/+18
| | | Signed-off-by: Frederik Reiter <hi@frereit.de>
* layout: More conservatively replace Stylist's Device (#31857)Martin Robinson2024-03-261-2/+4
| | | | | | | | | Instead of replacing Stylist's device on every reflow, only replace it when the viewport changes. In addition, preserve the root font size from the previous reflow fixing an issue where `rem` units were not properly computed between reflows. This fixes a bug where fonts that are sized using `rem` units change size on reload.
* clippy: Fix single_match warnings (#31876)Oluwatobi Sofela2024-03-266-111/+95
|
* clippy: fix some warnings in components/script (#31865)Ekta Siwach2024-03-2610-16/+16
|
* clippy: Fix collapsible_else_if warnings (#31853)Oluwatobi Sofela2024-03-266-38/+27
|
* fixed the `unneeded return` statement warnings. (#31863)Aarya Khandelwal2024-03-2615-33/+33
|
* fixes dereferencing on an immutable reference (#31864)Aarya Khandelwal2024-03-2628-68/+67
|
* clippy: Fix collapsible_if warnings (#31852)Oluwatobi Sofela2024-03-2511-96/+86
|
* clippy: Fix some clippy warnings in `components/script` (#31843)Rosemary Ajayi2024-03-253-6/+6
| | | | | | | * deref on an immutable reference * fix deref on an immutable reference * fix deref on an immutable reference