Bug 1489630 - Mark AutoApplyAsyncTestAttributes as MOZ_RAII. r=kats

Differential Revision: https://phabricator.services.mozilla.com/D5306
This commit is contained in:
Botond Ballo
2018-09-07 20:12:35 +00:00
parent 0967b35e40
commit 8b68524b51
5 changed files with 5 additions and 22 deletions

View File

@@ -979,7 +979,7 @@ AsyncCompositionManager::ApplyAsyncContentTransformToTree(Layer *aLayer,
// Apply any additional async scrolling for testing purposes (used
// for reftest-async-scroll and reftest-async-zoom).
auto _ = sampler->ApplyAsyncTestAttributes(wrapper);
AutoApplyAsyncTestAttributes testAttributeApplier(wrapper.GetApzc());
const FrameMetrics& metrics = wrapper.Metrics();
MOZ_ASSERT(metrics.IsScrollable());