partly revert "Bug 1256547: When the DWM is disabled don't force presentation. r=milan" as this crashes in XP-x64.

This commit is contained in:
2024-08-16 11:22:12 +08:00
parent 4cf8b0e818
commit afafcc8fa2
+1 -1
View File
@@ -528,7 +528,7 @@ bool nsWindow::OnPaint(HDC aDC, uint32_t aNestingLevel)
{
result = listener->PaintWindow(
this, LayoutDeviceIntRegion::FromUnknownRegion(region));
if (!gfxEnv::DisableForcePresent() && gfxWindowsPlatform::GetPlatform()->DwmCompositionEnabled()) {
if (!gfxEnv::DisableForcePresent() /*&& gfxWindowsPlatform::GetPlatform()->DwmCompositionEnabled()*/) {
nsCOMPtr<nsIRunnable> event =
NS_NewRunnableMethod(this, &nsWindow::ForcePresent);
NS_DispatchToMainThread(event);