diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2014-10-06 18:03:54 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2014-10-13 08:03:34 -0700 |
commit | 2b0e59725b2c486a0d15f57db9c9c020f3d9afdc (patch) | |
tree | 6ec95b1f1fa7780880f054ea2f442fe4e42d5224 /components/layout/inline.rs | |
parent | c87f34f877ab4acfb19c48f924068ab1964d397c (diff) | |
download | servo-2b0e59725b2c486a0d15f57db9c9c020f3d9afdc.tar.gz servo-2b0e59725b2c486a0d15f57db9c9c020f3d9afdc.zip |
layout: Make content of `display: inline-block; overflow: hidden` visible.
Diffstat (limited to 'components/layout/inline.rs')
-rw-r--r-- | components/layout/inline.rs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs index f6bcc0a3394..b4f1bdb386b 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -786,11 +786,13 @@ impl InlineFlow { let rel_offset = fragment.relative_position(&self.base .absolute_position_info .relative_containing_block_size); + let fragment_position = self.base + .abs_position + .add_size(&rel_offset.to_physical(self.base.writing_mode)); let mut accumulator = fragment.build_display_list(&mut self.base.display_list, - layout_context, - self.base.abs_position.add_size( - &rel_offset.to_physical(self.base.writing_mode)), - ContentLevel); + layout_context, + fragment_position, + ContentLevel); match fragment.specific { InlineBlockFragment(ref mut block_flow) => { let block_flow = block_flow.flow_ref.get_mut(); @@ -798,10 +800,9 @@ impl InlineFlow { } _ => {} } - } - // TODO(#225): Should `inline-block` elements have flows as children of the inline flow or - // should the flow be nested inside the fragment somehow? + accumulator.finish(&mut self.base.display_list); + } // For now, don't traverse the subtree rooted here. } |