Bug 1403030 - stylo: Fix some mismatching FFI declarations. r?xidorn draft
authorCameron McCormack <cam@mcc.id.au>
Tue, 26 Sep 2017 09:13:36 +0800
changeset 670181 e5522b48ec4dfa85c0c091ad91724a6e47a22e00
parent 669596 7e962631ba4298bcefa571008661983d77c3e652
child 733165 536a35a14b6dfdf27c650c741715702f1029bea9
push id81552
push userbmo:cam@mcc.id.au
push dateTue, 26 Sep 2017 01:17:38 +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