Bug 1436855: Flush notifications via the document in AsyncScrollPortEvent. r?bz draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 12 Feb 2018 01:05:14 +0100
changeset 753713 c78915dcc887dbb38fa11adf288bbdccce10b906
parent 753712 4819908fcd5c17397522d62be138cf09556c3389
child 753785 ff088dfa2b0af11fd705221996077d7ce60ce6e4
push id98658
push userbmo:emilio@crisal.io
push dateMon, 12 Feb 2018 01:36:53 +0000
reviewersbz
bugs1436855
milestone60.0a1
Bug 1436855: Flush notifications via the document in AsyncScrollPortEvent. r?bz One at a time... MozReview-Commit-ID: JbPtIneDlg0
layout/generic/nsGfxScrollFrame.cpp
--- 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)
 {