diff --git a/components/style/gecko_bindings/bindings.rs b/components/style/gecko_bindings/bindings.rs index f0cbccc54dc..65950283385 100644 --- a/components/style/gecko_bindings/bindings.rs +++ b/components/style/gecko_bindings/bindings.rs @@ -244,6 +244,11 @@ pub type RawServoPageRuleBorrowed<'a> = &'a RawServoPageRule; pub type RawServoPageRuleBorrowedOrNull<'a> = Option<&'a RawServoPageRule>; enum RawServoPageRuleVoid { } pub struct RawServoPageRule(RawServoPageRuleVoid); +pub type RawServoSupportsRuleStrong = ::gecko_bindings::sugar::ownership::Strong; +pub type RawServoSupportsRuleBorrowed<'a> = &'a RawServoSupportsRule; +pub type RawServoSupportsRuleBorrowedOrNull<'a> = Option<&'a RawServoSupportsRule>; +enum RawServoSupportsRuleVoid { } +pub struct RawServoSupportsRule(RawServoSupportsRuleVoid); pub type RawServoStyleSetOwned = ::gecko_bindings::sugar::ownership::Owned; pub type RawServoStyleSetOwnedOrNull = ::gecko_bindings::sugar::ownership::OwnedOrNull; pub type RawServoStyleSetBorrowed<'a> = &'a RawServoStyleSet; @@ -399,6 +404,12 @@ extern "C" { extern "C" { pub fn Servo_PageRule_Release(ptr: RawServoPageRuleBorrowed); } +extern "C" { + pub fn Servo_SupportsRule_AddRef(ptr: RawServoSupportsRuleBorrowed); +} +extern "C" { + pub fn Servo_SupportsRule_Release(ptr: RawServoSupportsRuleBorrowed); +} extern "C" { pub fn Servo_StyleSet_Drop(ptr: RawServoStyleSetOwned); } @@ -1665,6 +1676,10 @@ extern "C" { pub fn Servo_MediaRule_GetCssText(rule: RawServoMediaRuleBorrowed, result: *mut nsAString); } +extern "C" { + pub fn Servo_MediaRule_GetRules(rule: RawServoMediaRuleBorrowed) + -> ServoCssRulesStrong; +} extern "C" { pub fn Servo_CssRules_GetNamespaceRuleAt(rules: ServoCssRulesBorrowed, index: u32) @@ -1690,6 +1705,23 @@ extern "C" { pub fn Servo_PageRule_GetCssText(rule: RawServoPageRuleBorrowed, result: *mut nsAString); } +extern "C" { + pub fn Servo_CssRules_GetSupportsRuleAt(rules: ServoCssRulesBorrowed, + index: u32) + -> RawServoSupportsRuleStrong; +} +extern "C" { + pub fn Servo_SupportsRule_Debug(rule: RawServoSupportsRuleBorrowed, + result: *mut nsACString); +} +extern "C" { + pub fn Servo_SupportsRule_GetCssText(rule: RawServoSupportsRuleBorrowed, + result: *mut nsAString); +} +extern "C" { + pub fn Servo_SupportsRule_GetRules(rule: RawServoSupportsRuleBorrowed) + -> ServoCssRulesStrong; +} extern "C" { pub fn Servo_CssRules_GetFontFaceRuleAt(rules: ServoCssRulesBorrowed, index: u32) @@ -1712,10 +1744,6 @@ extern "C" { pub fn Servo_MediaRule_GetMedia(rule: RawServoMediaRuleBorrowed) -> RawServoMediaListStrong; } -extern "C" { - pub fn Servo_MediaRule_GetRules(rule: RawServoMediaRuleBorrowed) - -> ServoCssRulesStrong; -} extern "C" { pub fn Servo_NamespaceRule_GetPrefix(rule: RawServoNamespaceRuleBorrowed) -> *mut nsIAtom; @@ -1733,6 +1761,11 @@ extern "C" { declarations: RawServoDeclarationBlockBorrowed); } +extern "C" { + pub fn Servo_SupportsRule_GetConditionText(rule: + RawServoSupportsRuleBorrowed, + result: *mut nsAString); +} extern "C" { pub fn Servo_ParseProperty(property: nsCSSPropertyID, value: *const nsACString,