mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #10444 - danlrobertson:fix9824, r=asajeffrey
Correct x and y input for origin_rect Fix error in construction of the `origin_rect` for `UnioningFragmentBorderBoxIterator`. r? @asajeffrey <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10444) <!-- Reviewable:end -->
This commit is contained in:
commit
a026e86267
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