mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-30 01:59:29 +00:00
GetReflowMetrics now updates the reflow state
This commit is contained in:
parent
61caa1fb64
commit
9cf0e6fdfb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user