зеркало из https://github.com/mozilla/gecko-dev.git
imported patch 435856
This commit is contained in:
Родитель
c1dfa19c64
Коммит
01661c620a
|
@ -371,7 +371,12 @@ nsPageFrame::DrawHeaderFooter(nsIRenderingContext& aRenderingContext,
|
|||
return; // bail if couldn't find the correct length
|
||||
}
|
||||
|
||||
PresContext()->SetBidiEnabled(HasRTLChars(str));
|
||||
// Use this form rather than SetBidiEnabled(HasRTLChars(str)) so as not to
|
||||
// turn off bidi processing when printing a page with bidi content in the
|
||||
// page but not in the print headers.
|
||||
if (HasRTLChars(str)) {
|
||||
PresContext()->SetBidiEnabled(PR_TRUE);
|
||||
}
|
||||
|
||||
// cacl the x and y positions of the text
|
||||
nscoord x = GetXPosition(aRenderingContext, aRect, aJust, str);
|
||||
|
|
Загрузка…
Ссылка в новой задаче