Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Unified Diff: Source/WebKit/chromium/src/WebFontImpl.cpp

Issue 14160005: Track the region where text is painted. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase with TOT Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebKit/chromium/src/WebFontImpl.cpp
diff --git a/Source/WebKit/chromium/src/WebFontImpl.cpp b/Source/WebKit/chromium/src/WebFontImpl.cpp
index b34cf43e12aeca193f014d0c6941023e68dd76a6..8ca57248551bccf6c3a85505126b0177dcb238b4 100644
--- a/Source/WebKit/chromium/src/WebFontImpl.cpp
+++ b/Source/WebKit/chromium/src/WebFontImpl.cpp
@@ -102,7 +102,7 @@ void WebFontImpl::drawText(WebCanvas* canvas, const WebTextRun& run, const WebFl
gc.setShouldSmoothFonts(canvasIsOpaque);
gc.setFillColor(color, ColorSpaceDeviceRGB);
gc.clip(WebCore::FloatRect(clip));
- m_font.drawText(&gc, run, leftBaseline, from, to);
+ m_font.drawText(&gc, run, leftBaseline, WebCore::FloatRect(clip), from, to);
eseidel 2013/04/18 21:04:38 nit: Seems like a local would be useful. We do th
alokp 2013/04/18 22:22:37 Done.
gc.restore();
#if defined(WIN32)
« no previous file with comments | « no previous file | Source/WebKit/chromium/tests/PlatformContextSkiaTest.cpp » ('j') | Source/core/platform/graphics/Font.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698