mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Remove the 'static lifetime parameters from TElement methods
This improves the static correctness of layout's use of DOM nodes. Fixes #2595.
This commit is contained in:
parent
bf025e9b9b
commit
b2a3519011
4 changed files with 18 additions and 18 deletions
|
@ -24,10 +24,10 @@ pub trait TNode<'a, E: TElement<'a>> : Clone {
|
|||
}
|
||||
|
||||
pub trait TElement<'a> {
|
||||
fn get_attr(&self, namespace: &Namespace, attr: &str) -> Option<&'static str>;
|
||||
fn get_link(&self) -> Option<&'static str>;
|
||||
fn get_local_name<'a>(&'a self) -> &'a Atom;
|
||||
fn get_namespace<'a>(&'a self) -> &'a Namespace;
|
||||
fn get_attr(&self, namespace: &Namespace, attr: &str) -> Option<&'a str>;
|
||||
fn get_link(&self) -> Option<&'a str>;
|
||||
fn get_local_name<'b>(&'b self) -> &'b Atom;
|
||||
fn get_namespace<'b>(&'b self) -> &'b Namespace;
|
||||
fn get_hover_state(&self) -> bool;
|
||||
fn get_id(&self) -> Option<Atom>;
|
||||
fn get_disabled_state(&self) -> bool;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue