aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-10-13 17:15:01 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-10-14 00:44:07 +0530
commit17a46418dc3f313d3ceed8bd2bc46f42ade58eb9 (patch)
tree6ce2d28f8e0063c6db1e55227f687f77d72ba989 /components
parent2bde9462b1d5ca98f2da8b05dad5d377ab93e7ed (diff)
downloadservo-17a46418dc3f313d3ceed8bd2bc46f42ade58eb9.tar.gz
servo-17a46418dc3f313d3ceed8bd2bc46f42ade58eb9.zip
Add bindings for constructing nsStyleQuoteValues
MozReview-Commit-ID: EjuzgZKMpPp
Diffstat (limited to 'components')
-rwxr-xr-xcomponents/style/binding_tools/regen.py2
-rw-r--r--components/style/gecko_bindings/bindings.rs14
2 files changed, 15 insertions, 1 deletions
diff --git a/components/style/binding_tools/regen.py b/components/style/binding_tools/regen.py
index d179cc879f4..792b24e9656 100755
--- a/components/style/binding_tools/regen.py
+++ b/components/style/binding_tools/regen.py
@@ -228,7 +228,7 @@ COMPILATION_TARGETS = {
"StyleBasicShapeType", "StyleBasicShape", "nsCSSShadowArray",
"nsIPrincipal", "nsIURI",
"RawGeckoNode", "RawGeckoElement", "RawGeckoDocument",
- "nsString"
+ "nsString", "nsStyleQuoteValues"
],
"servo_nullable_arc_types": [
"ServoComputedValues", "RawServoStyleSheet",
diff --git a/components/style/gecko_bindings/bindings.rs b/components/style/gecko_bindings/bindings.rs
index a7efe16be71..4def95850e1 100644
--- a/components/style/gecko_bindings/bindings.rs
+++ b/components/style/gecko_bindings/bindings.rs
@@ -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,
@@ -544,6 +547,17 @@ extern "C" {
*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);
}
extern "C" {