mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Correct x and y input for origin_rect
Fix error in construction of the origin_rect for UnioningFragmentBorderBoxIterator.
This commit is contained in:
parent
cb943b016f
commit
44832a87af
1 changed files with 1 additions and 1 deletions
|
@ -442,7 +442,7 @@ impl FragmentBorderBoxIterator for UnioningFragmentScrollAreaIterator {
|
|||
self.level = Some(level);
|
||||
self.is_child = true;
|
||||
self.overflow_direction = overflow_direction(&fragment.style.writing_mode);
|
||||
self.origin_rect = Rect::new(Point2D::new(top_padding, left_padding),
|
||||
self.origin_rect = Rect::new(Point2D::new(left_padding, top_padding),
|
||||
Size2D::new(right_padding, bottom_padding));
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue