Bug 1542407 - Make nsIFrame use mozilla::PresShell directly rather than via nsIPresShell r=emilio
Except retrieving from weak reference, `nsIFrame` should treat `mozilla::PresShell` directly rather than via `nsIPresShell`. Differential Revision: https://phabricator.services.mozilla.com/D26388
This commit is contained in:
@@ -1059,9 +1059,8 @@ void nsImageFrame::Reflow(nsPresContext* aPresContext, ReflowOutput& aMetrics,
|
||||
FinishAndStoreOverflow(&aMetrics, aReflowInput.mStyleDisplay);
|
||||
|
||||
if ((GetStateBits() & NS_FRAME_FIRST_REFLOW) && !mReflowCallbackPosted) {
|
||||
nsIPresShell* shell = PresShell();
|
||||
mReflowCallbackPosted = true;
|
||||
shell->PostReflowCallback(this);
|
||||
PresShell()->PostReflowCallback(this);
|
||||
}
|
||||
|
||||
NS_FRAME_TRACE(NS_FRAME_TRACE_CALLS, ("exit nsImageFrame::Reflow: size=%d,%d",
|
||||
|
||||
Reference in New Issue
Block a user