From 27056eb93a3f83abbbc84e0b2f1df034d3e8f99e Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Wed, 22 Nov 2023 23:52:25 +0100 Subject: [PATCH] Further changes required by Servo --- components/style/dom_apis.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/style/dom_apis.rs b/components/style/dom_apis.rs index 41c4807616b..da5dc387f73 100644 --- a/components/style/dom_apis.rs +++ b/components/style/dom_apis.rs @@ -355,7 +355,7 @@ fn collect_elements_with_id( } } -fn has_attr(element: E, local_name: &AtomIdent) -> bool +fn has_attr(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) -> Option<&AtomIdent> { +fn get_attr_name(component: &Component) -> 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), }