mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
feat: add can_gc argument to to_frozen_array (#36043)
* feat: add can_gc argument to to_frozen_array Signed-off-by: Arya Nair <aryaajitnair@gmail.com> * fix: linting issues Signed-off-by: Arya Nair <aryaajitnair@gmail.com> * feat: add can_gc in binding.conf Signed-off-by: Arya Nair <aryaajitnair@gmail.com> * fix: linting issues Signed-off-by: Arya Nair <aryaajitnair@gmail.com> --------- Signed-off-by: Arya Nair <aryaajitnair@gmail.com>
This commit is contained in:
parent
0917e080df
commit
cb56ac8561
21 changed files with 97 additions and 43 deletions
|
@ -1006,10 +1006,10 @@ impl XRSessionMethods<crate::DomTypeHolder> for XRSession {
|
|||
}
|
||||
|
||||
/// <https://www.w3.org/TR/webxr/#dom-xrsession-enabledfeatures>
|
||||
fn EnabledFeatures(&self, cx: JSContext, retval: MutableHandleValue) {
|
||||
fn EnabledFeatures(&self, cx: JSContext, can_gc: CanGc, retval: MutableHandleValue) {
|
||||
let session = self.session.borrow();
|
||||
let features = session.granted_features();
|
||||
to_frozen_array(features, cx, retval)
|
||||
to_frozen_array(features, cx, retval, can_gc)
|
||||
}
|
||||
|
||||
/// <https://www.w3.org/TR/webxr/#dom-xrsession-issystemkeyboardsupported>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue