mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix a ridiculous bug in layout-2020
Who needs CI anyway?
This commit is contained in:
parent
08af89bd82
commit
327740d67a
90 changed files with 16 additions and 167 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue