mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 790164 - Keep contentPresShell alive while sending touch events. r=smaug
This commit is contained in:
parent
6c127f7a77
commit
9711c10c10
@ -6528,7 +6528,7 @@ PresShell::DispatchTouchEvent(nsEvent *aEvent,
|
||||
if (!content) {
|
||||
content = do_QueryInterface(targetPtr);
|
||||
}
|
||||
PresShell* contentPresShell = nullptr;
|
||||
nsRefPtr<PresShell> contentPresShell;
|
||||
if (content && content->OwnerDoc() == mDocument) {
|
||||
contentPresShell = static_cast<PresShell*>
|
||||
(content->OwnerDoc()->GetShell());
|
||||
|
Loading…
Reference in New Issue
Block a user