Bug 803556 - Schedule a paint whenever we reflow a display root frame. r=roc

This commit is contained in:
Matt Woodrow 2012-10-25 12:04:41 +13:00
parent 440c757a16
commit 05fe77431e
2 changed files with 4 additions and 0 deletions

View File

@ -355,6 +355,8 @@ nsListControlFrame::Reflow(nsPresContext* aPresContext,
NS_PRECONDITION(aReflowState.ComputedWidth() != NS_UNCONSTRAINEDSIZE,
"Must have a computed width");
SchedulePaint();
mHasPendingInterruptAtStartOfReflow = aPresContext->HasPendingInterrupt();
// If all the content and frames are here

View File

@ -385,6 +385,8 @@ nsMenuPopupFrame::LayoutPopup(nsBoxLayoutState& aState, nsIFrame* aParentMenu, b
if (!mGeneratedChildren)
return;
SchedulePaint();
bool shouldPosition = true;
bool isOpen = IsOpen();
if (!isOpen) {