mirror of
https://github.com/servo/servo.git
synced 2025-07-29 18:20:24 +01:00
Add an extra lifetime parameter to TElement / TNode
This isn't used for anything yet, but it's easier to propagate this change in a separate commit.
This commit is contained in:
parent
a2220f1ea4
commit
61ae80e186
5 changed files with 33 additions and 27 deletions
|
@ -242,7 +242,7 @@ impl<'ln> LayoutNode<'ln> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'ln> TNode<LayoutElement<'ln>> for LayoutNode<'ln> {
|
||||
impl<'ln> TNode<'ln, LayoutElement<'ln>> for LayoutNode<'ln> {
|
||||
fn parent_node(&self) -> Option<LayoutNode<'ln>> {
|
||||
unsafe {
|
||||
self.node.parent_node_ref().map(|node| self.new_with_this_lifetime(&node))
|
||||
|
@ -389,7 +389,7 @@ impl<'le> LayoutElement<'le> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'le> TElement for LayoutElement<'le> {
|
||||
impl<'le> TElement<'le> for LayoutElement<'le> {
|
||||
#[inline]
|
||||
fn get_local_name<'a>(&'a self) -> &'a Atom {
|
||||
&self.element.local_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue