mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
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:
parent
d0b8e98f50
commit
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user