| Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| index bbb61bb170781c2ce9ddde0911786f4427698791..f6c8d2399e09ea306f3c11b75099d075ef01f73a 100644
|
| --- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| +++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| @@ -2174,9 +2174,10 @@ void CanvasRenderingContext2D::drawTextInternal(const String& text, float x, flo
|
| c->translate(location.x(), location.y());
|
| // We draw when fontWidth is 0 so compositing operations (eg, a "copy" op) still work.
|
| c->scale(FloatSize((fontWidth > 0 ? (width / fontWidth) : 0), 1));
|
| - c->drawBidiText(font, textRunPaintInfo, FloatPoint(0, 0), Font::UseFallbackIfFontNotReady);
|
| - } else
|
| - c->drawBidiText(font, textRunPaintInfo, location, Font::UseFallbackIfFontNotReady);
|
| + c->drawBidiText(font, textRunPaintInfo, FloatPoint(0, 0), UseFallbackIfFontNotReady);
|
| + } else {
|
| + c->drawBidiText(font, textRunPaintInfo, location, UseFallbackIfFontNotReady);
|
| + }
|
|
|
| didDraw(textRunPaintInfo.bounds);
|
| }
|
|
|