From 529c01f28c565cec3d2bfb27b97fc29a181f5c32 Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Sat, 10 Oct 2009 11:01:12 -0700 Subject: [PATCH] Oops, sign of error_direction needs to change only for its second use. (Bug 435441) --- layout/style/test/test_transitions.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/style/test/test_transitions.html b/layout/style/test/test_transitions.html index 364b46343a82..ac222a72a5c5 100644 --- a/layout/style/test/test_transitions.html +++ b/layout/style/test/test_transitions.html @@ -395,8 +395,6 @@ function check_transition_value(func, start_time, end_time, xfail) { function value_at(elapsed, error_direction) { - if (start_value > end_value) - error_direction = -error_direction; var time_portion = (elapsed - start_time) / (end_time - start_time); if (time_portion < 0) time_portion = 0; @@ -410,6 +408,8 @@ function check_transition_value(func, start_time, end_time, else if (value_portion > 1) value_portion = 1; var value = (1 - value_portion) * start_value + value_portion * end_value; + if (start_value > end_value) + error_direction = -error_direction; // Computed values get rounded to 1/60th of a pixel. return value + error_direction * 0.02; }