mirror of
https://github.com/servo/servo.git
synced 2025-08-17 19:35:33 +01:00
Implement MediaList for Stylo.
This commit is contained in:
parent
2175785ca6
commit
52c9f4b527
4 changed files with 121 additions and 4 deletions
|
@ -1627,6 +1627,34 @@ extern "C" {
|
|||
pub fn Servo_DeclarationBlock_SetTextDecorationColorOverride(declarations:
|
||||
RawServoDeclarationBlockBorrowed);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_MediaList_GetText(list: RawServoMediaListBorrowed,
|
||||
result: *mut nsAString_internal);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_MediaList_SetText(list: RawServoMediaListBorrowed,
|
||||
text: *const nsACString_internal);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_MediaList_GetLength(list: RawServoMediaListBorrowed) -> u32;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_MediaList_GetMediumAt(list: RawServoMediaListBorrowed,
|
||||
index: u32,
|
||||
result: *mut nsAString_internal)
|
||||
-> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_MediaList_AppendMedium(list: RawServoMediaListBorrowed,
|
||||
new_medium:
|
||||
*const nsACString_internal);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_MediaList_DeleteMedium(list: RawServoMediaListBorrowed,
|
||||
old_medium:
|
||||
*const nsACString_internal)
|
||||
-> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_CSSSupports2(name: *const nsACString_internal,
|
||||
value: *const nsACString_internal) -> bool;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue