layout: Add a lifetime to LayoutNode to prevent layout from stuffing

them into evil places.
This commit is contained in:
Patrick Walton 2013-12-17 10:08:01 -08:00
parent ee9873bdb5
commit c506e52c7c
8 changed files with 77 additions and 46 deletions

View file

@ -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 |