Make sure to not call ProcessRestyledFrames if we have a non-reframe hint and

no frame.  Followup to bug 230170.
This commit is contained in:
bzbarsky%mit.edu 2004-08-10 04:44:10 +00:00
Родитель 2829cfa580
Коммит c64d1e8d90
2 изменённых файлов: 6 добавлений и 2 удалений

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

@ -13327,7 +13327,9 @@ ProcessRestyle(nsISupports* aContent,
if (aData.mRestyleHint & eReStyle_Self) {
shell->FrameConstructor()->RestyleElement(context, content, primaryFrame,
aData.mChangeHint);
} else if (aData.mChangeHint != NS_STYLE_HINT_NONE) {
} else if (aData.mChangeHint != NS_STYLE_HINT_NONE &&
(primaryFrame ||
(aData.mChangeHint & nsChangeHint_ReconstructFrame))) {
// Don't need to recompute style; just apply the hint
nsStyleChangeList changeList;
changeList.AppendChange(primaryFrame, content, aData.mChangeHint);

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

@ -13327,7 +13327,9 @@ ProcessRestyle(nsISupports* aContent,
if (aData.mRestyleHint & eReStyle_Self) {
shell->FrameConstructor()->RestyleElement(context, content, primaryFrame,
aData.mChangeHint);
} else if (aData.mChangeHint != NS_STYLE_HINT_NONE) {
} else if (aData.mChangeHint != NS_STYLE_HINT_NONE &&
(primaryFrame ||
(aData.mChangeHint & nsChangeHint_ReconstructFrame))) {
// Don't need to recompute style; just apply the hint
nsStyleChangeList changeList;
changeList.AppendChange(primaryFrame, content, aData.mChangeHint);