зеркало из https://github.com/mozilla/gecko-dev.git
Added support for StyleChanged reflow reason
This commit is contained in:
Родитель
27d8038001
Коммит
be3aca0f4e
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче