mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
layout_2013: Remove code preventing writing mode assertion failures (#32698)
It's actually kind of useful that this code crashes, as it points out a problem. Additionally, we aren't going to be maintaining Layout 2013 any longer so it is very unlikely that these bugs will ever be fixed. This allows us to reduce our diff with upstream Stylo. Closes #30577.
This commit is contained in:
parent
10326f7e0f
commit
0f2139be27
19 changed files with 19 additions and 26 deletions
|
@ -1505,9 +1505,7 @@ impl Fragment {
|
|||
if let Some(ref inline_fragment_context) = self.inline_context {
|
||||
for node in &inline_fragment_context.nodes {
|
||||
if node.style.get_box().position == Position::Relative {
|
||||
// TODO(servo#30577) revert once underlying bug is fixed
|
||||
// rel_pos = rel_pos + from_style(&*node.style, containing_block_size);
|
||||
rel_pos = rel_pos.add_or_warn(from_style(&node.style, containing_block_size));
|
||||
rel_pos = rel_pos + from_style(&*node.style, containing_block_size);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue