mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
continuing work on bug 25510
r=troy
This commit is contained in:
parent
0d6278177c
commit
5665393ec2
@ -1529,13 +1529,16 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
||||
nsLineBox* line = FindLineFor(state.mNextRCFrame, &prevLine, &isFloater);
|
||||
if (line && (PR_FALSE==line->IsBlock()))
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
incrState.mNextRCFrame = state.mNextRCFrame;
|
||||
PRBool keepGoing;
|
||||
rv = ReflowLine(incrState, line, &keepGoing, PR_TRUE);
|
||||
state.mNextRCFrame = nsnull;
|
||||
}
|
||||
if (!isFloater) // punt if isFloater!
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
incrState.mNextRCFrame = state.mNextRCFrame;
|
||||
PRBool keepGoing;
|
||||
rv = ReflowLine(incrState, line, &keepGoing, PR_TRUE);
|
||||
state.mNextRCFrame = nsnull;
|
||||
}
|
||||
}
|
||||
// XXX To Do: we need to check some metrics here to see if anything changed
|
||||
// if nothing changed, we're done
|
||||
// otherwise, we should mark the line and the previous line both dirty
|
||||
|
@ -1529,13 +1529,16 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
||||
nsLineBox* line = FindLineFor(state.mNextRCFrame, &prevLine, &isFloater);
|
||||
if (line && (PR_FALSE==line->IsBlock()))
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
incrState.mNextRCFrame = state.mNextRCFrame;
|
||||
PRBool keepGoing;
|
||||
rv = ReflowLine(incrState, line, &keepGoing, PR_TRUE);
|
||||
state.mNextRCFrame = nsnull;
|
||||
}
|
||||
if (!isFloater) // punt if isFloater!
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
incrState.mNextRCFrame = state.mNextRCFrame;
|
||||
PRBool keepGoing;
|
||||
rv = ReflowLine(incrState, line, &keepGoing, PR_TRUE);
|
||||
state.mNextRCFrame = nsnull;
|
||||
}
|
||||
}
|
||||
// XXX To Do: we need to check some metrics here to see if anything changed
|
||||
// if nothing changed, we're done
|
||||
// otherwise, we should mark the line and the previous line both dirty
|
||||
|
@ -1529,13 +1529,16 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
||||
nsLineBox* line = FindLineFor(state.mNextRCFrame, &prevLine, &isFloater);
|
||||
if (line && (PR_FALSE==line->IsBlock()))
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
incrState.mNextRCFrame = state.mNextRCFrame;
|
||||
PRBool keepGoing;
|
||||
rv = ReflowLine(incrState, line, &keepGoing, PR_TRUE);
|
||||
state.mNextRCFrame = nsnull;
|
||||
}
|
||||
if (!isFloater) // punt if isFloater!
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
incrState.mNextRCFrame = state.mNextRCFrame;
|
||||
PRBool keepGoing;
|
||||
rv = ReflowLine(incrState, line, &keepGoing, PR_TRUE);
|
||||
state.mNextRCFrame = nsnull;
|
||||
}
|
||||
}
|
||||
// XXX To Do: we need to check some metrics here to see if anything changed
|
||||
// if nothing changed, we're done
|
||||
// otherwise, we should mark the line and the previous line both dirty
|
||||
|
@ -1529,13 +1529,16 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
||||
nsLineBox* line = FindLineFor(state.mNextRCFrame, &prevLine, &isFloater);
|
||||
if (line && (PR_FALSE==line->IsBlock()))
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
incrState.mNextRCFrame = state.mNextRCFrame;
|
||||
PRBool keepGoing;
|
||||
rv = ReflowLine(incrState, line, &keepGoing, PR_TRUE);
|
||||
state.mNextRCFrame = nsnull;
|
||||
}
|
||||
if (!isFloater) // punt if isFloater!
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
incrState.mNextRCFrame = state.mNextRCFrame;
|
||||
PRBool keepGoing;
|
||||
rv = ReflowLine(incrState, line, &keepGoing, PR_TRUE);
|
||||
state.mNextRCFrame = nsnull;
|
||||
}
|
||||
}
|
||||
// XXX To Do: we need to check some metrics here to see if anything changed
|
||||
// if nothing changed, we're done
|
||||
// otherwise, we should mark the line and the previous line both dirty
|
||||
|
@ -1529,13 +1529,16 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
||||
nsLineBox* line = FindLineFor(state.mNextRCFrame, &prevLine, &isFloater);
|
||||
if (line && (PR_FALSE==line->IsBlock()))
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
incrState.mNextRCFrame = state.mNextRCFrame;
|
||||
PRBool keepGoing;
|
||||
rv = ReflowLine(incrState, line, &keepGoing, PR_TRUE);
|
||||
state.mNextRCFrame = nsnull;
|
||||
}
|
||||
if (!isFloater) // punt if isFloater!
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
incrState.mNextRCFrame = state.mNextRCFrame;
|
||||
PRBool keepGoing;
|
||||
rv = ReflowLine(incrState, line, &keepGoing, PR_TRUE);
|
||||
state.mNextRCFrame = nsnull;
|
||||
}
|
||||
}
|
||||
// XXX To Do: we need to check some metrics here to see if anything changed
|
||||
// if nothing changed, we're done
|
||||
// otherwise, we should mark the line and the previous line both dirty
|
||||
|
@ -1529,13 +1529,16 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
||||
nsLineBox* line = FindLineFor(state.mNextRCFrame, &prevLine, &isFloater);
|
||||
if (line && (PR_FALSE==line->IsBlock()))
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
incrState.mNextRCFrame = state.mNextRCFrame;
|
||||
PRBool keepGoing;
|
||||
rv = ReflowLine(incrState, line, &keepGoing, PR_TRUE);
|
||||
state.mNextRCFrame = nsnull;
|
||||
}
|
||||
if (!isFloater) // punt if isFloater!
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
incrState.mNextRCFrame = state.mNextRCFrame;
|
||||
PRBool keepGoing;
|
||||
rv = ReflowLine(incrState, line, &keepGoing, PR_TRUE);
|
||||
state.mNextRCFrame = nsnull;
|
||||
}
|
||||
}
|
||||
// XXX To Do: we need to check some metrics here to see if anything changed
|
||||
// if nothing changed, we're done
|
||||
// otherwise, we should mark the line and the previous line both dirty
|
||||
|
Loading…
Reference in New Issue
Block a user