зеркало из https://github.com/mozilla/gecko-dev.git
Bug 813024. Restore mTemporarilyUseBasicLayerManager to the previous value instead of setting it to false when using an AutoUseBasicLayerManager object. r=roc
This commit is contained in:
Родитель
d0b8e98f50
Коммит
a2a6bf4cc7
|
@ -761,12 +761,15 @@ nsBaseWidget::AutoLayerManagerSetup::~AutoLayerManagerSetup()
|
|||
nsBaseWidget::AutoUseBasicLayerManager::AutoUseBasicLayerManager(nsBaseWidget* aWidget)
|
||||
: mWidget(aWidget)
|
||||
{
|
||||
mPreviousTemporarilyUseBasicLayerManager =
|
||||
mWidget->mTemporarilyUseBasicLayerManager;
|
||||
mWidget->mTemporarilyUseBasicLayerManager = true;
|
||||
}
|
||||
|
||||
nsBaseWidget::AutoUseBasicLayerManager::~AutoUseBasicLayerManager()
|
||||
{
|
||||
mWidget->mTemporarilyUseBasicLayerManager = false;
|
||||
mWidget->mTemporarilyUseBasicLayerManager =
|
||||
mPreviousTemporarilyUseBasicLayerManager;
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -226,6 +226,7 @@ public:
|
|||
~AutoUseBasicLayerManager();
|
||||
private:
|
||||
nsBaseWidget* mWidget;
|
||||
bool mPreviousTemporarilyUseBasicLayerManager;
|
||||
};
|
||||
friend class AutoUseBasicLayerManager;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче