mirror of
https://github.com/servo/servo.git
synced 2025-09-04 20:18:21 +01:00
style: Record names that appear in attribute selectors.
This commit is contained in:
parent
48fdda3f07
commit
5cf915118e
2 changed files with 74 additions and 1 deletions
|
@ -2331,3 +2331,10 @@ pub extern "C" fn Servo_StyleSet_ResolveForDeclarations(raw_data: RawServoStyleS
|
|||
parent_style,
|
||||
declarations.clone()).into_strong()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn Servo_StyleSet_MightHaveAttributeDependency(raw_data: RawServoStyleSetBorrowed,
|
||||
local_name: *mut nsIAtom) -> bool {
|
||||
let data = PerDocumentStyleData::from_ffi(raw_data).borrow();
|
||||
unsafe { Atom::with(local_name, &mut |atom| data.stylist.might_have_attribute_dependency(atom)) }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue