mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
stylo: Implement GetSpecificity for ServoStyleRule
This commit is contained in:
parent
87140641a4
commit
2cc940384d
3 changed files with 39 additions and 26 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue