mirror of
https://github.com/servo/servo.git
synced 2025-06-19 06:38:59 +01:00
Position fixed displays out of normal flow.
This commit is contained in:
parent
f58fd54875
commit
084c7fb734
7 changed files with 202 additions and 19 deletions
|
@ -344,10 +344,10 @@ impl<'fc> FlowConstructor<'fc> {
|
|||
/// Builds a flow for a node with `display: block`. This yields a `BlockFlow` with possibly
|
||||
/// other `BlockFlow`s or `InlineFlow`s underneath it, depending on whether {ib} splits needed
|
||||
/// to happen.
|
||||
fn build_flow_for_block(&mut self, node: LayoutNode, is_fixed: bool) -> ~Flow: {
|
||||
fn build_flow_for_block(&mut self, node: LayoutNode, is_fixed: bool) -> ~Flow {
|
||||
let base = BaseFlow::new(self.next_flow_id(), node);
|
||||
let box_ = self.build_box_for_node(node);
|
||||
let mut flow = ~BlockFlow::from_box(base, box_, is_fixed) as ~Flow:;
|
||||
let mut flow = ~BlockFlow::from_box(base, box_, is_fixed) as ~Flow;
|
||||
self.build_children_of_block_flow(&mut flow, node);
|
||||
flow
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue