Aways use the root span's writing mode when recursing into child spans in nsLineLayout::ApplyFrameJustification. Bug 986899, r=jfkthame

This commit is contained in:
Simon Montagu 2014-03-24 10:50:13 -07:00
parent a739c5ac9d
commit 37ef931035
3 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div style="-moz-text-align-last: justify; white-space: pre-line;"><span dir="rtl">
B</span></div>
</body>
</html>

View File

@ -527,4 +527,5 @@ asserts(4-8) load 944909-1.html
test-pref(layout.css.sticky.enabled,true) load 949932.html
load 973701-1.xhtml
load 973701-2.xhtml
load 986899.html
load outline-on-frameset.xhtml

View File

@ -2456,7 +2456,7 @@ nsLineLayout::ApplyFrameJustification(PerSpanData* aPSD, FrameJustificationState
// Don't reposition bullets (and other frames that occur out of X-order?)
if (!pfd->GetFlag(PFD_ISBULLET)) {
nscoord dw = 0;
WritingMode lineWM = aPSD->mWritingMode;
WritingMode lineWM = mRootSpan->mWritingMode;
pfd->mBounds.IStart(lineWM) += deltaICoord;