Bug 610713. Disable acceleration in popup widgets to work around Windows/driver bugs. r=bas

This commit is contained in:
Robert O'Callahan 2012-04-10 11:52:50 +12:00
Родитель 4bc66bfdf9
Коммит 17273823c0
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -3192,7 +3192,8 @@ nsWindow::GetLayerManager(PLayersChild* aShadowManager,
if (eTransparencyTransparent == mTransparencyMode || if (eTransparencyTransparent == mTransparencyMode ||
prefs.mDisableAcceleration || prefs.mDisableAcceleration ||
windowRect.right - windowRect.left > MAX_ACCELERATED_DIMENSION || windowRect.right - windowRect.left > MAX_ACCELERATED_DIMENSION ||
windowRect.bottom - windowRect.top > MAX_ACCELERATED_DIMENSION) windowRect.bottom - windowRect.top > MAX_ACCELERATED_DIMENSION ||
mWindowType == eWindowType_popup)
mUseAcceleratedRendering = false; mUseAcceleratedRendering = false;
else if (prefs.mAccelerateByDefault) else if (prefs.mAccelerateByDefault)
mUseAcceleratedRendering = true; mUseAcceleratedRendering = true;