mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1237227 - Check the return of context->GetDisplayRootPresContext() for validity. r=roc
This commit is contained in:
parent
ce1ce5cb79
commit
ca41bc900a
@ -1087,7 +1087,9 @@ nsView::DidCompositeWindow(const TimeStamp& aCompositeStart,
|
||||
nsAutoScriptBlocker scriptBlocker;
|
||||
|
||||
nsPresContext* context = presShell->GetPresContext();
|
||||
context->GetDisplayRootPresContext()->GetRootPresContext()->NotifyDidPaintForSubtree(nsIPresShell::PAINT_COMPOSITE);
|
||||
nsRootPresContext* rootContext = context->GetDisplayRootPresContext();
|
||||
MOZ_ASSERT(rootContext, "rootContext must be valid.");
|
||||
rootContext->GetRootPresContext()->NotifyDidPaintForSubtree(nsIPresShell::PAINT_COMPOSITE);
|
||||
|
||||
// If the two timestamps are identical, this was likely a fake composite
|
||||
// event which wouldn't be terribly useful to display.
|
||||
|
Loading…
Reference in New Issue
Block a user