aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/audiocontext.rs
Commit message (Collapse)AuthorAgeFilesLines
* Start marking functions that can transitively trigger a GC (#33144)Josh Matthews2024-08-221-2/+5
| | | | | | | | | | | | | | | | | * Mark JS reflector wrappers as CanGc. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Propagate CanGc from reflect_dom_object_with_proto. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Mark DOM constructors as GC operations. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* fix: add error handling to BaseAudioContext::new_inherited (#33023)Taym Haddadi2024-08-181-8/+11
| | | | | | | | | | | | | | | | | | | | | | * fix: add error handling to BaseAudioContext::new_inherited Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Update servo-media Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Update test expectations Signed-off-by: Taym <haddadi.taym@gmail.com> * Update servo-media Signed-off-by: Taym <haddadi.taym@gmail.com> --------- Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> Signed-off-by: Taym <haddadi.taym@gmail.com>
* Move non-gfx things out of `gfx_traits` and create a `base` crate (#32296)Martin Robinson2024-05-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | For a long time, `gfx_traits` has held a lot of things unrelated to graphics and also unrelated to the `gfx` crate (which is mostly about fonts). This is a cleanup which does a few things: 1. Move non `gfx` crate things out of `gfx_traits`. This is important in order to prevent dependency cycles with a different integration between layout, script, and fonts. 2. Rename the `msg` crate to `base`. It didn't really contain anything to do with messages and instead mostly holds ids, which are used across many different crates in Servo. This new crate will hold the *rare* data types that are widely used. Details: - All BackgroundHangMonitor-related things from base to a new `background_hang_monitor_api` crate. - Moved `TraversalDirection` to `script_traits` - Moved `Epoch`-related things from `gfx_traits` to `base`. - Moved `PrintTree` to base. This should be widely useful in Servo. - Moved `WebrenderApi` from `base` to `webrender_traits` and renamed it to `WebRenderFontApi`.
* rustdoc: Fix many rustdoc errors (#31147)Martin Robinson2024-01-221-6/+6
| | | | 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.
* Replace script_plugins with a clippy like rustc driver (named crown) (#30508)Samson2023-12-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Use Foo_Binding instead of FooBinding for namespace modules (#30447)Samson2023-09-301-1/+1
| | | | | * Update Codegen.py to emit Foo_Binding instead of FooBinding * s/FooBinding/Foo_Binding/g
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-9/+8
| | | | | * strict imports formatting * Reformat all imports
* Rename reflect_dom_object2.Josh Matthews2023-05-311-2/+2
|
* Formatting.Josh Matthews2023-05-281-1/+5
|
* Support arbitrary protos when wrapping DOM objects with constructors.Josh Matthews2023-05-281-4/+6
|
* Remove global argument from Promise::new_in_current_realm.Josh Matthews2023-05-201-2/+2
|
* Add AudioContext constructors for media stream nodesManish Goregaokar2020-07-021-0/+33
|
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-2/+1
|
* Remove unnecessary Option.Josh Matthews2020-02-241-3/+1
|
* rename compartment to realmKunal Mohan2020-01-241-5/+5
|
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-0/+1
|
* Implement AudioContext.createMediaElementAudioSourceNode()Fernando Jiménez Moreno2019-11-181-0/+12
|
* MediaElementAudioSourceNode implementationFernando Jiménez Moreno2019-11-181-0/+4
|
* Support enum value as a union default valueKagami Sascha Rosylight2019-10-191-2/+13
|
* Register pipeline instead of browsing contexts for media instancesFernando Jiménez Moreno2019-09-191-8/+7
|
* Update servo media to include global mute supportFernando Jiménez Moreno2019-07-051-6/+13
|
* Use the newly added inCompartments option everywhere it can beBastien Orivel2019-05-251-13/+5
|
* Pass InCompartment by valueAron Zwaan2019-04-251-2/+2
|
* Add proof parameter to Promise::new_in_current_compartmentAron Zwaan2019-04-241-4/+11
|
* Fix formatting issuesAron Zwaan2019-04-031-1/+1
|
* Rename Promise::new to Promise::new_in_current_compartmentAron Zwaan2019-04-031-2/+4
|
* Remove now-unnecessary must_root and allow(unrooted_must_root) annotationsManish Goregaokar2019-01-041-2/+0
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-34/+34
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Unify the task source and task canceller APIAgustin Chiappe Berrini2018-11-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | I moved away from the `Window` struct all the logic to handle task sources, into a new struct called `TaskManager`. In a happy world, I'd be able to just have there two functions, of the types: ```rust fn task_source<T: TaskSource>(&self, name: TaskSourceName) -> Box<T> fn task_source_with_canceller<T: TaskSource>(&self, name: TaskSourceName) -> (Box<T>, TaskSourceCanceller) ``` And not so much duplicated code. However, because TaskSource can't be a trait object (because it has generic type parameters), that's not possible. Instead, I decided to reduce duplicated logic through macros. For reasons[1], I have to pass both the name of the function with canceller and the name of the function without, as I'm not able to concatenate them in the macro itself. I could probably use `concat_idents` to create both types already defined and reduce the amount of arguments by one, but that macro is nightly only. At the same time, not being able to declare macros inside `impl` forces me to pass `self` as an argument. All this makes this solution more verbose than it would be ideally. It does reduce duplication, but it doesn't reduce the size of the file. [1](https://github.com/rust-lang/rust/issues/29599)
* Reorder importsPyfisch2018-11-061-3/+7
|
* Sort `use` statementsSimon Sapin2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-15/+15
|
* Format script componentchansuke2018-09-191-3/+2
|
* 48000 -> 44100Manish Goregaokar2018-07-301-1/+1
|
* OfflineAudioContextFernando Jiménez Moreno2018-07-301-8/+5
|
* test-tidy fixesFernando Jiménez Moreno2018-07-301-3/+7
|
* rustfmtFernando Jiménez Moreno2018-07-301-15/+30
|
* Workaround resume issuesFernando Jiménez Moreno2018-07-301-6/+13
|
* Properly implement audio context state changesFernando Jiménez Moreno2018-07-301-20/+87
|
* AudioContext.suspend() implementationFernando Jiménez Moreno2018-07-301-7/+41
|
* AudioContext constructionFernando Jiménez Moreno2018-07-301-1/+24
|
* Audio context optionsFernando Jiménez Moreno2018-07-301-6/+26
|
* Initial WebAudio API stubsFernando Jiménez Moreno2018-07-301-0/+81