mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Don't overshoot the last sibling when iterating frames. Bug 66329, r=roc
This commit is contained in:
parent
e231090eae
commit
f54e10d007
2
layout/base/crashtests/663295.html
Normal file
2
layout/base/crashtests/663295.html
Normal 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
|
||||
ت</span></body></html>
|
@ -331,3 +331,4 @@ load 645193.html
|
||||
load 650475.xhtml
|
||||
load 650489.xhtml
|
||||
load 653133-1.html
|
||||
load 663295.html
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user