Bug 374090, Crash [@ nsGfxScrollFrameInner::GetScrollPortSize] with noframes and setting binding on root element, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@224486 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1514,12 +1514,6 @@ nsresult
|
||||
nsGfxScrollFrameInner::FireScrollPortEvent()
|
||||
{
|
||||
mAsyncScrollPortEvent.Forget();
|
||||
mOuter->PresContext()->GetPresShell()->
|
||||
FlushPendingNotifications(Flush_OnlyReflow);
|
||||
if (mAsyncScrollPortEvent.IsPending()) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsSize scrollportSize = GetScrollPortSize();
|
||||
nsSize childSize = GetScrolledRect(scrollportSize).Size();
|
||||
|
||||
@@ -1892,6 +1886,10 @@ nsGfxScrollFrameInner::PostScrollEvent()
|
||||
NS_IMETHODIMP
|
||||
nsGfxScrollFrameInner::AsyncScrollPortEvent::Run()
|
||||
{
|
||||
if (mInner) {
|
||||
mInner->mOuter->PresContext()->GetPresShell()->
|
||||
FlushPendingNotifications(Flush_OnlyReflow);
|
||||
}
|
||||
return mInner ? mInner->FireScrollPortEvent() : NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user