mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Make use of the list of Atoms in ClassSelector
Make use of the list of Atoms in the class attribute selector (ClassSelector) in selector_matching. Fixes #3111
This commit is contained in:
parent
a18633b163
commit
81a0d065f1
8 changed files with 71 additions and 5 deletions
|
@ -417,6 +417,12 @@ impl<'le> TElement for LayoutElement<'le> {
|
|||
self.element.node.get_enabled_state_for_layout()
|
||||
}
|
||||
}
|
||||
|
||||
fn has_class(&self, name: &str) -> bool {
|
||||
unsafe {
|
||||
self.element.has_class_for_layout(name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn get_content(content_list: &content::T) -> String {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue