Add bindings for constructing nsStyleQuoteValues

MozReview-Commit-ID: EjuzgZKMpPp
This commit is contained in:
Manish Goregaokar 2016-10-13 17:15:01 +05:30
parent 2bde9462b1
commit 17a46418dc
2 changed files with 15 additions and 1 deletions

View file

@ -228,7 +228,7 @@ COMPILATION_TARGETS = {
"StyleBasicShapeType", "StyleBasicShape", "nsCSSShadowArray",
"nsIPrincipal", "nsIURI",
"RawGeckoNode", "RawGeckoElement", "RawGeckoDocument",
"nsString"
"nsString", "nsStyleQuoteValues"
],
"servo_nullable_arc_types": [
"ServoComputedValues", "RawServoStyleSheet",

View file

@ -164,6 +164,9 @@ use gecko_bindings::structs::RawGeckoNode;
use gecko_bindings::structs::RawGeckoElement;
use gecko_bindings::structs::RawGeckoDocument;
use gecko_bindings::structs::nsString;
use gecko_bindings::structs::nsStyleQuoteValues;
unsafe impl Send for nsStyleQuoteValues {}
unsafe impl Sync for nsStyleQuoteValues {}
extern "C" {
pub fn Gecko_EnsureTArrayCapacity(aArray: *mut ::std::os::raw::c_void,
@ -543,6 +546,17 @@ extern "C" {
pub fn Gecko_ReleaseCSSShadowArrayArbitraryThread(aPtr:
*mut nsCSSShadowArray);
}
extern "C" {
pub fn Gecko_NewStyleQuoteValues(len: u32) -> *mut nsStyleQuoteValues;
}
extern "C" {
pub fn Gecko_AddRefQuoteValuesArbitraryThread(aPtr:
*mut nsStyleQuoteValues);
}
extern "C" {
pub fn Gecko_ReleaseQuoteValuesArbitraryThread(aPtr:
*mut nsStyleQuoteValues);
}
extern "C" {
pub fn Gecko_Construct_nsStyleFont(ptr: *mut nsStyleFont);
}