diff --git a/layout/style/test/stylo-failures.md b/layout/style/test/stylo-failures.md index f2ca2b7081ca..8f5520652596 100644 --- a/layout/style/test/stylo-failures.md +++ b/layout/style/test/stylo-failures.md @@ -33,7 +33,7 @@ to mochitest command. * "layout.css.prefixes.device-pixel-ratio-webkit" support bug 1366956 * test_media_queries.html `-device-pixel-ratio` [27] * test_webkit_device_pixel_ratio.html [3] - * test_media_queries_dynamic.html `restyle count`: support elementsRestyled [6] + * test_media_queries_dynamic.html `restyle`: bug 1357461 [4] * test_media_queries_dynamic_xbl.html: xbl support bug 1290276 [2] * Animation support: * OMTA diff --git a/layout/style/test/test_media_queries_dynamic.html b/layout/style/test/test_media_queries_dynamic.html index d04bfdbfe628..ac04d803a136 100644 --- a/layout/style/test/test_media_queries_dynamic.html +++ b/layout/style/test/test_media_queries_dynamic.html @@ -121,10 +121,10 @@ function run() { } var utils = SpecialPowers.getDOMWindowUtils(subwin); - var elementsRestyled, framesConstructed, framesReflowed; + var restyleGeneration, framesConstructed, framesReflowed; function reset_change_counters() { - elementsRestyled = utils.elementsRestyled; + restyleGeneration = utils.restyleGeneration; framesConstructed = utils.framesConstructed; framesReflowed = utils.framesReflowed; } @@ -139,11 +139,11 @@ function run() { return; } - var restyles = utils.elementsRestyled - elementsRestyled; + var didRestyle = utils.restyleGeneration != restyleGeneration; var constructs = utils.framesConstructed - framesConstructed; var reflows = utils.framesReflowed - framesReflowed; - (expected.restyle ? isnot : is)(restyles, 0, "restyle count: " + desc); + (expected.restyle ? isnot : is)(didRestyle, false, "restyle: " + desc); (expected.construct ? isnot : is)(constructs, 0, "frame construct count: " + desc); (expected.reflow ? isnot : is)(reflows, 0, "reflow count: " + desc);