mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 05:11:03 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user