Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layout: Modify styles for replaced content as appropriate during incremental flow construction. #6492

Merged
merged 4 commits into from Jul 7, 2015
Merged

gfx: Round out when snapping rects to the nearest pixel.

Fixes `insert-inline-in-blocks-n-inlines-end-001` in the WPT tests.
  • Loading branch information
pcwalton committed Jul 7, 2015
commit 352ad53775a4051c0bf965b3dbcde31410ce757c
@@ -1171,7 +1171,12 @@ pub trait ToAzureRect {

impl ToAzureRect for Rect<Au> {
fn to_nearest_azure_rect(&self) -> Rect<AzFloat> {
Rect::new(self.origin.to_nearest_azure_point(), self.size.to_nearest_azure_size())
let top_left = self.origin.to_nearest_azure_point();
let bottom_right = self.bottom_right().to_nearest_azure_point();
Rect::new(top_left,
Size2D::new((bottom_right.x - top_left.x) as AzFloat,
(bottom_right.y - top_left.y) as AzFloat))

}
fn to_azure_rect(&self) -> Rect<AzFloat> {
Rect::new(self.origin.to_azure_point(), Size2D::new(self.size.width.to_f32_px(),
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.