зеркало из https://github.com/mozilla/pjs.git
GetReflowMetrics now updates the reflow state
This commit is contained in:
Родитель
3797d9dd39
Коммит
9ab9a253eb
|
@ -95,6 +95,19 @@ NS_METHOD BRFrame::GetReflowMetrics(nsIPresContext* aPresContext, nsReflowMetric
|
|||
aMetrics.ascent = fm->GetMaxAscent();
|
||||
aMetrics.descent = fm->GetMaxDescent();
|
||||
NS_RELEASE(fm);
|
||||
|
||||
// Get cached state for containing block frame
|
||||
nsLineLayout* lineLayoutState = nsnull;
|
||||
nsBlockReflowState* state =
|
||||
nsBlockFrame::FindBlockReflowState(aPresContext, this);
|
||||
if (nsnull != state) {
|
||||
lineLayoutState = state->mCurrentLine;
|
||||
if (nsnull != lineLayoutState) {
|
||||
lineLayoutState->mReflowResult =
|
||||
NS_LINE_LAYOUT_REFLOW_RESULT_BREAK_AFTER;
|
||||
}
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче