if (aTopLevelChange >= NS_STYLE_HINT_REFLOW) {   #ifdef NS_DEBUG nsIFrame* prevInFlow; frame->GetPrevInFlow(&prevInFlow); NS_ASSERTION(!prevInFlow, "continuing frame had more severe impact than first-in-flow"); #endif break; }
FrameManager::ComputeStyleChangeFor(nsIPresContext* aPresContext,                                    nsIFrame* aFrame,                                     PRInt32 aAttrNameSpaceID,                                    nsIAtom* aAttribute,                                    nsStyleChangeList& aChangeList,                                    PRInt32 aMinChange,                                    PRInt32& aTopLevelChange){  NS_ENSURE_TRUE(mPresShell, NS_ERROR_NOT_AVAILABLE);  aTopLevelChange = NS_STYLE_HINT_NONE;  nsIFrame* frame = aFrame;  do {    nsIStyleContext* styleContext = nsnull;    frame->GetStyleContext(&styleContext);    nsIStyleContext* parentContext = styleContext->GetParent();    PRInt32 frameChange;    ReResolveStyleContext(aPresContext, frame, parentContext, nsnull,                          aAttrNameSpaceID, aAttribute,                          aChangeList, aMinChange, frameChange);#ifdef NS_DEBUG    VerifyStyleTree(aPresContext, frame, parentContext);#endif    NS_IF_RELEASE(parentContext);    NS_RELEASE(styleContext);    if (aTopLevelChange < frameChange) {      aTopLevelChange = frameChange;    }    frame->GetNextInFlow(&frame);  } while (frame);  return NS_OK;}