Bug 1403030 - stylo: Fix some mismatching FFI declarations. r=xidorn
authorCameron McCormack <cam@mcc.id.au>
Tue, 26 Sep 2017 09:13:36 +0800
changeset 670388 bf266c3319e88fce40f00d13921c5dd6358331b6
parent 670387 82a3a8ca311e5a814537c75eaf093a38f975f420
child 670389 6be6a2554828bdcff82092ae8de1e2426b6e9632
push id81613
push userbmo:nchevobbe@mozilla.com
push dateTue, 26 Sep 2017 10:17:11 +0000
reviewersxidorn
bugs1403030
milestone58.0a1
Bug 1403030 - stylo: Fix some mismatching FFI declarations. r=xidorn MozReview-Commit-ID: C5iBTR0OZKy
layout/style/ServoBindingList.h
--- a/layout/style/ServoBindingList.h
+++ b/layout/style/ServoBindingList.h
@@ -661,20 +661,20 @@ SERVO_BINDING_FUNC(Servo_ProcessInvalida
                    RawGeckoElementBorrowed element,
                    const mozilla::ServoElementSnapshotTable* snapshots)
 
 
 SERVO_BINDING_FUNC(Servo_HasPendingRestyleAncestor, bool,
                    RawGeckoElementBorrowed element)
 
 SERVO_BINDING_FUNC(Servo_GetArcStringData, void,
-                   RustString*, uint8_t** chars, uint32_t* len);
+                   const RustString*, uint8_t** chars, uint32_t* len);
 SERVO_BINDING_FUNC(Servo_ReleaseArcStringData, void,
-                   mozilla::ServoRawOffsetArc<RustString>* string);
+                   const mozilla::ServoRawOffsetArc<RustString>* string);
 SERVO_BINDING_FUNC(Servo_CloneArcStringData, mozilla::ServoRawOffsetArc<RustString>,
-                   mozilla::ServoRawOffsetArc<RustString>* string);
+                   const mozilla::ServoRawOffsetArc<RustString>* string);
 
 // AddRef / Release functions
 #define SERVO_ARC_TYPE(name_, type_)                                \
   SERVO_BINDING_FUNC(Servo_##name_##_AddRef, void, type_##Borrowed) \
   SERVO_BINDING_FUNC(Servo_##name_##_Release, void, type_##Borrowed)
 #include "mozilla/ServoArcTypeList.h"
 #undef SERVO_ARC_TYPE