mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Further changes required by Servo
This commit is contained in:
parent
1ada5e9605
commit
27056eb93a
1 changed files with 3 additions and 3 deletions
|
@ -355,7 +355,7 @@ fn collect_elements_with_id<E, Q, F>(
|
|||
}
|
||||
}
|
||||
|
||||
fn has_attr<E>(element: E, local_name: &AtomIdent) -> bool
|
||||
fn has_attr<E>(element: E, local_name: &crate::LocalName) -> bool
|
||||
where
|
||||
E: TElement,
|
||||
{
|
||||
|
@ -383,7 +383,7 @@ where
|
|||
element.local_name() == &**chosen_name
|
||||
}
|
||||
|
||||
fn get_attr_name(component: &Component<SelectorImpl>) -> Option<&AtomIdent> {
|
||||
fn get_attr_name(component: &Component<SelectorImpl>) -> Option<&crate::LocalName> {
|
||||
let (name, name_lower) = match component {
|
||||
Component::AttributeInNoNamespace { ref local_name, .. } => return Some(local_name),
|
||||
Component::AttributeInNoNamespaceExists {
|
||||
|
@ -467,7 +467,7 @@ where
|
|||
|
||||
enum SimpleFilter<'a> {
|
||||
Class(&'a AtomIdent),
|
||||
Attr(&'a AtomIdent),
|
||||
Attr(&'a crate::LocalName),
|
||||
LocalName(&'a LocalName<SelectorImpl>),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue