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
Родитель f3b0f6c470
Коммит 14ec465e0d
2 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

@ -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);

Просмотреть файл

@ -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);