mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 15:26:07 +00:00
Changed Reflow() to use style info from the HTML reflow state
This commit is contained in:
parent
82c972db33
commit
4733b6390e
@ -94,9 +94,7 @@ BRFrame::Reflow(nsIPresContext& aPresContext,
|
||||
aReflowState.lineLayout->SetBRFrame(this);
|
||||
|
||||
// Return our reflow status
|
||||
const nsStyleDisplay* display = (const nsStyleDisplay*)
|
||||
mStyleContext->GetStyleData(eStyleStruct_Display);
|
||||
PRUint32 breakType = display->mBreakType;
|
||||
PRUint32 breakType = aReflowState.mStyleDisplay->mBreakType;
|
||||
if (NS_STYLE_CLEAR_NONE == breakType) {
|
||||
breakType = NS_STYLE_CLEAR_LINE;
|
||||
}
|
||||
|
@ -94,9 +94,7 @@ BRFrame::Reflow(nsIPresContext& aPresContext,
|
||||
aReflowState.lineLayout->SetBRFrame(this);
|
||||
|
||||
// Return our reflow status
|
||||
const nsStyleDisplay* display = (const nsStyleDisplay*)
|
||||
mStyleContext->GetStyleData(eStyleStruct_Display);
|
||||
PRUint32 breakType = display->mBreakType;
|
||||
PRUint32 breakType = aReflowState.mStyleDisplay->mBreakType;
|
||||
if (NS_STYLE_CLEAR_NONE == breakType) {
|
||||
breakType = NS_STYLE_CLEAR_LINE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user