зеркало из https://github.com/mozilla/pjs.git
Родитель
297c0ad32a
Коммит
00e6dbf1ef
|
@ -1528,6 +1528,8 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
nsLineBox* prevLine;
|
||||
nsLineBox* line = FindLineFor(state.mNextRCFrame, &prevLine, &isFloater);
|
||||
if (line && (PR_FALSE==line->IsBlock()))
|
||||
{
|
||||
if (!isFloater) // punt if isFloater!
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
|
@ -1536,6 +1538,7 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
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
|
||||
|
|
|
@ -1528,6 +1528,8 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
nsLineBox* prevLine;
|
||||
nsLineBox* line = FindLineFor(state.mNextRCFrame, &prevLine, &isFloater);
|
||||
if (line && (PR_FALSE==line->IsBlock()))
|
||||
{
|
||||
if (!isFloater) // punt if isFloater!
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
|
@ -1536,6 +1538,7 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
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
|
||||
|
|
|
@ -1528,6 +1528,8 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
nsLineBox* prevLine;
|
||||
nsLineBox* line = FindLineFor(state.mNextRCFrame, &prevLine, &isFloater);
|
||||
if (line && (PR_FALSE==line->IsBlock()))
|
||||
{
|
||||
if (!isFloater) // punt if isFloater!
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
|
@ -1536,6 +1538,7 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
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
|
||||
|
|
|
@ -1528,6 +1528,8 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
nsLineBox* prevLine;
|
||||
nsLineBox* line = FindLineFor(state.mNextRCFrame, &prevLine, &isFloater);
|
||||
if (line && (PR_FALSE==line->IsBlock()))
|
||||
{
|
||||
if (!isFloater) // punt if isFloater!
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
|
@ -1536,6 +1538,7 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
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
|
||||
|
|
|
@ -1528,6 +1528,8 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
nsLineBox* prevLine;
|
||||
nsLineBox* line = FindLineFor(state.mNextRCFrame, &prevLine, &isFloater);
|
||||
if (line && (PR_FALSE==line->IsBlock()))
|
||||
{
|
||||
if (!isFloater) // punt if isFloater!
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
|
@ -1536,6 +1538,7 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
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
|
||||
|
|
|
@ -1528,6 +1528,8 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
nsLineBox* prevLine;
|
||||
nsLineBox* line = FindLineFor(state.mNextRCFrame, &prevLine, &isFloater);
|
||||
if (line && (PR_FALSE==line->IsBlock()))
|
||||
{
|
||||
if (!isFloater) // punt if isFloater!
|
||||
{
|
||||
nsBlockReflowState incrState(aReflowState, aPresContext, this, aMetrics,
|
||||
NS_BLOCK_MARGIN_ROOT & mState);
|
||||
|
@ -1536,6 +1538,7 @@ nsBlockFrame::Reflow(nsIPresContext* aPresContext,
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче