mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make XRRigidTransform.position/orientation lazy, default to using euclid things
This commit is contained in:
parent
feb3517ad5
commit
e296185c53
3 changed files with 28 additions and 80 deletions
|
@ -2,7 +2,6 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use crate::dom::bindings::codegen::Bindings::DOMPointBinding::DOMPointInit;
|
||||
use crate::dom::bindings::codegen::Bindings::DOMPointReadOnlyBinding::{
|
||||
DOMPointReadOnlyMethods, Wrap,
|
||||
};
|
||||
|
@ -51,10 +50,6 @@ impl DOMPointReadOnly {
|
|||
) -> Fallible<DomRoot<DOMPointReadOnly>> {
|
||||
Ok(DOMPointReadOnly::new(global, x, y, z, w))
|
||||
}
|
||||
|
||||
pub fn new_from_init(global: &GlobalScope, p: &DOMPointInit) -> DomRoot<DOMPointReadOnly> {
|
||||
DOMPointReadOnly::new(global, p.x, p.y, p.z, p.w)
|
||||
}
|
||||
}
|
||||
|
||||
impl DOMPointReadOnlyMethods for DOMPointReadOnly {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue