Make Servo's rounding of image-orientation values agree with Gecko's,

and pass orientations directly as an enum instead of as angles.

Depends on a Gecko change to be subsequently landed in m-c.
This commit is contained in:
Jonathan Chan 2017-07-10 15:10:12 -07:00
parent 5010df627d
commit e554146e2a
4 changed files with 85 additions and 29 deletions

View file

@ -895,7 +895,7 @@ extern "C" {
}
extern "C" {
pub fn Gecko_SetImageOrientation(aVisibility: *mut nsStyleVisibility,
aRadians: f64, aFlip: bool);
aOrientation: u8, aFlip: bool);
}
extern "C" {
pub fn Gecko_SetImageOrientationAsFromImage(aVisibility: