Samson
aad2dccc9c
Strict import formatting (grouping and granularity) ( #30325 )
...
* strict imports formatting
* Reformat all imports
2023-09-11 19:16:54 +00:00
Samson
9514f670d1
No tracing of nop traceable fields ( #29926 )
...
* Add `no_trace` option to JSTraceable derive
* NoTrace wrapper
* Port some types to no_trace schematics
* Fixing my unsafe mistakes (not tracing traceables)
* Add docs & safety guards for no_trace
Safety guards (trait shenanigans) guarantees safety usage of `no_trace`
* Port canvas_traits to no_trace
* Port servo_media to no_trace
* Port net_traits to no_trace
* Port style to no_trace
* Port webgpu to no_trace
* Port script_traits to no_trace
* Port canvas_traits, devtools_traits, embedder_traits, profile_traits to no_trace
* unrooted_must_root lint in seperate file
* Add trace_in_no_trace_lint as script_plugin
* Composable types in must_not_have_traceable
* Introduced HashMapTracedValues wrapper
* `HashMap<NoTrace<K>,V>`->`HashMapTracedValues<K,V>`
* Port rest of servo's types to no_trace
* Port html5ever, euclid, mime and http to no_trace
* Port remaining externals to no_trace
* Port webxr and Arc<Mutex<_>>
* Fix spelling in notrace doc
2023-08-04 10:17:43 +00:00
Josh Matthews
cc07e27864
Rename reflect_dom_object2.
2023-05-31 23:03:32 -04:00
Josh Matthews
0e8ac3fdac
Formatting.
2023-05-28 23:54:02 -04:00
Josh Matthews
dbff26bce0
Support arbitrary protos when wrapping DOM objects with constructors.
2023-05-28 23:23:12 -04:00
Josh Matthews
f79e1e327d
Make GlobalScope.get_cx a static method.
2023-05-20 11:05:09 -04:00
YUAN LYU
3ea6d87bcc
Add trait DomObjectWrap to provide WRAP function
2020-03-20 22:16:56 -04:00
Kunal Mohan
5a3e1b8e69
rename compartment to realm
2020-01-24 20:52:36 +05:30
Kunal Mohan
f7db4b7f80
Modify script
to prevent further violations of snake_case
2020-01-18 14:22:15 +05:30
Kunal Mohan
02c1612cb0
Add accountable-refcell as optional build time feature
2020-01-08 09:44:41 +05:30
Mauricio Collares
992e7ba630
AudioBuffer: Track sample rate
2019-08-19 14:36:30 -03:00
marmeladema
b08a3e6217
Remove some usage of unsafe code in AudioBuffer
2019-08-09 00:02:09 +01:00
marmeladema
88cacfb009
Modify *::get_cx methods to return a safe JSContext instead of a raw one
2019-07-24 09:53:10 +01:00
marmeladema
2c5d0a6ebc
Convert CGTraitInterface to use safe JSContext instead of raw JSContext
2019-07-24 08:24:50 +01:00
Kamil Niski
adb402487e
Create a helper API for entering a DOM object's compartment
...
Revert some unnecessary changes
Fix fmt errors
2019-06-29 19:23:17 +02:00
Josh Matthews
63714c90fb
Upgrade to Spidermonkey 67.
2019-06-26 18:10:46 -04:00
Josh Matthews
4328713f71
Update to SpiderMonkey 66.
2019-05-10 22:43:43 -04:00
Josh Matthews
57d2b5a92d
Remove mozjs dep from malloc_size_of.
2019-05-02 09:30:03 -04:00
Jan Andre Ikenmeyer
a1a14459c1
Update MPL license to https (part 3)
2018-11-19 14:47:12 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Pyfisch
cb07debcb6
Format remaining files
2018-11-06 22:30:31 +01:00
Simon Sapin
9f9bf8f6bc
Switch most crates to the 2018 edition
2018-11-06 16:12:04 +01:00
Simon Sapin
45f7199eee
cargo fix --edition
2018-11-06 15:26:02 +01:00
Fernando Jiménez Moreno
091ad49d68
Allow reusing AudioBuffers
2018-10-11 19:27:21 +02:00
Manish Goregaokar
600f997a51
Increase webaudio sample rate threshold to match firefox
2018-10-10 17:32:12 -07:00
Fernando Jiménez Moreno
4a927b5b78
Rustfmt audiobuffer.rs
2018-09-19 07:28:12 +02:00
Fernando Jiménez Moreno
138c739205
Keep shared and js channels in sync
2018-09-19 06:54:17 +02:00
Fernando Jiménez Moreno
346d705c66
Do not skip buffer update during copyToChannel
2018-09-19 06:54:17 +02:00
Fernando Jiménez Moreno
a81389268a
Throw IndexError if start_in_channel is equal to ArrayBuffer length
2018-09-19 06:54:17 +02:00
Fernando Jiménez Moreno
10e8ab3892
Apply start_in_channel to destination and not source during AudioBuffer.CopyToChannel
2018-09-19 06:54:17 +02:00
Fernando Jiménez Moreno
e0e1f5f900
Implement AudioBufferSourceOptions.AudioBuffer and always keep servo media audio buffer updated
2018-09-19 06:54:17 +02:00
Fernando Jiménez Moreno
5307766ed2
Check AudioBuffer options constraints
2018-09-19 06:54:16 +02:00
Fernando Jiménez Moreno
b8ade93538
Throw when trying to copy AudioBuffer data from or to a SharedArrayBuffer
2018-09-19 06:54:16 +02:00
Fernando Jiménez Moreno
e80ac0000f
Fix AudioBuffer crash. Do not modify number of channels while moving from shared to js channels
2018-09-19 06:54:16 +02:00
Fernando Jiménez Moreno
f423ede07f
Add support for multichannel decoded audio
2018-09-11 10:38:56 +02:00
Alan Jeffrey
74c1e00d81
Upgraded to SM 60
2018-08-20 18:22:29 -04:00
Manish Goregaokar
a1fe48d721
Use JS_GetArrayBufferViewBuffer with JS_DetachArrayBuffer
2018-07-30 16:42:38 -07:00
Fernando Jiménez Moreno
b738d9a912
Throw if AudioBufferSourceNode.Start params are negative
2018-07-30 19:54:55 +02:00
Fernando Jiménez Moreno
ce828c0071
Get rooting out of AudioBuffer::new_inherited
2018-07-30 14:24:42 +02:00
Fernando Jiménez Moreno
6aaf5806b1
OfflineAudioContext
2018-07-30 14:23:48 +02:00
Fernando Jiménez Moreno
acb03603b6
Fire AudioScheduledSourceNode.onended when playback stops
2018-07-30 14:23:46 +02:00
Fernando Jiménez Moreno
c9ff1b9f57
Enter compartment during AudioBuffer creation
2018-07-30 14:23:46 +02:00
Fernando Jiménez Moreno
596640595c
Root JS channels during AudioBuffer construction
2018-07-30 14:23:46 +02:00
Fernando Jiménez Moreno
c617ca0d30
Remove commented code
2018-07-30 14:23:46 +02:00
Fernando Jiménez Moreno
477907e578
Do not copy initial data during AudioBuffer construction and use JS_DetachArrayBuffer
2018-07-30 14:23:45 +02:00
Fernando Jiménez Moreno
b26a3bd31b
rustfmt
2018-07-30 14:21:46 +02:00
Fernando Jiménez Moreno
3fc9ecace0
Make restore_js_channel_data unsafe
2018-07-30 14:21:46 +02:00
Manish Goregaokar
b7730da37d
Add spec link to AudioBuffer::Constructor
2018-07-30 14:21:46 +02:00
Manish Goregaokar
02aaf55cd3
Pass global to AudioBuffer::new_inherited
2018-07-30 14:21:46 +02:00
Fernando Jiménez Moreno
b87fc17b4b
decodeAudioData
2018-07-30 14:21:44 +02:00