aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-09-14 13:12:44 -0400
committerJosh Matthews <josh@joshmatthews.net>2014-09-14 13:12:44 -0400
commit8f65c229274b29b03647d9c79c5d18edfbb6bc11 (patch)
tree0cfe674614c21e471d90aee6abb5b77d54e6baee /components
parent0b0c2ef461094b5d43a97af5d39c78f22527f8a6 (diff)
downloadservo-8f65c229274b29b03647d9c79c5d18edfbb6bc11.tar.gz
servo-8f65c229274b29b03647d9c79c5d18edfbb6bc11.zip
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)
}