mirror of
https://github.com/servo/servo.git
synced 2025-06-19 06:38:59 +01:00
layout: Add a lifetime to LayoutNode
to prevent layout from stuffing
them into evil places.
This commit is contained in:
parent
ee9873bdb5
commit
c506e52c7c
8 changed files with 77 additions and 46 deletions
|
@ -528,7 +528,7 @@ trait NodeUtils {
|
|||
fn swap_out_construction_result(self) -> ConstructionResult;
|
||||
}
|
||||
|
||||
impl NodeUtils for LayoutNode {
|
||||
impl<'self> NodeUtils for LayoutNode<'self> {
|
||||
fn is_replaced_content(self) -> bool {
|
||||
match self.type_id() {
|
||||
TextNodeTypeId |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue