Support pseudo-element properly in HasAuthorSpecifiedRules.

This commit is contained in:
Xidorn Quan 2017-10-11 10:29:32 +11:00
parent be5839fae6
commit 0c40ae70ed
3 changed files with 28 additions and 19 deletions

View file

@ -2944,7 +2944,9 @@ extern "C" {
primary_style: ServoStyleContextBorrowed);
}
extern "C" {
pub fn Servo_HasAuthorSpecifiedRules(element: RawGeckoElementBorrowed,
pub fn Servo_HasAuthorSpecifiedRules(style: ServoStyleContextBorrowed,
element: RawGeckoElementBorrowed,
pseudo_type: CSSPseudoElementType,
rule_type_mask: u32,
author_colors_allowed: bool) -> bool;
}