aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
Commit message (Collapse)AuthorAgeFilesLines
* rustdoc: Fix many rustdoc errors (#31147)Martin Robinson2024-01-22126-791/+791
| | | | This fixes many rustdoc errors that occur due to raw URLs in rustdoc comments as well as unescaped Rust code that should be in backticks.
* Fix trivial typo in variable name (#31143)Olivier Tilloy2024-01-211-2/+2
|
* Use FLoat32Array in GamepadPose (#31106)Taym Haddadi2024-01-194-84/+38
| | | | | | | | | | | | | * Use FLoat32Array in GamepadPose Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Remove unused create_typed_array Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> --------- Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* script: Use FLoat32Array in XRRay (#31087)Taym Haddadi2024-01-172-19/+20
| | | | | | | | | | | | * use FLoat32Array in XRRay Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Apply suggestions from code review --------- Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* use FLoat32Array in XRRigidTransform (#31076)Taym Haddadi2024-01-172-15/+14
| | | Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* use FLoat32Array in XRView (#31077)tannal2024-01-162-11/+13
| | | | | | | | | | | | | | | | | * use FLoat32Array in XRView * handle error when calling set_data Yes, we should handle this. Co-authored-by: Taym Haddadi <haddadi.taym@gmail.com> * fix: error handling * chore: error message --------- Co-authored-by: Taym Haddadi <haddadi.taym@gmail.com>
* script: Start replacing `time` with `std::time` and `chrono` (#30639)Auguste Baum2024-01-166-61/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Replace `time` with `chrono` in `script/animation_timeline` Signed-off-by: Auguste Baum <auguste.apple@gmail.com> * Replace `time` with `std::time` in `script/script_thread.rs` Signed-off-by: Auguste Baum <auguste.apple@gmail.com> * Replace `time` with `std::time` and `chrono` in `script/script_thread.rs` Signed-off-by: Auguste Baum <auguste.apple@gmail.com> * Replace `time` with `std::time` in `script/script_runtime.rs` Signed-off-by: Auguste Baum <auguste.apple@gmail.com> * Replace `time` with `std::time` in `script/script_runtime.rs` Signed-off-by: Auguste Baum <auguste.apple@gmail.com> * Replace `time` with `std::time` in `script/dom/workerglobalscope.rs` Signed-off-by: Auguste Baum <auguste.apple@gmail.com> * Replace `time` with `chrono` in `script/dom/workerglobalscope.rs` Signed-off-by: Auguste Baum <auguste.apple@gmail.com> * Replace `time` with `std::time` in `script/dom/htmlmedialelement.rs` Signed-off-by: Auguste Baum <auguste.apple@gmail.com> * Replace `time` with `std::time` in `script/dom/htmlmedialelement.rs` Signed-off-by: Auguste Baum <auguste.apple@gmail.com> * Replace `time` with `std::time` in `script/dom/globalscope.rs` Signed-off-by: Auguste Baum <auguste.apple@gmail.com> * Replace `time` with `chrono` in `script/dom/globalscope.rs` Signed-off-by: Auguste Baum <auguste.apple@gmail.com> * Replace `time` with `std::time` in `script/dom/htmlformelement.rs` Signed-off-by: Auguste Baum <auguste.apple@gmail.com> * Replace `time` with `std::time` in `script/dom/htmlformelement.rs` Signed-off-by: Auguste Baum <auguste.apple@gmail.com> * Increase precision of animation timeline * Some fixes Use Instant a bit more and stop using chrono. Do not transition `navigation_start_precise` to Instant yet as we need to coordinate this across all crates. --------- Signed-off-by: Auguste Baum <auguste.apple@gmail.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* audiobuffer: ensure dest has the same size as source in copy from channel ↵Gregory Terzian2024-01-151-1/+1
| | | | (#31071)
* WebIDL: use FLoat32Array (#30990)Gregory Terzian2024-01-115-86/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * inital * audiobuffer: return float 32 array as channel data * add on heap float 32 array type * fix warnings * add list of webidl interfaces to ignore for float 32 * codegen: remove duplication of builtin return type handling * bindings: derive default for float 32 array wrapper * bindings: allow unsafe code in typedarrays module * bindings: rename float 32 array wrapper * bindings: rename HeapFloat32Array is_set method to is_initialized * bindings: assert float 32 array is initialized before data can be acquired * bindings: use let syntax for error handling in float 32 array wrapper * bindings: use copy_from_slice where possible in float 32 array wrapper * bindings: rename args in typedarray copy methods * codegen: use idl type in builtin names for float 32 array * bindings: add a util to create float 32 arrays, use in dom matrix readonly * codegen: tidy * bindings: box the heap inside heaped float 32 arrays
* Fix underflow in PerformanceResourceTiming API (#31063)Delan Azabani2024-01-111-1/+1
|
* Replace time with std::time in components/metrics & components/shared (#31020)Taym Haddadi2024-01-101-1/+1
|
* Fix failed request for adapter when not available (#31002)Taym Haddadi2024-01-093-75/+78
| | | Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Upgrade media / GStreamer / GLib (#30750)Martin Robinson2024-01-052-34/+30
| | | | | | | | | | | | | | | | | | - Upgrade the version of GStreamer for Windows This upgrades the Windows build to use the most recent version of GStreamer. This is necessary to upgrade our GStreamer dependency. - Stop shipping GStreamer binaries on Linux The binary bundle of GStreamer that we package is not used to compile -- only to run layout tests. It's too old for the APIs that we are using (as evidenced by needed 1.18 for WebRTC) and nowadays Linux distributions carry a new version so it's unecessary for our build machines. No longer using this binary bundle will allow us to upgrade our GStreamer dependency -- which now has stricter checks that we are using at least version 1.18. - Upgrade media to use newer versions of GStreamer / GLib dependencies
* Script: ensure child JS runtimes are dropped before parent (#30896)Gregory Terzian2024-01-043-4/+13
| | | | | | | | | | | * clear js runtime of dedicated worker that immediately exits * dedicated worker: clear js runtime if loading script fails * when the script thread crashes, deallocate worker runtimes before dropping main runtime * clear runtime if service worker script fails to load * ensure worker enter their realm before executing script
* Update WebGPU CTS (#30954)Samson2023-12-283-8/+11
| | | | | | | | | | | * Update WebGPU CTS to https://github.com/gpuweb/cts/commit/ae15a59832989c22982acaeaccdf5d379afced62 * Add internal to GPUErrorFilter to make more test work * No crash in CreateRenderBundleEncoder * getCompilationInfo * Update expectations
* Update wgpu to 0.18.1 (#30926)Samson2023-12-251-0/+3
| | | | | | | * Update wgpu to 0.18.1 * Fix webgpu code * tidy
* script: Allow moving back to non-quirks mode (#30898)Martin Robinson2023-12-211-4/+4
| | | | | | | The code in script is written so that the document itself can move from quirks to non-quirks mode, but this is never communicated to layout -- meaning quirky layout keeps happening. This is an issue when rewriting the entire document with `document.write()` which is what some WPT tests do to test quirks mode behavior.
* These changes fix #30843 (#30888)Lucas Montenegro2023-12-201-5/+9
| | | Signed-off-by: Lucas Fabián Montenegro <40044087+lucasMontenegro@users.noreply.github.com>
* Update branch name to main (#30877)Alex Touchet2023-12-161-1/+1
|
* Bump mozangle to 0.5.0 (#30546)Samson2023-12-081-155/+32
| | | | | | | | | * Update mozangle to version 0.5 * Update webglshader CompileOptions and BuiltInResources * Update webglshader.rs * Update webglshader.rs
* Compile Servo with the latest version of rust stable (#30831)Martin Robinson2023-12-063-12/+5
| | | | | | | | | | | | | | | | This completes the transition to compiling Servo with rust stable. Some nightly-only features are still used when compiling the `script` and `crown` crates, as well as for some style unit tests. These will likely break with newer compiler versions, but `crown` can be disabled for them conditionally. This is just the first step. This has some caveats: 1. We need to disable setting up the special linker on Linux. The -Z option isn't supported with stable rust so using this is out -- meanwhile we can't be sure that lld is installed on most systems. 2. `cargo fmt` still uses some unstable options, so we need to rely on the unstable toolchain just for running `fmt`. The idea is to fix this gradually.
* Replace script_plugins with a clippy like rustc driver (named crown) (#30508)Samson2023-12-01198-367/+356
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove script_plugins * Use crown instead of script_plugins * crown_is_not_used * Use crown in command base * bootstrap crown * tidy happy * disable sccache * Bring crown in tree * Install crown from tree * fix windows ci * fix warning * fix mac libscript_plugins.dylib is not available anymore * Update components/script/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Update for nightly-2023-03-18 Mostly just based off https://github.com/servo/servo/pull/30630 * Always install crown it's slow only when there is new version * Run crown test with `mach test-unit` * Small fixups; better trace_in_no_trace tests * Better doc * crown in config.toml * Fix tidy for real * no sccache on rustc_wrapper * document rustc overrides * fixup of compiletest * Make a few minor comment adjustments * Fix a typo in python/servo/platform/base.py Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com> * Proper test types * Ignore tidy on crown/tests --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Further changes required by ServoOriol Brufau2023-11-241-5/+0
|
* Further changes required by ServoOriol Brufau2023-11-241-5/+0
|
* Further changes required by ServoOriol Brufau2023-11-241-3/+1
|
* Further changes required by ServoOriol Brufau2023-11-241-1/+0
|
* Further changes required by ServoOriol Brufau2023-11-243-42/+21
|
* Further changes required by ServoOriol Brufau2023-11-241-0/+5
|
* Further changes required by ServoOriol Brufau2023-11-241-0/+1
|
* Further changes required by ServoOriol Brufau2023-11-241-1/+1
|
* Further changes required by ServoOriol Brufau2023-11-248-1/+13
|
* Further changes required by ServoOriol Brufau2023-11-241-11/+9
|
* Further changes required by ServoOriol Brufau2023-11-241-1/+1
|
* Make CSSConditionRule's conditionText readonly (#30768)Oriol Brufau2023-11-234-92/+6
| | | | | | | As per https://github.com/w3c/csswg-drafts/issues/6819 This will be needed for https://phabricator.services.mozilla.com/D179060 The test was created by Mozilla, but was not correctly synced into WPT.
* Further changes required by ServoOriol Brufau2023-11-211-1/+1
|
* Further changes required by ServoOriol Brufau2023-11-214-4/+4
|
* Further changes required by ServoOriol Brufau2023-11-211-2/+15
|
* Further changes required by ServoOriol Brufau2023-11-211-18/+12
|
* Further changes required by ServoOriol Brufau2023-11-212-10/+51
|
* Further changes required by ServoOriol Brufau2023-11-212-5/+22
|
* Enable new color functions from CSS Color 4 (#30752)Oriol Brufau2023-11-202-45/+47
| | | | | | | | I will need to do most of the work anyways during the style updates, so by enabling this it will be easier to detect mistakes. Also, canvas colors are now parsed as <color>, precisely to support these new features. This is according to the HTML spec: https://html.spec.whatwg.org/multipage/infrastructure.html#parsed-as-a-css-color-value
* Allow currentColor in canvas context's shadowColor (#30754)Oriol Brufau2023-11-203-55/+42
| | | | | | This allows unifying the parse_color function and method, aligns Servo with other browsers, and obeys the HTML spec: - https://html.spec.whatwg.org/multipage/canvas.html#shadows - https://html.spec.whatwg.org/multipage/infrastructure.html#parsed-as-a-css-color-value
* Remove usage of `drain_filter` (#30742)Martin Robinson2023-11-173-19/+24
| | | This is a step on the way toward supporting stable rust.
* Remove Servo `window.trap()` extension (#30743)Martin Robinson2023-11-173-8/+0
| | | | | This Servo-specific extension is unused by any code in the repository and removing it allows us to remove use of nightly only reliance on rust intrinsics. This is a step toward supporting stable rust.
* constellation: clean up logging of pipelines and browsing contexts (#30657)Delan Azabani2023-11-141-2/+2
| | | | | | | * constellation: clean up logging of pipelines and browsing contexts * bring back sentence case; remove commented code * fix more typos and wordings
* Further changes required by ServoOriol Brufau2023-11-062-5/+5
|
* Further changes required by ServoOriol Brufau2023-11-062-10/+10
|
* Further changes required by ServoOriol Brufau2023-11-041-5/+4
|
* Further changes required by ServoOriol Brufau2023-11-041-1/+5
|
* Further changes required by ServoOriol Brufau2023-11-041-1/+1
|