зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
2829cfa580
Коммит
c64d1e8d90
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче