Skip to content

Commit

Permalink
Correct x and y input for origin_rect
Browse files Browse the repository at this point in the history
Fix error in construction of the origin_rect for
UnioningFragmentBorderBoxIterator.
  • Loading branch information
dlrobertson committed Apr 6, 2016
1 parent cb943b0 commit 44832a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/layout/query.rs
Expand Up @@ -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));
},
};
Expand Down

0 comments on commit 44832a8

Please sign in to comment.