Bug 756601 - Call PaintWindow with OMTC so we still get a DidPaint event. r=roc

This commit is contained in:
Matt Woodrow 2013-05-10 09:02:49 +12:00
Родитель c3ddb34700
Коммит 9510a291a0
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -2857,11 +2857,14 @@ NSEvent* gLastDragMouseDownEvent = nil;
targetContext->Clip();
nsAutoRetainCocoaObject kungFuDeathGrip(self);
bool painted;
bool painted = false;
if (mGeckoChild->GetLayerManager()->GetBackendType() == LAYERS_BASIC) {
nsBaseWidget::AutoLayerManagerSetup
setupLayerManager(mGeckoChild, targetContext, BUFFER_NONE);
painted = mGeckoChild->PaintWindow(region, aIsAlternate);
} else if (mGeckoChild->GetLayerManager()->GetBackendType() == LAYERS_CLIENT) {
// We only need this so that we actually get DidPaintWindow fired
painted = mGeckoChild->PaintWindow(region, aIsAlternate);
}
// Force OpenGL to refresh the very first time we draw. This works around a