mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
layout: Allow transforming inline replaced elements (#31833)
This requires passing through information about whether or not the element in question is replaced when checking to see if it's transformable and transitively all functions that make decisions about containing blocks. A new FragmentFlag is added to help track this -- it will be set on both the replaced items BoxFragment container as well as the Fragment for the replaced item itself. Fixes #31806.
This commit is contained in:
parent
15cb9dd5fc
commit
b8c82c1ab0
11 changed files with 114 additions and 35 deletions
|
@ -192,12 +192,12 @@ impl Fragment {
|
|||
.translate(containing_block.origin.to_vector());
|
||||
let new_manager = if fragment
|
||||
.style
|
||||
.establishes_containing_block_for_all_descendants()
|
||||
.establishes_containing_block_for_all_descendants(fragment.base.flags)
|
||||
{
|
||||
manager.new_for_absolute_and_fixed_descendants(&content_rect, &padding_rect)
|
||||
} else if fragment
|
||||
.style
|
||||
.establishes_containing_block_for_absolute_descendants()
|
||||
.establishes_containing_block_for_absolute_descendants(fragment.base.flags)
|
||||
{
|
||||
manager.new_for_absolute_descendants(&content_rect, &padding_rect)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue