stylo: Implement GetSpecificity for ServoStyleRule

This commit is contained in:
Fernando Jiménez Moreno 2017-06-10 12:41:46 +02:00
parent 87140641a4
commit 2cc940384d
3 changed files with 39 additions and 26 deletions

View file

@ -2112,11 +2112,17 @@ extern "C" {
result: *mut nsAString);
}
extern "C" {
pub fn Servo_StyleRule_GetSelectorTextFromIndex(rule:
pub fn Servo_StyleRule_GetSelectorTextAtIndex(rule:
RawServoStyleRuleBorrowed,
index: u32,
result: *mut nsAString);
}
extern "C" {
pub fn Servo_StyleRule_GetSpecificityAtIndex(rule:
RawServoStyleRuleBorrowed,
index: u32,
specificity: *mut u64);
}
extern "C" {
pub fn Servo_StyleRule_GetSelectorCount(rule: RawServoStyleRuleBorrowed,
count: *mut u32);