# HG changeset patch # User sotaro # Date 1520253062 -32400 # Node ID 7de2bea66b04c4b7a784e48010299d925b71f203 # Parent 6bd7fd07e5abd4566afc95d978fdc785125a7652 Bug 1442146 - Fix jiggle during resizing on Windows r=nical diff --git a/widget/windows/nsWindowGfx.cpp b/widget/windows/nsWindowGfx.cpp --- a/widget/windows/nsWindowGfx.cpp +++ b/widget/windows/nsWindowGfx.cpp @@ -337,31 +337,27 @@ bool nsWindow::OnPaint(HDC aDC, uint32_t // bitmap. Now it can be read from memory bitmap to apply alpha channel and after // that displayed on the screen. mBasicLayersSurface->RedrawTransparentWindow(); } #endif } break; case LayersBackend::LAYERS_CLIENT: + case LayersBackend::LAYERS_WR: { result = listener->PaintWindow( this, LayoutDeviceIntRegion::FromUnknownRegion(region)); if (!gfxEnv::DisableForcePresent() && gfxWindowsPlatform::GetPlatform()->DwmCompositionEnabled()) { nsCOMPtr event = NewRunnableMethod("nsWindow::ForcePresent", this, &nsWindow::ForcePresent); NS_DispatchToMainThread(event); } } break; - case LayersBackend::LAYERS_WR: - { - GetLayerManager()->ScheduleComposite(); - break; - } default: NS_ERROR("Unknown layers backend used!"); break; } } if (!aDC) { ::EndPaint(mWnd, &ps);