Fix invalid optimization that prevented style changes on inline elements that caused a reflow from applying to more than the first line. b=98783 r=attinasi sr=hyatt

This commit is contained in:
dbaron%fas.harvard.edu 2002-02-16 16:31:49 +00:00
parent 8e0def5119
commit bd8feefd91
2 changed files with 8 additions and 6 deletions

View File

@ -2196,9 +2196,10 @@ FrameManager::ComputeStyleChangeFor(nsIPresContext* aPresContext,
aTopLevelChange = frameChange;
}
if (aTopLevelChange >= NS_STYLE_HINT_REFLOW) {
// If it's going to cause a reflow (or worse), then don't touch
// the any continuations: they must be taken care of by the reflow.
if (aTopLevelChange >= NS_STYLE_HINT_FRAMECHANGE) {
// If it's going to cause a framechange, then don't bother with
// the continutaions since they'll be clobbered by the frame
// reconstruct anyway.
#ifdef NS_DEBUG
nsIFrame* prevInFlow;
frame->GetPrevInFlow(&prevInFlow);

View File

@ -2196,9 +2196,10 @@ FrameManager::ComputeStyleChangeFor(nsIPresContext* aPresContext,
aTopLevelChange = frameChange;
}
if (aTopLevelChange >= NS_STYLE_HINT_REFLOW) {
// If it's going to cause a reflow (or worse), then don't touch
// the any continuations: they must be taken care of by the reflow.
if (aTopLevelChange >= NS_STYLE_HINT_FRAMECHANGE) {
// If it's going to cause a framechange, then don't bother with
// the continutaions since they'll be clobbered by the frame
// reconstruct anyway.
#ifdef NS_DEBUG
nsIFrame* prevInFlow;
frame->GetPrevInFlow(&prevInFlow);