mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
style: Do not use borrowed types in the selectors::Element trait.
Closes #22972 Closes #23463
This commit is contained in:
parent
2e5078e9c5
commit
6f1df517e0
8 changed files with 100 additions and 42 deletions
|
@ -882,6 +882,13 @@ pub trait TElement:
|
|||
hints: &mut V,
|
||||
) where
|
||||
V: Push<ApplicableDeclarationBlock>;
|
||||
|
||||
/// Returns element's local name.
|
||||
fn local_name(&self) -> &<SelectorImpl as selectors::parser::SelectorImpl>::BorrowedLocalName;
|
||||
|
||||
/// Returns element's namespace.
|
||||
fn namespace(&self)
|
||||
-> &<SelectorImpl as selectors::parser::SelectorImpl>::BorrowedNamespaceUrl;
|
||||
}
|
||||
|
||||
/// TNode and TElement aren't Send because we want to be careful and explicit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue