Don't overshoot the last sibling when iterating frames. Bug 66329, r=roc

This commit is contained in:
Simon Montagu 2011-06-15 10:45:57 +03:00
parent e231090eae
commit f54e10d007
3 changed files with 4 additions and 1 deletions

View File

@ -0,0 +1,2 @@
<!DOCTYPE html><html style="font-size-adjust: 193373343913878; white-space: pre-line;"><body onload="document.documentElement.style.MozColumnGap='1px';"><span>A B C
&#x062A;</span></body></html>

View File

@ -331,3 +331,4 @@ load 645193.html
load 650475.xhtml
load 650489.xhtml
load 653133-1.html
load 663295.html

View File

@ -775,7 +775,7 @@ nsBidiPresUtils::TraverseFrames(nsBlockFrame* aBlockFrame,
* If the frame ends before the new line, save the text and move
* into the next continuation
*/
while (end < endLine) {
while (end < endLine && nextSibling) {
mBuffer.Append(Substring(text, start, end - start));
frame = frame->GetNextContinuation();
NS_ASSERTION(frame, "Premature end of continuation chain");