mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Rename ImageRect to MozImageRect
This commit is contained in:
parent
50c46ae0e1
commit
907d629ca4
6 changed files with 18 additions and 18 deletions
|
@ -370,7 +370,7 @@ impl nsStyleImage {
|
|||
pub unsafe fn into_image(self: &nsStyleImage) -> Option<Image> {
|
||||
use gecko_bindings::bindings::Gecko_GetImageElement;
|
||||
use gecko_bindings::structs::nsStyleImageType;
|
||||
use values::computed::{NumberOrPercentage, ImageRect};
|
||||
use values::computed::{NumberOrPercentage, MozImageRect};
|
||||
|
||||
match self.mType {
|
||||
nsStyleImageType::eStyleImageType_Null => {
|
||||
|
@ -387,7 +387,7 @@ impl nsStyleImage {
|
|||
NumberOrPercentage::from_gecko_style_coord(&rect.data_at(2)),
|
||||
NumberOrPercentage::from_gecko_style_coord(&rect.data_at(3))) {
|
||||
(Some(top), Some(right), Some(bottom), Some(left)) =>
|
||||
Some(GenericImage::Rect(ImageRect { url, top, right, bottom, left } )),
|
||||
Some(GenericImage::Rect(MozImageRect { url, top, right, bottom, left } )),
|
||||
_ => {
|
||||
debug_assert!(false, "mCropRect could not convert to NumberOrPercentage");
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue