diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-04-06 15:57:35 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-04-06 16:08:53 +0200 |
commit | b50b21d1da6154bd87a6cca86c61cd9f553d92df (patch) | |
tree | 5d1ee66951dc1e972758f96a4cdca7034e11108a /components/layout/fragment.rs | |
parent | f22d920b4dd97fff6e2c8666d2062f3ca2b0b2e6 (diff) | |
download | servo-b50b21d1da6154bd87a6cca86c61cd9f553d92df.tar.gz servo-b50b21d1da6154bd87a6cca86c61cd9f553d92df.zip |
Stop using int/uint in net_traits.
Diffstat (limited to 'components/layout/fragment.rs')
-rw-r--r-- | components/layout/fragment.rs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index 14265aed4bc..4c3d3bdc4c6 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -327,15 +327,21 @@ impl ImageFragmentInfo { /// Returns the original inline-size of the image. pub fn image_inline_size(&mut self) -> Au { let size = self.image.get_size(self.replaced_image_fragment_info.for_node).unwrap_or(Size2D::zero()); - Au::from_px(if self.replaced_image_fragment_info.writing_mode_is_vertical { size.height } - else { size.width }) + Au::from_px(if self.replaced_image_fragment_info.writing_mode_is_vertical { + size.height + } else { + size.width + } as isize) } /// Returns the original block-size of the image. pub fn image_block_size(&mut self) -> Au { let size = self.image.get_size(self.replaced_image_fragment_info.for_node).unwrap_or(Size2D::zero()); - Au::from_px(if self.replaced_image_fragment_info.writing_mode_is_vertical { size.width } - else { size.height }) + Au::from_px(if self.replaced_image_fragment_info.writing_mode_is_vertical { + size.width + } else { + size.height + } as isize) } /// Tile an image |