Bug 1272970 - fix test_transitions_per_property failure; r=mstange

MozReview-Commit-ID: 9y9gT0dagDv

--HG--
extra : rebase_source : a01d99716b26e072b2ae74e3602772764810991c
This commit is contained in:
CJKu 2016-05-15 22:39:31 +08:00
parent 03fcd422c5
commit ffcae1dc76
2 changed files with 5 additions and 2 deletions

View File

@ -3529,6 +3529,7 @@ struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleSVGReset
return nsChangeHint_UpdateEffects |
nsChangeHint_UpdateOverflow |
nsChangeHint_NeutralChange |
nsChangeHint_UpdateBackgroundPosition |
NS_STYLE_HINT_REFLOW;
}
static nsChangeHint DifferenceAlwaysHandledForDescendants() {

View File

@ -2133,8 +2133,10 @@ function test_background_size_transition(prop) {
}
function test_background_position_transition(prop) {
var doesPropTakeListValues = (prop == "background-position");
var doesPropHaveDistanceComputation = (prop != "background-position");
var doesPropTakeListValues = (prop == "background-position") ||
(prop == "mask-position");
var doesPropHaveDistanceComputation = (prop != "background-position") &&
(prop != "mask-position");
// Test interpolation between edge keywords, and between edge keyword and a
// percent value. (Note: edge keywords are really aliases for percent vals.)