Bug 263825. Make paginated floats work, and other fixes. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@171036 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1012,11 +1012,16 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
|
||||
nsIFrame* outOfFlowFrame = nsLayoutUtils::GetFloatFromPlaceholder(aFrame);
|
||||
if (outOfFlowFrame) {
|
||||
nsPlaceholderFrame* placeholder = NS_STATIC_CAST(nsPlaceholderFrame*, aFrame);
|
||||
PRBool didPlace;
|
||||
if (eReflowReason_Incremental == reason) {
|
||||
InitFloat(placeholder, aReflowStatus);
|
||||
didPlace = InitFloat(placeholder, aReflowStatus);
|
||||
}
|
||||
else {
|
||||
AddFloat(placeholder, aReflowStatus);
|
||||
didPlace = AddFloat(placeholder, aReflowStatus);
|
||||
}
|
||||
printf("*** Reflowed float, didPlace=%d, status=%d\n", aReflowStatus);
|
||||
if (!didPlace) {
|
||||
aReflowStatus = NS_INLINE_LINE_BREAK_BEFORE();
|
||||
}
|
||||
if (outOfFlowFrame->GetType() == nsLayoutAtoms::letterFrame) {
|
||||
SetFlag(LL_FIRSTLETTERSTYLEOK, PR_FALSE);
|
||||
|
||||
Reference in New Issue
Block a user