Change the FrameNeedsReflow API to pass the dirty flags to be added directly to
the method, instead of setting them before calling the method. That way we can avoid reflowing the ancestor of a reflow root which is not itself dirty but has dirty children. This also makes it harder to set dirty bits inconsistently with the FrameNeedsReflow call. Bug 378784, r+sr=dbaron, pending rbs' review on the mathml parts. git-svn-id: svn://10.0.0.236/trunk@226007 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -293,8 +293,7 @@ nsHTMLButtonControlFrame::Reflow(nsPresContext* aPresContext,
|
||||
|
||||
// XXXbz Eventually we may want to check-and-bail if
|
||||
// !aReflowState.ShouldReflowAllKids() &&
|
||||
// !(firstKid->GetStateBits() &
|
||||
// (NS_FRAME_IS_DIRTY | NS_FRAME_HAS_DIRTY_CHILDREN)).
|
||||
// !NS_SUBTREE_DIRTY(firstKid).
|
||||
// We'd need to cache our ascent for that, of course.
|
||||
|
||||
nsMargin focusPadding = mRenderer.GetAddedButtonBorderAndPadding();
|
||||
|
||||
Reference in New Issue
Block a user