stylo: Implement ServoStyleRule::SelectorMatchesElement

This commit is contained in:
Fernando Jiménez Moreno 2017-07-04 13:13:48 +02:00
parent f380d1cfc1
commit fc8d0eeae0
3 changed files with 57 additions and 0 deletions

View file

@ -2144,6 +2144,16 @@ extern "C" {
pub fn Servo_StyleRule_GetSelectorCount(rule: RawServoStyleRuleBorrowed,
count: *mut u32);
}
extern "C" {
pub fn Servo_StyleRule_SelectorMatchesElement(arg1:
RawServoStyleRuleBorrowed,
arg2:
RawGeckoElementBorrowed,
index: u32,
pseudo_type:
CSSPseudoElementType)
-> bool;
}
extern "C" {
pub fn Servo_ImportRule_GetHref(rule: RawServoImportRuleBorrowed,
result: *mut nsAString);