mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 10:27:03 +00:00
Bug 1929911 - DT fix. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D228393
This commit is contained in:
parent
c45b6feb91
commit
ca1eb06c44
@ -127,11 +127,11 @@ class InlineTranslator : public Translator {
|
||||
}
|
||||
|
||||
void RemoveDrawTarget(ReferencePtr aRefPtr) override {
|
||||
ReferencePtr currentDT = mCurrentDT;
|
||||
if (currentDT == aRefPtr) {
|
||||
RefPtr<DrawTarget> removedDT;
|
||||
if (mDrawTargets.Remove(aRefPtr, getter_AddRefs(removedDT)) &&
|
||||
mCurrentDT == removedDT) {
|
||||
mCurrentDT = nullptr;
|
||||
}
|
||||
mDrawTargets.Remove(aRefPtr);
|
||||
}
|
||||
|
||||
bool SetCurrentDrawTarget(ReferencePtr aRefPtr) override {
|
||||
|
Loading…
x
Reference in New Issue
Block a user