mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
gfx: Stop cloning clipping regions so much.
Clipping regions can contain vectors and so can be expensive to copy.
This commit is contained in:
parent
983576ebaa
commit
940bff1f9c
5 changed files with 52 additions and 52 deletions
|
@ -1680,9 +1680,10 @@ impl Flow for InlineFlow {
|
|||
CoordinateSystem::Parent);
|
||||
let stacking_relative_content_box =
|
||||
fragment.stacking_relative_content_box(&stacking_relative_border_box);
|
||||
let clip = fragment.clipping_region_for_children(&self.base.clip,
|
||||
&stacking_relative_border_box,
|
||||
false);
|
||||
let mut clip = self.base.clip.clone();
|
||||
fragment.adjust_clipping_region_for_children(&mut clip,
|
||||
&stacking_relative_border_box,
|
||||
false);
|
||||
let is_positioned = fragment.is_positioned();
|
||||
match fragment.specific {
|
||||
SpecificFragmentInfo::InlineBlock(ref mut info) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue