Added support for StyleChanged reflow reason

This commit is contained in:
kipp%netscape.com 1998-11-20 17:41:44 +00:00
Родитель 27d8038001
Коммит be3aca0f4e
8 изменённых файлов: 16 добавлений и 8 удалений

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

@ -1756,7 +1756,8 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
rv = ChildIncrementalReflow(state);
}
}
else if (eReflowReason_Resize == state.reason) {
else if ((eReflowReason_Resize == state.reason) ||
(eReflowReason_StyleChange == state.reason)) {
DrainOverflowLines();
rv = ResizeReflow(state);
}

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

@ -1756,7 +1756,8 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
rv = ChildIncrementalReflow(state);
}
}
else if (eReflowReason_Resize == state.reason) {
else if ((eReflowReason_Resize == state.reason) ||
(eReflowReason_StyleChange == state.reason)) {
DrainOverflowLines();
rv = ResizeReflow(state);
}

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

@ -1756,7 +1756,8 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
rv = ChildIncrementalReflow(state);
}
}
else if (eReflowReason_Resize == state.reason) {
else if ((eReflowReason_Resize == state.reason) ||
(eReflowReason_StyleChange == state.reason)) {
DrainOverflowLines();
rv = ResizeReflow(state);
}

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

@ -610,7 +610,8 @@ nsInlineFrame::Reflow(nsIPresContext& aPresContext,
aStatus = ChildIncrementalReflow(state, inlineReflow);
}
}
else if (eReflowReason_Resize == state.reason) {
else if ((eReflowReason_Resize == state.reason) ||
(eReflowReason_StyleChange == state.reason)) {
DrainOverflowLists(aPresContext);
aStatus = ResizeReflow(state, inlineReflow);
}

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

@ -1756,7 +1756,8 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
rv = ChildIncrementalReflow(state);
}
}
else if (eReflowReason_Resize == state.reason) {
else if ((eReflowReason_Resize == state.reason) ||
(eReflowReason_StyleChange == state.reason)) {
DrainOverflowLines();
rv = ResizeReflow(state);
}

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

@ -1756,7 +1756,8 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
rv = ChildIncrementalReflow(state);
}
}
else if (eReflowReason_Resize == state.reason) {
else if ((eReflowReason_Resize == state.reason) ||
(eReflowReason_StyleChange == state.reason)) {
DrainOverflowLines();
rv = ResizeReflow(state);
}

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

@ -1756,7 +1756,8 @@ nsBlockFrame::Reflow(nsIPresContext& aPresContext,
rv = ChildIncrementalReflow(state);
}
}
else if (eReflowReason_Resize == state.reason) {
else if ((eReflowReason_Resize == state.reason) ||
(eReflowReason_StyleChange == state.reason)) {
DrainOverflowLines();
rv = ResizeReflow(state);
}

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

@ -610,7 +610,8 @@ nsInlineFrame::Reflow(nsIPresContext& aPresContext,
aStatus = ChildIncrementalReflow(state, inlineReflow);
}
}
else if (eReflowReason_Resize == state.reason) {
else if ((eReflowReason_Resize == state.reason) ||
(eReflowReason_StyleChange == state.reason)) {
DrainOverflowLists(aPresContext);
aStatus = ResizeReflow(state, inlineReflow);
}