@@ -48,7 +48,7 @@ pub struct ProxyTraps {
4848 pub ownPropertyKeys : :: std:: option:: Option < unsafe extern "C" fn
4949 ( cx : * mut JSContext ,
5050 proxy : HandleObject ,
51- props : * mut AutoIdVector )
51+ props : MutableHandleIdVector )
5252 -> bool > ,
5353 pub delete_ : :: std:: option:: Option < unsafe extern "C" fn
5454 ( cx : * mut JSContext ,
@@ -58,7 +58,7 @@ pub struct ProxyTraps {
5858 pub enumerate : :: std:: option:: Option < unsafe extern "C" fn
5959 ( cx : * mut JSContext ,
6060 proxy : HandleObject ,
61- props : * mut AutoIdVector )
61+ props : MutableHandleIdVector )
6262 -> bool > ,
6363 pub getPrototypeIfOrdinary : :: std:: option:: Option < unsafe extern "C" fn
6464 ( cx : * mut JSContext ,
@@ -109,7 +109,7 @@ pub struct ProxyTraps {
109109 proxy :
110110 HandleObject ,
111111 props :
112- * mut AutoIdVector )
112+ MutableHandleIdVector )
113113 -> bool > ,
114114 pub nativeCall : :: std:: option:: Option < unsafe extern "C" fn
115115 ( cx : * mut JSContext ,
@@ -211,16 +211,6 @@ extern "C" {
211211 -> * const :: libc:: c_void ;
212212 pub fn CreateWrapperProxyHandler ( aTraps : * const ProxyTraps )
213213 -> * const :: libc:: c_void ;
214- pub fn CreateRustJSPrincipal ( origin : * const :: libc:: c_void ,
215- destroy : Option < unsafe extern "C" fn
216- ( principal : * mut JSPrincipals ) > ,
217- write : Option < unsafe extern "C" fn
218- ( cx : * mut JSContext ,
219- writer : * mut JSStructuredCloneWriter )
220- -> bool > )
221- -> * mut JSPrincipals ;
222- pub fn GetPrincipalOrigin ( principal : * const JSPrincipals )
223- -> * const :: libc:: c_void ;
224214 pub fn GetCrossCompartmentWrapper ( ) -> * const :: libc:: c_void ;
225215 pub fn GetSecurityWrapper ( ) -> * const :: libc:: c_void ;
226216 pub fn NewCompileOptions ( aCx : * mut JSContext , aFile : * const :: libc:: c_char ,
@@ -240,7 +230,7 @@ extern "C" {
240230 pub fn NewWindowProxy ( aCx : * mut JSContext , aObj : HandleObject ,
241231 aHandler : * const :: libc:: c_void )
242232 -> * mut JSObject ;
243- pub fn GetWindowProxyClass ( ) -> * const Class ;
233+ pub fn GetWindowProxyClass ( ) -> * const JSClass ;
244234 pub fn GetProxyReservedSlot ( obj : * mut JSObject , slot : u32 , dest : * mut JS :: Value ) ;
245235 pub fn GetProxyPrivate ( obj : * mut JSObject , dest : * mut JS :: Value ) ;
246236 pub fn SetProxyReservedSlot ( obj : * mut JSObject , slot : u32 , val : * const JS :: Value ) ;
@@ -269,15 +259,17 @@ extern "C" {
269259 pub fn UnwrapObjectStatic ( obj : * mut JSObject ) -> * mut JSObject ;
270260 pub fn UnwrapObjectDynamic ( obj : * mut JSObject , cx : * mut JSContext , stopAtOuter : u8 ) -> * mut JSObject ;
271261 pub fn UncheckedUnwrapObject ( obj : * mut JSObject , stopAtOuter : u8 ) -> * mut JSObject ;
272- pub fn CreateAutoIdVector ( cx : * mut JSContext ) -> * mut AutoIdVector ;
273- pub fn AppendToAutoIdVector ( v : * mut AutoIdVector , id : HandleId ) -> bool ;
274- pub fn SliceAutoIdVector ( v : * const AutoIdVector , length : * mut usize ) -> * const jsid ;
275- pub fn DestroyAutoIdVector ( v : * mut AutoIdVector ) ;
276- pub fn CreateAutoObjectVector ( aCx : * mut JSContext )
277- -> * mut AutoObjectVector ;
278- pub fn AppendToAutoObjectVector ( v : * mut AutoObjectVector ,
262+ pub fn CreateRootedIdVector ( cx : * mut JSContext ) -> * mut PersistentRootedIdVector ;
263+ pub fn GetIdVectorAddress ( v : * mut PersistentRootedIdVector ) -> * mut :: libc:: c_void ;
264+ pub fn SliceRootedIdVector ( v : * const PersistentRootedIdVector , length : * mut usize ) -> * const jsid ;
265+ pub fn AppendToIdVector ( v : MutableHandleIdVector , id : HandleId ) -> bool ;
266+ pub fn DestroyRootedIdVector ( v : * mut PersistentRootedIdVector ) ;
267+ pub fn CreateRootedObjectVector ( aCx : * mut JSContext )
268+ -> * mut PersistentRootedObjectVector ;
269+ pub fn AppendToRootedObjectVector ( v : * mut PersistentRootedObjectVector ,
279270 obj : * mut JSObject ) -> bool ;
280- pub fn DeleteAutoObjectVector ( v : * mut AutoObjectVector ) ;
271+ pub fn GetObjectVectorAddress ( v : * mut PersistentRootedObjectVector ) -> * mut :: libc:: c_void ;
272+ pub fn DeleteRootedObjectVector ( v : * mut PersistentRootedObjectVector ) ;
281273 pub fn CollectServoSizes ( cx : * mut JSContext , sizes : * mut ServoSizes , get_size : Option < unsafe extern "C" fn ( obj : * mut JSObject ) -> usize > ) -> bool ;
282274 pub fn InitializeMemoryReporter ( want_to_measure : Option < unsafe extern "C" fn ( obj : * mut JSObject ) -> bool > ) ;
283275 pub fn CallIdTracer ( trc : * mut JSTracer , idp : * mut Heap < jsid > ,
0 commit comments