From 5b006d907b270d6b36ebe8c0c52a26ae962125a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 19 Feb 2020 20:34:16 +0100 Subject: [PATCH] Bug 1616395 - Unbust windows build in a CLOSED TREE. MANUAL PUSH: minor bustage fix. --- gfx/webrender_bindings/RenderCompositorANGLE.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/webrender_bindings/RenderCompositorANGLE.cpp b/gfx/webrender_bindings/RenderCompositorANGLE.cpp index 0b2512550f33..f98047757e7a 100644 --- a/gfx/webrender_bindings/RenderCompositorANGLE.cpp +++ b/gfx/webrender_bindings/RenderCompositorANGLE.cpp @@ -476,7 +476,8 @@ RenderedFrameId RenderCompositorANGLE::EndFrame( // If there is no diry rect, we skip SwapChain present. if (!aDirtyRects.IsEmpty()) { StackArray rects(aDirtyRects.Length()); - for (const auto& rect : aDirtyRects) { + for (size_t i = 0; i < aDirtyRects.Length(); ++i) { + const DeviceIntRect& rect = aDirtyRects[i]; // Clip rect to bufferSize rects[i].left = std::max(0, std::min(rect.origin.x, bufferSize.width));