зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset a5f2d33a9de3 (bug 1355380) for failing mochitest layout/style/test/test_value_computation.html. r=backout
This commit is contained in:
Родитель
313b7a8917
Коммит
534b714ff2
|
@ -33,7 +33,6 @@ fuzzy(1,1) == image-orientation-from-image.html?180&flip image-orientation-ref.h
|
|||
fuzzy(1,1) == image-orientation-from-image.html?270&flip image-orientation-ref.html?270&flip
|
||||
|
||||
# Tests for image-orientation used with an explicit orientation:
|
||||
fuzzy(1,1) == image-orientation-explicit.html?-900 image-orientation-ref.html?180
|
||||
fuzzy(1,1) == image-orientation-explicit.html?0 image-orientation-ref.html?0
|
||||
fuzzy(1,1) == image-orientation-explicit.html?90 image-orientation-ref.html?90
|
||||
fuzzy(1,1) == image-orientation-explicit.html?180 image-orientation-ref.html?180
|
||||
|
@ -44,7 +43,6 @@ fuzzy(1,1) == image-orientation-explicit.html?180&flip image-orientation-ref.htm
|
|||
fuzzy(1,1) == image-orientation-explicit.html?270&flip image-orientation-ref.html?270&flip
|
||||
|
||||
# Tests for image-orientation used with non-axis-aligned angles:
|
||||
fuzzy(1,1) == image-orientation-explicit.html?-46 image-orientation-ref.html?270
|
||||
fuzzy(1,1) fails-if(styloVsGecko||stylo) == image-orientation-explicit.html?-45 image-orientation-ref.html?0
|
||||
fuzzy(1,1) == image-orientation-explicit.html?-15 image-orientation-ref.html?0
|
||||
fuzzy(1,1) == image-orientation-explicit.html?15 image-orientation-ref.html?0
|
||||
|
|
|
@ -2030,9 +2030,6 @@ struct nsStyleImageOrientation
|
|||
|
||||
// Compute the final angle value, rounding to the closest quarter turn.
|
||||
double roundedAngle = fmod(aRadians, 2 * M_PI);
|
||||
if (roundedAngle < 0) {
|
||||
roundedAngle = roundedAngle + 2 * M_PI;
|
||||
}
|
||||
if (roundedAngle < 0.25 * M_PI) { orientation = ANGLE_0; }
|
||||
else if (roundedAngle < 0.75 * M_PI) { orientation = ANGLE_90; }
|
||||
else if (roundedAngle < 1.25 * M_PI) { orientation = ANGLE_180;}
|
||||
|
|
Загрузка…
Ссылка в новой задаче