Zero the saved frame when creating a new line iterator for a new column. Bug 695861, r=roc

This commit is contained in:
Simon Montagu 2011-11-03 11:35:04 +02:00
parent 65c8b48385
commit 47095245f8
3 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<body onload="document.documentElement.offsetHeight; document.getElementById('s').style.textTransform='uppercase'; document.documentElement.offsetHeight; ">
<div style="white-space: pre-wrap; -moz-column-count: 2;"><span id="s" style="unicode-bidi: -moz-isolate;">
<div style="direction: rtl;"></div></span></div>
</body>
</html>

View File

@ -343,3 +343,4 @@ load 665837.html
load 668941.xhtml
load 670226.html
asserts(2) load 675246-1.xhtml # Bug 675713
load 695861.html

View File

@ -643,6 +643,7 @@ nsBidiPresUtils::Resolve(nsBlockFrame* aBlockFrame)
block->RemoveStateBits(NS_BLOCK_NEEDS_BIDI_RESOLUTION);
nsBlockInFlowLineIterator lineIter(block, block->begin_lines(), false);
bpd.mPrevFrame = nsnull;
bpd.GetSubParagraph()->mPrevFrame = nsnull;
TraverseFrames(aBlockFrame, &lineIter, block->GetFirstPrincipalChild(), &bpd);
}