gecko-dev/layout/reftests/image
Jonathan Chan 4a6248b9a6 Bug 1355380 - Part 2: Make Servo's rounding of image-orientation values agree with Gecko's, and pass orientations directly as an enum instead of as angles. r=manishearth
Both Servo and Gecko store the specified value of the image-orientation
property as a single-precision float, but Gecko does the conversion to radians
and the computation to identify which quarter-turn the angle is closest to
using doubles.

We add Angle::radians64 to perform the conversion to radians using doubles,
just as Gecko does, and then update image_orientation to perform the
computation the same exact way Gecko does in
nsStyleImageOrientation::CreateAsAngleAndFlip. This lets the previously failing
reftests pass.

We also update Gecko_SetImageOrientation to take an orientation directly
instead of an angle (otherwise we'd be doing the which-quarter-turn-is-closest
computation twice).

Finally this lets us re-enable the reftests for image-orientation previously
marked as fails-if(styloVsGecko||stylo).

MozReview-Commit-ID: 2zMMzQlsYEC

--HG--
extra : rebase_source : 99ed023e940193d4ad735a9ee27e45929a1efda1
2017-07-10 11:32:08 -07:00
..
50.png Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
100.png Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
200.png Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
300.png Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
400.png Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
500.svg Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
background-image-zoom-1-ref.html Bug 1084321 - Remove b2g app meta viewport work-around. r=kats,roc 2014-11-04 17:15:30 +00:00
background-image-zoom-1.html Bug 1084321 - Remove b2g app meta viewport work-around. r=kats,roc 2014-11-04 17:15:30 +00:00
background-image-zoom-2.html
big.png
blue-16x20.png
blue-32x32.png
blue-50x50.png Bug 1160635 patch 1 - Add reftests. r=dholbert 2015-05-06 08:52:19 +02:00
blue-50x100.png Bug 1160635 patch 1 - Add reftests. r=dholbert 2015-05-06 08:52:19 +02:00
blue-100x50.png Bug 1160635 patch 1 - Add reftests. r=dholbert 2015-05-06 08:52:19 +02:00
image-exif-0-deg-flip.jpg
image-exif-0-deg.jpg
image-exif-90-deg-flip.jpg
image-exif-90-deg.jpg
image-exif-180-deg-flip.jpg
image-exif-180-deg.jpg
image-exif-270-deg-flip.jpg
image-exif-270-deg.jpg
image-exif-none.jpg
image-object-fit-dyn-1-ref.html Bug 1110950: Trigger a reflow (as well as a repaint) for changes to 'object-fit' and 'object-position', so subdocuments can be repositioned/resized. r=roc 2015-01-15 09:51:19 -08:00
image-object-fit-dyn-1.html Bug 1110950: Trigger a reflow (as well as a repaint) for changes to 'object-fit' and 'object-position', so subdocuments can be repositioned/resized. r=roc 2015-01-15 09:51:19 -08:00
image-object-fit-with-background-1-ref.html Bug 1101128 part 2: Make nsDisplayImage::GetOpaqueRegion() take object-fit & object-position into account. r=seth 2014-11-19 18:34:52 -08:00
image-object-fit-with-background-1.html Bug 1101128 part 2: Make nsDisplayImage::GetOpaqueRegion() take object-fit & object-position into account. r=seth 2014-11-19 18:34:52 -08:00
image-object-fit-with-background-2-ref.html Bug 1101128 part 2: Make nsDisplayImage::GetOpaqueRegion() take object-fit & object-position into account. r=seth 2014-11-19 18:34:52 -08:00
image-object-fit-with-background-2.html Bug 1101128 part 2: Make nsDisplayImage::GetOpaqueRegion() take object-fit & object-position into account. r=seth 2014-11-19 18:34:52 -08:00
image-object-position-dyn-1-ref.html Bug 1110950: Trigger a reflow (as well as a repaint) for changes to 'object-fit' and 'object-position', so subdocuments can be repositioned/resized. r=roc 2015-01-15 09:51:19 -08:00
image-object-position-dyn-1.html Bug 1110950: Trigger a reflow (as well as a repaint) for changes to 'object-fit' and 'object-position', so subdocuments can be repositioned/resized. r=roc 2015-01-15 09:51:19 -08:00
image-object-position-with-background-1-ref.html Bug 1126163: Adjust image-object-position-with-background-1-ref.html to crop its replaced elems with overflow:hidden div, instead of downscaling them. r=seth 2015-01-27 17:12:33 -08:00
image-object-position-with-background-1.html Bug 1101128 part 2: Make nsDisplayImage::GetOpaqueRegion() take object-fit & object-position into account. r=seth 2014-11-19 18:34:52 -08:00
image-object-position-with-background-2-ref.html Bug 1101128 part 2: Make nsDisplayImage::GetOpaqueRegion() take object-fit & object-position into account. r=seth 2014-11-19 18:34:52 -08:00
image-object-position-with-background-2.html Bug 1101128 part 2: Make nsDisplayImage::GetOpaqueRegion() take object-fit & object-position into account. r=seth 2014-11-19 18:34:52 -08:00
image-orientation-background.html
image-orientation-border-image.html
image-orientation-dynamic-ref.html Bug 997010 (Part 2) - Reftest for dynamic changes to the image-orientation property. r=dbaron 2014-04-16 01:14:27 -04:00
image-orientation-dynamic.html Bug 997010 (Part 2) - Reftest for dynamic changes to the image-orientation property. r=dbaron 2014-04-16 01:14:27 -04:00
image-orientation-explicit.html Bug 920734 - Part 2: Update tests to avoid using orientation as variable name. r=seth 2015-10-23 21:37:35 -07:00
image-orientation-from-image.html Bug 920734 - Part 2: Update tests to avoid using orientation as variable name. r=seth 2015-10-23 21:37:35 -07:00
image-orientation-generated-content-ref.html Bug 920734 - Part 2: Update tests to avoid using orientation as variable name. r=seth 2015-10-23 21:37:35 -07:00
image-orientation-generated-content.html Bug 920734 - Part 2: Update tests to avoid using orientation as variable name. r=seth 2015-10-23 21:37:35 -07:00
image-orientation-list-style-image.html
image-orientation-ref.html Bug 920734 - Part 2: Update tests to avoid using orientation as variable name. r=seth 2015-10-23 21:37:35 -07:00
image-resize-percent-height.html Bug 1160635 patch 1 - Add reftests. r=dholbert 2015-05-06 08:52:19 +02:00
image-resize-percent-width.html Bug 1160635 patch 1 - Add reftests. r=dholbert 2015-05-06 08:52:19 +02:00
image-resize-ref.html Bug 1160635 patch 1 - Add reftests. r=dholbert 2015-05-06 08:52:19 +02:00
image-seam-1-ref.html
image-seam-1a.html
image-seam-1b.html
image-seam-2-ref.html
image-seam-2.html
image-srcset-basic-selection-0.1x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-0.1x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-0.5x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-0.5x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-0.6x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-0.6x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-1.5x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-1.5x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-1x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-1x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-2x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-2x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-width-0.5x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-width-0.5x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-width-1x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-width-1x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-width-2x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-width-2x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-width-10x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-basic-selection-width-10x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-default-1x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-default-1x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-default-2x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-default-2x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-default-src-1x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-default-src-1x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-default-src-2x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-default-src-2x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-orientation-1x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-orientation-1x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-orientation-2x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-orientation-2x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-svg-1x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-svg-1x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-svg-2x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-svg-2x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-svg-3x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-svg-3x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-svg-default-1x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-svg-default-1x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-svg-default-2x-ref.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-srcset-svg-default-2x.html Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
image-zoom-1-ref.html
image-zoom-1.html
image-zoom-2.html
invalid-url-image-1-ref.html
invalid-url-image-1.html
moz-broken-matching-1-ref.html Bug 1341642 - Add a reftest for :-moz-broken r=emilio 2017-03-20 17:47:59 +03:00
moz-broken-matching-1.html Bug 1341642 - Add a reftest for :-moz-broken r=emilio 2017-03-20 17:47:59 +03:00
nearly-white.png
no-intrinsic-size.svg Bug 1023516 - Basic image srcset reftests r=jst 2014-10-24 14:00:17 -07:00
reftest.list Bug 1355380 - Part 2: Make Servo's rounding of image-orientation values agree with Gecko's, and pass orientations directly as an enum instead of as angles. r=manishearth 2017-07-10 11:32:08 -07:00
small.png
sync-image-switch-1-ref.html
sync-image-switch-1a.html
sync-image-switch-1b.html
sync-image-switch-1c.html
sync-image-switch-1d.html