зеркало из https://github.com/mozilla/gecko-dev.git
bug 698185 - convert coordinates properly when processing bidi runs in canvas text. r=dbaron
This commit is contained in:
Родитель
c6aa3b8a5b
Коммит
0998411baf
|
@ -2771,7 +2771,7 @@ struct NS_STACK_CLASS nsCanvasBidiProcessor : public nsBidiPresUtils::BidiProces
|
||||||
virtual void DrawText(nscoord xOffset, nscoord width)
|
virtual void DrawText(nscoord xOffset, nscoord width)
|
||||||
{
|
{
|
||||||
gfxPoint point = mPt;
|
gfxPoint point = mPt;
|
||||||
point.x += xOffset * mAppUnitsPerDevPixel;
|
point.x += xOffset;
|
||||||
|
|
||||||
// offset is given in terms of left side of string
|
// offset is given in terms of left side of string
|
||||||
if (mTextRun->IsRightToLeft()) {
|
if (mTextRun->IsRightToLeft()) {
|
||||||
|
|
|
@ -2975,7 +2975,7 @@ struct NS_STACK_CLASS nsCanvasBidiProcessorAzure : public nsBidiPresUtils::BidiP
|
||||||
virtual void DrawText(nscoord xOffset, nscoord width)
|
virtual void DrawText(nscoord xOffset, nscoord width)
|
||||||
{
|
{
|
||||||
gfxPoint point = mPt;
|
gfxPoint point = mPt;
|
||||||
point.x += xOffset * mAppUnitsPerDevPixel;
|
point.x += xOffset;
|
||||||
|
|
||||||
// offset is given in terms of left side of string
|
// offset is given in terms of left side of string
|
||||||
if (mTextRun->IsRightToLeft()) {
|
if (mTextRun->IsRightToLeft()) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче