зеркало из https://github.com/mozilla/gecko-dev.git
Bug 756601 - Call PaintWindow with OMTC so we still get a DidPaint event. r=roc
This commit is contained in:
Родитель
c3ddb34700
Коммит
9510a291a0
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче