mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1357872, nsPresContext is refcounted, so use it so, r=kats
This commit is contained in:
parent
07f5d65c45
commit
933a8daf58
@ -223,8 +223,8 @@ TouchEvent::PrefEnabled(nsIDocShell* aDocShell)
|
||||
if (enabled && aDocShell) {
|
||||
// APZ might be disabled on this particular widget, in which case
|
||||
// TouchEvent support will also be disabled. Try to detect that.
|
||||
nsPresContext* pc = nullptr;
|
||||
aDocShell->GetPresContext(&pc);
|
||||
RefPtr<nsPresContext> pc;
|
||||
aDocShell->GetPresContext(getter_AddRefs(pc));
|
||||
if (pc && pc->GetRootWidget()) {
|
||||
enabled &= pc->GetRootWidget()->AsyncPanZoomEnabled();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user