aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorglennw <glennw@users.noreply.github.com>2014-09-15 10:45:24 +1000
committerglennw <glennw@users.noreply.github.com>2014-09-15 10:45:24 +1000
commit2f12d5628f6a2a6b101c156baf66777b7ca5a4bb (patch)
tree299de3c59ba4cb06fd505c22eeb12472676a6051 /components
parent203144e2075117159e8c872b1a468c88c829def3 (diff)
parent8f65c229274b29b03647d9c79c5d18edfbb6bc11 (diff)
downloadservo-2f12d5628f6a2a6b101c156baf66777b7ca5a4bb.tar.gz
servo-2f12d5628f6a2a6b101c156baf66777b7ca5a4bb.zip
Merge pull request #3331 from jdm/ib-abs
Propagate absolute descendants of inline block flows. Fixes #3326.
Diffstat (limited to 'components')
-rw-r--r--components/layout/construct.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index c88de5e8b3e..a1631a5858d 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -604,8 +604,8 @@ impl<'a, 'b> FlowConstructor<'a, 'b> {
fn build_fragment_for_inline_block(&mut self, node: &ThreadSafeLayoutNode) -> ConstructionResult {
let block_flow_result = self.build_flow_for_block(node);
- let block_flow = match block_flow_result {
- FlowConstructionResult(block_flow, _) => block_flow,
+ let (block_flow, abs_descendants) = match block_flow_result {
+ FlowConstructionResult(block_flow, abs_descendants) => (block_flow, abs_descendants),
_ => unreachable!()
};
@@ -618,7 +618,7 @@ impl<'a, 'b> FlowConstructor<'a, 'b> {
let construction_item = InlineFragmentsConstructionItem(InlineFragmentsConstructionResult {
splits: Vec::new(),
fragments: fragment_accumulator.finish(),
- abs_descendants: Descendants::new(),
+ abs_descendants: abs_descendants,
});
ConstructionItemConstructionResult(construction_item)
}