summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-11-07 13:49:11 +0000
committerMoonchild <moonchild@palemoon.org>2022-11-07 13:49:11 +0000
commitd19fb35c6abab93a22d08f8c7fc850ddcc2cbba6 (patch)
treee63daaac8b9dd59a88f4a7d9a55e6f9c0724cddf /image
parent10a37f462e7b4357feda9284dac608c0da0a416e (diff)
parent94554142e9f2aafdae0f2152537e8e2bee89313c (diff)
downloaduxp-d19fb35c6abab93a22d08f8c7fc850ddcc2cbba6.tar.gz
Merge branch 'master' into 1769-take2
Diffstat (limited to 'image')
-rw-r--r--image/SVGDocumentWrapper.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/image/SVGDocumentWrapper.cpp b/image/SVGDocumentWrapper.cpp
index d4b71b907c..6438c179e4 100644
--- a/image/SVGDocumentWrapper.cpp
+++ b/image/SVGDocumentWrapper.cpp
@@ -212,9 +212,12 @@ SVGDocumentWrapper::TickRefreshDriver()
nsCOMPtr<nsIPresShell> presShell;
mViewer->GetPresShell(getter_AddRefs(presShell));
if (presShell) {
- nsPresContext* presContext = presShell->GetPresContext();
+ RefPtr<nsPresContext> presContext = presShell->GetPresContext();
if (presContext) {
- presContext->RefreshDriver()->DoTick();
+ RefPtr<nsRefreshDriver> driver = presContext->RefreshDriver();
+ if (driver) {
+ driver->DoTick();
+ }
}
}
}