aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
...
* clippy: Fix all errors in `components/script` (#31911)Azhar Ismagulova2024-03-288-57/+57
| | | | | * 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-279-26/+20
|
* clippy: Fix option_map_unit_fn warnings (#31906)Oluwatobi Sofela2024-03-2711-30/+43
|
* 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: Fix some warnings in `components/script/timers.rs` (#31878)komuhangi2024-03-271-5/+7
| | | | | | | | | | | * Fixed some clippy warnings in components/script/timers.rs * Formatted changes in components/script/timers.rs * Updated changes in components/script/timers.rs * Updated Default implementation of JsTimers in components/script/timers.rs * UPDATED DEFAULT METHOD IMPLEMENTATION OF JsTimers in components/script/timers.rs
* clippy: fixed some warnings in components/script (#31888)Ekta Siwach2024-03-2611-40/+39
|
* fonts: Add support for WOFF2 and properly load web fonts from @imports (#31879)Martin Robinson2024-03-262-3/+14
| | | | | | | | | | | | 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-269-47/+41
|
* 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-267-135/+117
|
* clippy: fix some warnings in components/script (#31865)Ekta Siwach2024-03-2610-16/+16
|
* Update python detection in codegen (#31873)Samson2024-03-261-2/+2
| | | | | * Update python detection in codegen * Update build.rs
* clippy: Fix collapsible_else_if warnings (#31853)Oluwatobi Sofela2024-03-268-52/+37
|
* fixed the `unneeded return` statement warnings. (#31863)Aarya Khandelwal2024-03-2615-33/+33
|
* fixes dereferencing on an immutable reference (#31864)Aarya Khandelwal2024-03-2632-77/+76
|
* 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
* script: Add pre element obsolete width attribute support (#31792)Bastiaan van der Plaat2024-03-253-3/+35
|
* changed `match` to 'matches!' (#31850)Aarya Khandelwal2024-03-2529-229/+185
|
* clippy: Fix remaining warnings in generated code (#31844)eri2024-03-254-32/+48
| | | | | * clippy: fix warnings in generated code * clippy: fix wrap_panic closure warnings
* clippy: Fix some warnings in `components/script` (#31849)Ekta Siwach2024-03-257-27/+24
| | | | | | | * clippy: fixed some warnings in components/script * fixed formatting * fix formatting
* WebIDL: Remove `JSObject` from `Document::NamedGetter` (#31841)eri2024-03-243-29/+16
| | | | | * WebIDL: Remove `JSObject` from `Document::NamedGetter` * fix: update rustdoc comment
* clippy: Fix `default_constructed_unit_structs` warnings in `components` (#31827)Oluwatobi Sofela2024-03-241-3/+3
| | | | | * clippy: Fix default constructed unit structs warnings * refactor: Allow default constructed unit structs to avoid gfx build error
* fix redundant closure (#31842)Rosemary Ajayi2024-03-231-4/+4
|
* Clippy: Fixed some clippy warnings (#31818)Aarya Khandelwal2024-03-2311-68/+57
| | | | | | | | | | | * Fixed clippy warnings * made changes for lowercase characters. * changed is_lowercase() to is_ascii_lowercase() * added std library function `is_ascii_uppercase()` and `is_ascii_lowercase()` * made recommended changes
* clippy: Fix `explicit_auto_deref` warnings in `components/script` (#31837)Oluwatobi Sofela2024-03-2362-168/+157
| | | | | | | | | * clippy: Fix explicit auto-deref warnings * clippy: Fix explicit auto-deref warnings * refactor: Tidy up code * refactor: Fix method not found errors
* Implement StaticRange (#31809)cathiechen2024-03-229-280/+519
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add DOM interface for AbstractRange * Add DOM interface for StaticRange * Update WPT tests for StaticRange-constructor.html * Fix formatting * Add AbstractRange & StaticRange in interfaces.html * rebased the code and fixed the failures Signed-off-by: Cathie Chen <cathiechen@igalia.com> * update the expected result in idlharness.window.js.ini file * Addressed the code review comments * updae the test result of legacy layout --------- Signed-off-by: Cathie Chen <cathiechen@igalia.com> Co-authored-by: Nipun Garg <nipung271@gmail.com>
* clippy: Fix `unnecessary_cast` warnings in `components/script` (#31823)Oluwatobi Sofela2024-03-2221-45/+32
| | | | | | | * clippy: Fix unnecessary cast warnings * clippy: Replace redundant field names with their shorthand alternatives * clippy: Delete struct pattern dereferencings
* Fix some clippy warnings in `components/script/webdriver_handlers.rs` (#31784)Tumuhairwe2024-03-221-51/+46
| | | | | | | | | * Fixed some clippy warnings in components/script/webdriver_handlers.rs * Updated fixes for clippy warnings in components/script/webdriver_handlers.rs * Updated the formatting of components/script/webdriver_handlers.rs * Updated components/script/webdriver_handler.rs to fix some clippy warnings.
* removed mutable compile warnings (#31822)sandeep2024-03-223-5/+5
| | | | Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> Co-authored-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local>
* Rework “visible” to “throttled” in constellation + script + ↵Delan Azabani2024-03-224-38/+37
| | | | compositor (#31816)
* Fixed the .clone() warnings. (#31819)Aarya Khandelwal2024-03-2228-93/+76
|
* clippy: Fix needless borrow warnings (#31813)Oluwatobi Sofela2024-03-2142-157/+151
|
* clippy: Fix dereferencing a tuple pattern warnings (#31811)Oluwatobi Sofela2024-03-2114-37/+29
|
* crown: Do not warn about crown for rustdoc or clippy (#31805)Martin Robinson2024-03-211-2/+4
| | | Fixes #31804.
* Remove repeated imports from generated code (#31711)eri2024-03-214-364/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: try to deduplicate imports in codegen * feat: another attempt * feat: start testing imports * feat: clean all global imports * feat: remove shared imports from CGDescriptor * feat: remove redundant imports from CGDescriptor * fix: formatting * fix: remove libc (base level import) * feat: roll back named path changes * feat: last changes and tidy * experiment: move imports into a separate file * fix: extra parenthesis * fix: remove repeated allow statement
* clippy: fix `result_unit_err` warnings (#31791)eri2024-03-213-141/+117
| | | | | | | | | | | | | | | | | * clippy: fix `result_unit_err` warnings * feat: fix result warnings in script * doc: document `generate_key` return type Co-authored-by: Martin Robinson <mrobinson@igalia.com> * feat: add back result to RangeRequestBounds::get_final Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* clipping: Fix some warnings in `components/script/dom` (#31799)Rosemary Ajayi2024-03-212-22/+16
| | | | | | | | | * fix clippy websocket errors * fix clippy window errors * fix clippy window errors * fix clippy window errors
* Clippy: Fixed warnings in htmlimageelement.rs (#31800)Aarya Khandelwal2024-03-212-22/+22
| | | | | * Fixed warnings in htmlimageelement.rs * making changes for test-tidy to run without errors.
* Clippy: Fixed clippy warnings in components/script/dom (#31801)Aarya Khandelwal2024-03-216-111/+108
| | | | | | | | | * fixed clippy warnings in htmlformelement.rs * Fixed clippy warnings * Fixed warnings related to matches! * made changes to compile "test-tidy" successfully
* clippy: Fix redundant field names warnings (#31793)Oluwatobi Sofela2024-03-2097-314/+285
|