Bug 1403030 - stylo: Fix some mismatching FFI declarations. r?xidorn
MozReview-Commit-ID: C5iBTR0OZKy
--- 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