mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add stacking_relative_border_box_for_display_list
This commit is contained in:
parent
f7ac5d712f
commit
6232846699
2 changed files with 27 additions and 47 deletions
|
@ -1155,6 +1155,19 @@ impl BaseFlow {
|
|||
self.speculated_float_placement_out.left > Au(0) ||
|
||||
self.speculated_float_placement_out.right > Au(0)
|
||||
}
|
||||
|
||||
|
||||
/// Compute the fragment position relative to the parent stacking context. If the fragment
|
||||
/// itself establishes a stacking context, then the origin of its position will be (0, 0)
|
||||
/// for the purposes of this computation.
|
||||
pub fn stacking_relative_border_box_for_display_list(&self, fragment: &Fragment) -> Rect<Au> {
|
||||
fragment.stacking_relative_border_box(
|
||||
&self.stacking_relative_position,
|
||||
&self.early_absolute_position_info.relative_containing_block_size,
|
||||
self.early_absolute_position_info.relative_containing_block_mode,
|
||||
CoordinateSystem::Own,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> ImmutableFlowUtils for &'a Flow {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue