mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10)
This commit is contained in:
parent
41fb10c589
commit
b5a4b8d6a0
40 changed files with 73 additions and 79 deletions
|
@ -1921,7 +1921,7 @@ impl Legalizer {
|
|||
/// true for anonymous block children of flex flows.
|
||||
fn try_to_add_child(&mut self, context: &SharedStyleContext, parent: &mut FlowRef, child: &mut FlowRef)
|
||||
-> bool {
|
||||
let mut parent = self.stack.last_mut().unwrap_or(parent);
|
||||
let parent = self.stack.last_mut().unwrap_or(parent);
|
||||
let (parent_class, child_class) = (parent.class(), child.class());
|
||||
match (parent_class, child_class) {
|
||||
(FlowClass::TableWrapper, FlowClass::Table) |
|
||||
|
@ -1962,7 +1962,7 @@ impl Legalizer {
|
|||
} else {
|
||||
IS_BLOCK_FLEX_ITEM
|
||||
};
|
||||
let mut block = FlowRef::deref_mut(&mut block_wrapper).as_mut_block();
|
||||
let block = FlowRef::deref_mut(&mut block_wrapper).as_mut_block();
|
||||
block.base.flags.insert(MARGINS_CANNOT_COLLAPSE);
|
||||
block.fragment.flags.insert(flag);
|
||||
}
|
||||
|
@ -1979,7 +1979,7 @@ impl Legalizer {
|
|||
} else {
|
||||
IS_BLOCK_FLEX_ITEM
|
||||
};
|
||||
let mut block = FlowRef::deref_mut(child).as_mut_block();
|
||||
let block = FlowRef::deref_mut(child).as_mut_block();
|
||||
block.base.flags.insert(MARGINS_CANNOT_COLLAPSE);
|
||||
block.fragment.flags.insert(flag);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue