Bug 1436855: Flush notifications via the document in AsyncScrollPortEvent. r?bz
One at a time...
MozReview-Commit-ID: JbPtIneDlg0
--- a/layout/generic/nsGfxScrollFrame.cpp
+++ b/layout/generic/nsGfxScrollFrame.cpp
@@ -4946,17 +4946,17 @@ ScrollFrameHelper::PostScrollEvent()
// The ScrollEvent constructor registers itself with the refresh driver.
mScrollEvent = new ScrollEvent(this);
}
NS_IMETHODIMP
ScrollFrameHelper::AsyncScrollPortEvent::Run()
{
if (mHelper) {
- mHelper->mOuter->PresContext()->GetPresShell()->
+ mHelper->mOuter->PresContext()->Document()->
FlushPendingNotifications(FlushType::InterruptibleLayout);
}
return mHelper ? mHelper->FireScrollPortEvent() : NS_OK;
}
bool
nsXULScrollFrame::AddHorizontalScrollbar(nsBoxLayoutState& aState, bool aOnBottom)
{