mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1764419 - Fix reuse of empty HitTestInfo. r=gfx-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D143543
This commit is contained in:
parent
600ce18f08
commit
3fe226b8b7
@ -19,7 +19,7 @@ namespace mozilla {
|
||||
static StaticAutoPtr<const HitTestInfo> gEmptyHitTestInfo;
|
||||
|
||||
const HitTestInfo& HitTestInfo::Empty() {
|
||||
if (gEmptyHitTestInfo) {
|
||||
if (!gEmptyHitTestInfo) {
|
||||
gEmptyHitTestInfo = new HitTestInfo();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user