mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Auto merge of #16944 - upsuper:bug1345697, r=heycam
Implement access to CSSKeyframesRule and CSSKeyframeRule for stylo This is the Servo side change for [bug 1345697](https://bugzilla.mozilla.org/show_bug.cgi?id=1345697). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16944) <!-- Reviewable:end -->
This commit is contained in:
commit
eda64309f5
6 changed files with 284 additions and 36 deletions
|
@ -229,6 +229,16 @@ pub struct RawServoImportRule(RawServoImportRuleVoid);
|
|||
pub type RawServoAnimationValueStrong = ::gecko_bindings::sugar::ownership::Strong<RawServoAnimationValue>;
|
||||
pub type RawServoAnimationValueBorrowed<'a> = &'a RawServoAnimationValue;
|
||||
pub type RawServoAnimationValueBorrowedOrNull<'a> = Option<&'a RawServoAnimationValue>;
|
||||
pub type RawServoKeyframeStrong = ::gecko_bindings::sugar::ownership::Strong<RawServoKeyframe>;
|
||||
pub type RawServoKeyframeBorrowed<'a> = &'a RawServoKeyframe;
|
||||
pub type RawServoKeyframeBorrowedOrNull<'a> = Option<&'a RawServoKeyframe>;
|
||||
enum RawServoKeyframeVoid { }
|
||||
pub struct RawServoKeyframe(RawServoKeyframeVoid);
|
||||
pub type RawServoKeyframesRuleStrong = ::gecko_bindings::sugar::ownership::Strong<RawServoKeyframesRule>;
|
||||
pub type RawServoKeyframesRuleBorrowed<'a> = &'a RawServoKeyframesRule;
|
||||
pub type RawServoKeyframesRuleBorrowedOrNull<'a> = Option<&'a RawServoKeyframesRule>;
|
||||
enum RawServoKeyframesRuleVoid { }
|
||||
pub struct RawServoKeyframesRule(RawServoKeyframesRuleVoid);
|
||||
pub type RawServoMediaListStrong = ::gecko_bindings::sugar::ownership::Strong<RawServoMediaList>;
|
||||
pub type RawServoMediaListBorrowed<'a> = &'a RawServoMediaList;
|
||||
pub type RawServoMediaListBorrowedOrNull<'a> = Option<&'a RawServoMediaList>;
|
||||
|
@ -395,6 +405,18 @@ extern "C" {
|
|||
extern "C" {
|
||||
pub fn Servo_AnimationValue_Release(ptr: RawServoAnimationValueBorrowed);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_Keyframe_AddRef(ptr: RawServoKeyframeBorrowed);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_Keyframe_Release(ptr: RawServoKeyframeBorrowed);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_KeyframesRule_AddRef(ptr: RawServoKeyframesRuleBorrowed);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_KeyframesRule_Release(ptr: RawServoKeyframesRuleBorrowed);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_MediaList_AddRef(ptr: RawServoMediaListBorrowed);
|
||||
}
|
||||
|
@ -1804,6 +1826,28 @@ extern "C" {
|
|||
pub fn Servo_StyleRule_GetCssText(rule: RawServoStyleRuleBorrowed,
|
||||
result: *mut nsAString);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_Keyframe_Debug(rule: RawServoKeyframeBorrowed,
|
||||
result: *mut nsACString);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_Keyframe_GetCssText(rule: RawServoKeyframeBorrowed,
|
||||
result: *mut nsAString);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_CssRules_GetKeyframesRuleAt(rules: ServoCssRulesBorrowed,
|
||||
index: u32, line: *mut u32,
|
||||
column: *mut u32)
|
||||
-> RawServoKeyframesRuleStrong;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_KeyframesRule_Debug(rule: RawServoKeyframesRuleBorrowed,
|
||||
result: *mut nsACString);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_KeyframesRule_GetCssText(rule: RawServoKeyframesRuleBorrowed,
|
||||
result: *mut nsAString);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_CssRules_GetMediaRuleAt(rules: ServoCssRulesBorrowed,
|
||||
index: u32, line: *mut u32,
|
||||
|
@ -1909,6 +1953,54 @@ extern "C" {
|
|||
pub fn Servo_StyleRule_GetSelectorText(rule: RawServoStyleRuleBorrowed,
|
||||
result: *mut nsAString);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_Keyframe_GetKeyText(keyframe: RawServoKeyframeBorrowed,
|
||||
result: *mut nsAString);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_Keyframe_SetKeyText(keyframe: RawServoKeyframeBorrowed,
|
||||
text: *const nsACString) -> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_Keyframe_GetStyle(keyframe: RawServoKeyframeBorrowed)
|
||||
-> RawServoDeclarationBlockStrong;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_Keyframe_SetStyle(keyframe: RawServoKeyframeBorrowed,
|
||||
declarations:
|
||||
RawServoDeclarationBlockBorrowed);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_KeyframesRule_GetName(rule: RawServoKeyframesRuleBorrowed)
|
||||
-> *mut nsIAtom;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_KeyframesRule_SetName(rule: RawServoKeyframesRuleBorrowed,
|
||||
name: *mut nsIAtom);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_KeyframesRule_GetCount(rule: RawServoKeyframesRuleBorrowed)
|
||||
-> u32;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_KeyframesRule_GetKeyframe(rule:
|
||||
RawServoKeyframesRuleBorrowed,
|
||||
index: u32)
|
||||
-> RawServoKeyframeStrong;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_KeyframesRule_FindRule(rule: RawServoKeyframesRuleBorrowed,
|
||||
key: *const nsACString) -> u32;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_KeyframesRule_AppendRule(rule: RawServoKeyframesRuleBorrowed,
|
||||
sheet: RawServoStyleSheetBorrowed,
|
||||
css: *const nsACString) -> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_KeyframesRule_DeleteRule(rule: RawServoKeyframesRuleBorrowed,
|
||||
index: u32);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_MediaRule_GetMedia(rule: RawServoMediaRuleBorrowed)
|
||||
-> RawServoMediaListStrong;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue