mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Remove use of some other unstable features
This commit is contained in:
parent
7861b0be79
commit
7f975c3d5d
4 changed files with 11 additions and 8 deletions
|
@ -303,7 +303,11 @@ impl InlineFormattingContext {
|
|||
panic!("display:none does not generate an abspos box")
|
||||
},
|
||||
};
|
||||
let hoisted_box = box_.clone().to_hoisted(initial_start_corner, tree_rank);
|
||||
let hoisted_box = AbsolutelyPositionedBox::to_hoisted(
|
||||
box_.clone(),
|
||||
initial_start_corner,
|
||||
tree_rank,
|
||||
);
|
||||
let hoisted_fragment = hoisted_box.fragment.clone();
|
||||
ifc.push_hoisted_box_to_positioning_context(hoisted_box);
|
||||
ifc.current_nesting_level.fragments_so_far.push(
|
||||
|
@ -786,7 +790,7 @@ impl TextRun {
|
|||
glyphs,
|
||||
text_decoration_line: ifc.current_nesting_level.text_decoration_line,
|
||||
}));
|
||||
if runs.is_empty() {
|
||||
if runs.as_slice().is_empty() {
|
||||
break;
|
||||
} else {
|
||||
// New line
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue