| Index: Source/WebKit/chromium/src/WebFontImpl.cpp
|
| diff --git a/Source/WebKit/chromium/src/WebFontImpl.cpp b/Source/WebKit/chromium/src/WebFontImpl.cpp
|
| index 2f7fce86a73174b4388d2fac8a2ae62c51a00f76..b6d16197a415181ee66fb19101323f4ed5689a26 100644
|
| --- a/Source/WebKit/chromium/src/WebFontImpl.cpp
|
| +++ b/Source/WebKit/chromium/src/WebFontImpl.cpp
|
| @@ -93,13 +93,18 @@ void WebFontImpl::drawText(WebCanvas* canvas, const WebTextRun& run, const WebFl
|
| int from, int to) const
|
| {
|
| FontCachePurgePreventer fontCachePurgePreventer;
|
| + WebCore::FloatRect textClipRect(clip);
|
| + TextRunPaintInfo runInfo(run);
|
| + runInfo.from = from;
|
| + runInfo.to = to;
|
| + runInfo.bounds = textClipRect;
|
| GraphicsContext gc(canvas);
|
|
|
| gc.save();
|
| gc.setShouldSmoothFonts(canvasIsOpaque);
|
| gc.setFillColor(color, ColorSpaceDeviceRGB);
|
| - gc.clip(WebCore::FloatRect(clip));
|
| - m_font.drawText(&gc, run, leftBaseline, from, to);
|
| + gc.clip(textClipRect);
|
| + m_font.drawText(&gc, runInfo, leftBaseline);
|
| gc.restore();
|
|
|
| #if defined(WIN32)
|
|
|