aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko/generated/bindings.rs
diff options
context:
space:
mode:
authorXidorn Quan <me@upsuper.org>2018-04-05 08:43:55 +1000
committerXidorn Quan <me@upsuper.org>2018-04-05 09:33:45 +1000
commit80ab893e3aa8eec0d3fbaa03f6ac3c8f70e7f35f (patch)
treedac6db9b8acd3c2a984334c456216182c3c10df0 /components/style/gecko/generated/bindings.rs
parent32cd0b4ea043c8b50867abff709dcdccb5d426b0 (diff)
downloadservo-80ab893e3aa8eec0d3fbaa03f6ac3c8f70e7f35f.tar.gz
servo-80ab893e3aa8eec0d3fbaa03f6ac3c8f70e7f35f.zip
Use Servo data to back @counter-style rule.
Diffstat (limited to 'components/style/gecko/generated/bindings.rs')
-rw-r--r--components/style/gecko/generated/bindings.rs114
1 files changed, 80 insertions, 34 deletions
diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs
index 53b1c6358b2..82207334ac2 100644
--- a/components/style/gecko/generated/bindings.rs
+++ b/components/style/gecko/generated/bindings.rs
@@ -76,7 +76,6 @@ use gecko_bindings::structs::StyleShapeSource;
use gecko_bindings::structs::StyleTransition;
use gecko_bindings::structs::gfxFontFeatureValueSet;
use gecko_bindings::structs::nsCSSCounterDesc;
-use gecko_bindings::structs::nsCSSCounterStyleRule;
use gecko_bindings::structs::nsCSSFontDesc;
use gecko_bindings::structs::nsCSSKeyword;
use gecko_bindings::structs::nsCSSPropertyID;
@@ -433,6 +432,11 @@ pub struct RawServoRuleNode(RawServoRuleNodeVoid);
pub type RawServoFontFaceRuleStrong = ::gecko_bindings::sugar::ownership::Strong<RawServoFontFaceRule>;
pub type RawServoFontFaceRuleBorrowed<'a> = &'a RawServoFontFaceRule;
pub type RawServoFontFaceRuleBorrowedOrNull<'a> = Option<&'a RawServoFontFaceRule>;
+pub type RawServoCounterStyleRuleStrong = ::gecko_bindings::sugar::ownership::Strong<RawServoCounterStyleRule>;
+pub type RawServoCounterStyleRuleBorrowed<'a> = &'a RawServoCounterStyleRule;
+pub type RawServoCounterStyleRuleBorrowedOrNull<'a> = Option<&'a RawServoCounterStyleRule>;
+enum RawServoCounterStyleRuleVoid { }
+pub struct RawServoCounterStyleRule(RawServoCounterStyleRuleVoid);
extern "C" {
pub fn Gecko_EnsureTArrayCapacity(
@@ -551,6 +555,12 @@ extern "C" {
pub fn Servo_FontFaceRule_Release(ptr: RawServoFontFaceRuleBorrowed);
}
extern "C" {
+ pub fn Servo_CounterStyleRule_AddRef(ptr: RawServoCounterStyleRuleBorrowed);
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_Release(ptr: RawServoCounterStyleRuleBorrowed);
+}
+extern "C" {
pub fn Servo_StyleSet_Drop(ptr: RawServoStyleSetOwned);
}
extern "C" {
@@ -1573,26 +1583,6 @@ extern "C" {
) -> *const ::std::os::raw::c_char;
}
extern "C" {
- pub fn Gecko_CSSCounterStyle_Create(name: *mut nsAtom) -> *mut nsCSSCounterStyleRule;
-}
-extern "C" {
- pub fn Gecko_CSSCounterStyle_Clone(
- rule: *const nsCSSCounterStyleRule,
- ) -> *mut nsCSSCounterStyleRule;
-}
-extern "C" {
- pub fn Gecko_CSSCounterStyle_GetCssText(
- rule: *const nsCSSCounterStyleRule,
- result: *mut nsAString,
- );
-}
-extern "C" {
- pub fn Gecko_CSSCounterStyleRule_AddRef(aPtr: *mut nsCSSCounterStyleRule);
-}
-extern "C" {
- pub fn Gecko_CSSCounterStyleRule_Release(aPtr: *mut nsCSSCounterStyleRule);
-}
-extern "C" {
pub fn Gecko_IsDocumentBody(element: RawGeckoElementBorrowed) -> bool;
}
extern "C" {
@@ -2140,7 +2130,7 @@ extern "C" {
pub fn Servo_StyleSet_GetCounterStyleRule(
set: RawServoStyleSetBorrowed,
name: *mut nsAtom,
- ) -> *mut nsCSSCounterStyleRule;
+ ) -> *const RawServoCounterStyleRule;
}
extern "C" {
pub fn Servo_StyleSet_BuildFontFeatureValueSet(
@@ -2473,7 +2463,21 @@ extern "C" {
pub fn Servo_CssRules_GetCounterStyleRuleAt(
rules: ServoCssRulesBorrowed,
index: u32,
- ) -> *mut nsCSSCounterStyleRule;
+ line: *mut u32,
+ column: *mut u32,
+ ) -> RawServoCounterStyleRuleStrong;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_Debug(
+ rule: RawServoCounterStyleRuleBorrowed,
+ result: *mut nsACString,
+ );
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetCssText(
+ rule: RawServoCounterStyleRuleBorrowed,
+ result: *mut nsAString,
+ );
}
extern "C" {
pub fn Servo_StyleRule_GetStyle(
@@ -2676,6 +2680,56 @@ extern "C" {
);
}
extern "C" {
+ pub fn Servo_CounterStyleRule_GetName(rule: RawServoCounterStyleRuleBorrowed) -> *mut nsAtom;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_SetName(
+ rule: RawServoCounterStyleRuleBorrowed,
+ name: *const nsACString,
+ ) -> bool;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetGeneration(rule: RawServoCounterStyleRuleBorrowed) -> u32;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetSystem(rule: RawServoCounterStyleRuleBorrowed) -> u8;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetExtended(
+ rule: RawServoCounterStyleRuleBorrowed,
+ ) -> *mut nsAtom;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetFixedFirstValue(rule: RawServoCounterStyleRuleBorrowed)
+ -> i32;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetFallback(
+ rule: RawServoCounterStyleRuleBorrowed,
+ ) -> *mut nsAtom;
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetDescriptor(
+ rule: RawServoCounterStyleRuleBorrowed,
+ desc: nsCSSCounterDesc,
+ result: nsCSSValueBorrowedMut,
+ );
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_GetDescriptorCssText(
+ rule: RawServoCounterStyleRuleBorrowed,
+ desc: nsCSSCounterDesc,
+ result: *mut nsAString,
+ );
+}
+extern "C" {
+ pub fn Servo_CounterStyleRule_SetDescriptor(
+ rule: RawServoCounterStyleRuleBorrowed,
+ desc: nsCSSCounterDesc,
+ value: *const nsACString,
+ ) -> bool;
+}
+extern "C" {
pub fn Servo_ParseProperty(
property: nsCSSPropertyID,
value: *const nsACString,
@@ -3318,17 +3372,6 @@ extern "C" {
) -> bool;
}
extern "C" {
- pub fn Servo_ParseCounterStyleName(value: *const nsACString) -> *mut nsAtom;
-}
-extern "C" {
- pub fn Servo_ParseCounterStyleDescriptor(
- aDescriptor: nsCSSCounterDesc,
- aValue: *const nsACString,
- aURLExtraData: *mut RawGeckoURLExtraData,
- aResult: *mut nsCSSValue,
- ) -> bool;
-}
-extern "C" {
pub fn Servo_ParseFontShorthandForMatching(
value: *const nsAString,
data: *mut RawGeckoURLExtraData,
@@ -3342,6 +3385,9 @@ extern "C" {
pub fn Servo_Property_IsShorthand(name: *const nsACString, found: *mut bool) -> bool;
}
extern "C" {
+ pub fn Servo_PseudoClass_GetStates(name: *const nsACString) -> u64;
+}
+extern "C" {
pub fn Gecko_CreateCSSErrorReporter(
sheet: *mut ServoStyleSheet,
loader: *mut Loader,