aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xrrigidtransform.rs
Commit message (Collapse)AuthorAgeFilesLines
* Filter out webidl files based on special comments, and feature-gate webxr ↵Josh Matthews2024-11-241-188/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interfaces. (#34348) * Filter out webidl files based on skip-if directives. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Don't build XR functionality without webxr feature. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix tidy. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Adjust imports for file movement. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Clean up webxr module import. Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com> Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net> Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com>
* Generate a trait abstracting over all known DOM interfaces (#34357)Josh Matthews2024-11-241-1/+1
| | | | | | | | | | | | | | | | | * script: Generate trait for all DOM interfaces and parameterize generated Methods traits over it. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Update trait implementations with new generic type. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* More files with CanGc fixes (#33892)chickenleaf2024-10-181-6/+10
| | | | | | | | | | | | | * More files with CanGc fixes Signed-off-by: L Ashwin B <lashwinib@gmail.com> * removed the can_gc inside !task Signed-off-by: L Ashwin B <lashwinib@gmail.com> --------- Signed-off-by: L Ashwin B <lashwinib@gmail.com>
* More CanGc fixes (#33888)chickenleaf2024-10-171-3/+11
| | | Signed-off-by: L Ashwin B <lashwinib@gmail.com>
* script: Include constructors and static methods in generated DOM traits (#33665)Josh Matthews2024-10-081-4/+3
| | | | | | | | | | | | | | | | | * Add all constructors, special operations, and static methods to generated DOM interface traits. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Move all constructors and static methods defined in bare impl blocks inside FooMethods trait impls. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Add missing doc links. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* webxr: Add some missing internal checks/validation (#33318)Daniel Adams2024-09-051-0/+20
| | | | | | | | | | | | | | | | | * Ensure depthFar is non-negative Signed-off-by: Daniel Adams <msub2official@gmail.com> * Properly append default features in requestSession Signed-off-by: Daniel Adams <msub2official@gmail.com> * Ensure XRRigidTransform init members have finite values Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Start marking functions that can transitively trigger a GC (#33144)Josh Matthews2024-08-221-2/+6
| | | | | | | | | | | | | | | | | * 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>
* WedIDL: bring dom/bindings/typedarray further in line with spec (#31375)Taym Haddadi2024-02-251-4/+4
| | | | | | | | | | | | | | | | | * WedIDL: bring dom/bindings/typedarray further in line with spec Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Rename HeapBufferSourceTypes to HeapBufferSource Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * fmt code Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> --------- Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Make HeapFloat32Array generic (#31167)Taym Haddadi2024-01-291-4/+4
| | | | | | | | | | | | | | | | | * Make HeapFloat32Array generic Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Define all the methods defaults on the HeapTypedArray trait Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Use generic type instead of trait Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> --------- Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* rustdoc: Fix many rustdoc errors (#31147)Martin Robinson2024-01-221-1/+1
| | | | 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.
* use FLoat32Array in XRRigidTransform (#31076)Taym Haddadi2024-01-171-14/+13
| | | Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-9/+9
| | | | | * strict imports formatting * Reformat all imports
* No tracing of nop traceable fields (#29926)Samson2023-08-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Rename reflect_dom_object2.Josh Matthews2023-05-311-2/+2
|
* Formatting.Josh Matthews2023-05-281-3/+15
|
* Support arbitrary protos when wrapping DOM objects with constructors.Josh Matthews2023-05-281-3/+9
|
* Make GlobalScope.get_cx a static method.Josh Matthews2023-05-201-1/+1
|
* Bump euclid to 0.22Martin Robinson2023-01-261-2/+2
| | | | | | | | | | | | | - Also updates raqote to latest with an upgrade of font-kit to 0.11 applied on as a patch - Update lyon_geom to the latest version Major change: - All matrices are now stored in row major order. This means that parameters to rotation functions no longer should be negated. - `post_...()` functions are now named `then()`. `pre_transform()` is removed, so `then()` is used and the order of operations changed.
* Remove WebVRAlan Jeffrey2020-04-081-1/+1
|
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-6/+1
|
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-0/+1
|
* Modify *::get_cx methods to return a safe JSContext instead of a raw onemarmeladema2019-07-241-2/+1
|
* Convert CGTraitInterface to use safe JSContext instead of raw JSContextmarmeladema2019-07-241-3/+4
|
* Update euclid.Emilio Cobos Álvarez2019-07-231-5/+5
| | | | | | | | There are a few canvas2d-related dependencies that haven't updated, but they only use euclid internally so that's not blocking landing the rest of the changes. Given the size of this patch, I think it's useful to get this landed as-is.
* Error on invalid rotation values in XRRigidTransform constructorManish Goregaokar2019-07-111-0/+6
|
* Hook webxr data into XRFrame/XRView/XRSpaceManish Goregaokar2019-07-111-19/+23
|
* Auto merge of #23292 - Manishearth:input, r=asajeffreybors-servo2019-05-071-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | Add support for XRInputSource and target ray spaces Untested, but compiles. r? @jdm or @asajeffrey <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23292) <!-- Reviewable:end -->
| * Fix orientation getter in XRRigidTransformManish Goregaokar2019-05-071-1/+1
| |
* | Remove mozjs dep from malloc_size_of.Josh Matthews2019-05-021-0/+1
|/
* Set transform.inverse.inverse == transformManish Goregaokar2019-04-051-2/+5
| | | | https://github.com/immersive-web/webxr/issues/576
* Add XRRigidTransform.matrixManish Goregaokar2019-04-031-0/+17
|
* Add XRView.transformManish Goregaokar2019-04-031-3/+2
|
* XRRigidTransform.inverse is now a lazy attributeManish Goregaokar2019-04-031-1/+5
|
* Consistently use GlobalScope in XR codeManish Goregaokar2019-04-031-5/+8
|
* Switch XRSpace code to using rigid transformsManish Goregaokar2019-04-031-7/+4
|
* Validate the position passed to XRRigidTransformManish Goregaokar2019-04-031-1/+8
| | | | Added in https://github.com/immersive-web/webxr/pull/568
* Make XRRigidTransform.position/orientation lazy, default to using euclid thingsManish Goregaokar2019-04-031-59/+28
|
* Move XRRigidTransform to using RigidTransform3DManish Goregaokar2019-04-031-36/+19
|
* Add XRRigidTransform::InverseManish Goregaokar2019-03-261-1/+38
|
* Precompute XRRigidTransform's matricesManish Goregaokar2019-03-261-13/+19
|
* Add XRSpace::get_viewer_pose()Manish Goregaokar2019-03-251-0/+21
|
* Add originOffset to XRReferenceSpaceManish Goregaokar2019-03-181-0/+12
|
* Add XRRigidTransform attributesManish Goregaokar2019-03-181-0/+12
|
* Add XRRigidTransform constructorManish Goregaokar2019-03-181-5/+32
|
* Silence unused warningsManish Goregaokar2019-01-031-0/+1
|
* Basic XRRigidTransform interfaceManish Goregaokar2018-12-191-0/+30