mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 12:05:22 +00:00
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:
parent
74a9ca50e1
commit
ff1a91f1ec
12
layout/generic/crashtests/986899.html
Normal file
12
layout/generic/crashtests/986899.html
Normal 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>
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user