mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update mozjs.
This commit is contained in:
parent
2f94e0d2a8
commit
c2f8b0468a
5 changed files with 125 additions and 81 deletions
|
@ -345,8 +345,8 @@ impl DOMMatrixReadOnly {
|
|||
#[allow(unsafe_code)]
|
||||
pub fn FromFloat32Array(
|
||||
global: &GlobalScope,
|
||||
mut array: CustomAutoRooterGuard<Float32Array>)
|
||||
-> Fallible<DomRoot<DOMMatrixReadOnly>> {
|
||||
array: CustomAutoRooterGuard<Float32Array>,
|
||||
) -> Fallible<DomRoot<DOMMatrixReadOnly>> {
|
||||
let vec: Vec<f64> = array.to_vec().iter().map(|&x| x as f64).collect();
|
||||
DOMMatrixReadOnly::Constructor_(global, vec)
|
||||
}
|
||||
|
@ -355,12 +355,11 @@ impl DOMMatrixReadOnly {
|
|||
#[allow(unsafe_code)]
|
||||
pub fn FromFloat64Array(
|
||||
global: &GlobalScope,
|
||||
mut array: CustomAutoRooterGuard<Float64Array>)
|
||||
-> Fallible<DomRoot<DOMMatrixReadOnly>> {
|
||||
array: CustomAutoRooterGuard<Float64Array>,
|
||||
) -> Fallible<DomRoot<DOMMatrixReadOnly>> {
|
||||
let vec: Vec<f64> = array.to_vec();
|
||||
DOMMatrixReadOnly::Constructor_(global, vec)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue