Fix a ridiculous bug in layout-2020

Who needs CI anyway?
This commit is contained in:
Anthony Ramine 2019-10-25 11:23:46 +02:00
parent 08af89bd82
commit 327740d67a
90 changed files with 16 additions and 167 deletions

View file

@ -324,7 +324,7 @@ where
}
fn parent_node(self) -> Option<Self> {
TNode::next_sibling(&self)
TNode::parent_node(&self)
}
fn style(self, context: &SharedStyleContext) -> Arc<ComputedValues> {
@ -361,6 +361,9 @@ where
}
fn unset_boxes_in_subtree(self) {
assert!(self.is_element());
assert!(self.parent_node().is_some());
let mut node = self;
loop {
if node.is_element() {