mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
layout: Make inline absolute hypothetical boxes not clip their contents.
Improves the logo on ebay.com.
This commit is contained in:
parent
19d466b062
commit
c328c38804
5 changed files with 49 additions and 1 deletions
|
@ -978,7 +978,13 @@ impl<'a> FlowConstructor<'a> {
|
|||
|
||||
let fragment_info = SpecificFragmentInfo::InlineAbsoluteHypothetical(
|
||||
InlineAbsoluteHypotheticalFragmentInfo::new(block_flow));
|
||||
let fragment = Fragment::new(node, fragment_info);
|
||||
let mut style = node.style().clone();
|
||||
properties::modify_style_for_inline_absolute_hypothetical_fragment(&mut style);
|
||||
let fragment = Fragment::from_opaque_node_and_style(node.opaque(),
|
||||
PseudoElementType::Normal,
|
||||
style,
|
||||
node.restyle_damage(),
|
||||
fragment_info);
|
||||
|
||||
let mut fragment_accumulator = InlineFragmentsAccumulator::from_inline_node(node);
|
||||
fragment_accumulator.fragments.fragments.push_back(fragment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue