Skip to content

Commit

Permalink
Bug 1786818. r=mstange
Browse files Browse the repository at this point in the history
  • Loading branch information
tnikkel committed Sep 8, 2022
1 parent 47276f9 commit 31d2695
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dom/base/nsDOMWindowUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2803,7 +2803,7 @@ nsDOMWindowUtils::AdvanceTimeAndRefresh(int64_t aMilliseconds) {

nsPresContext* presContext = GetPresContext();
if (presContext) {
nsRefreshDriver* driver = presContext->RefreshDriver();
RefPtr<nsRefreshDriver> driver = presContext->RefreshDriver();
driver->AdvanceTimeAndRefresh(aMilliseconds);

if (WebRenderBridgeChild* wrbc = GetWebRenderBridge()) {
Expand Down
4 changes: 3 additions & 1 deletion image/SVGDocumentWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ void SVGDocumentWrapper::SetCurrentTime(float aTime) {
void SVGDocumentWrapper::TickRefreshDriver() {
if (RefPtr<PresShell> presShell = mViewer->GetPresShell()) {
if (RefPtr<nsPresContext> presContext = presShell->GetPresContext()) {
presContext->RefreshDriver()->DoTick();
if (RefPtr<nsRefreshDriver> driver = presContext->RefreshDriver()) {
driver->DoTick();
}
}
}
}
Expand Down

0 comments on commit 31d2695

Please sign in to comment.