stylo: implement indexed and count getters for custom properties

This commit is contained in:
Fernando Jiménez Moreno 2017-06-28 12:27:29 -07:00
parent 71f1f4b508
commit 93f0de7899
4 changed files with 135 additions and 31 deletions

View file

@ -2709,6 +2709,22 @@ extern "C" {
RawServoDeclarationBlockBorrowed,
buffer: *mut nsAString);
}
extern "C" {
pub fn Servo_GetCustomPropertyValue(computed_values:
ServoComputedValuesBorrowed,
name: *const nsAString,
value: *mut nsAString) -> bool;
}
extern "C" {
pub fn Servo_GetCustomPropertiesCount(computed_values:
ServoComputedValuesBorrowed)
-> u32;
}
extern "C" {
pub fn Servo_GetCustomPropertyNameAt(arg1: ServoComputedValuesBorrowed,
index: u32, name: *mut nsAString)
-> bool;
}
extern "C" {
pub fn Servo_GetStyleFont(computed_values:
ServoComputedValuesBorrowedOrNull)