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

Unified Diff: Source/core/platform/graphics/chromium/UniscribeHelper.cpp

Issue 14160005: Track the region where text is painted. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed build on win and mac Created 7 years, 7 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/core/platform/graphics/chromium/UniscribeHelper.cpp
diff --git a/Source/core/platform/graphics/chromium/UniscribeHelper.cpp b/Source/core/platform/graphics/chromium/UniscribeHelper.cpp
index 83ee2408a3e710712253e89245474af2024f5f35..20dd4a26bff12b15bbd6dfeaeafe799ac3c679d4 100644
--- a/Source/core/platform/graphics/chromium/UniscribeHelper.cpp
+++ b/Source/core/platform/graphics/chromium/UniscribeHelper.cpp
@@ -324,8 +324,10 @@ int UniscribeHelper::xToCharacter(int x) const
return 0;
}
-void UniscribeHelper::draw(GraphicsContext* graphicsContext,
- HDC dc, int x, int y, int from, int to)
+void UniscribeHelper::draw(GraphicsContext* graphicsContext, HDC dc,
+ int x, int y,
+ const FloatRect& textRect,
+ int from, int to)
{
HGDIOBJ oldFont = 0;
int curX = x;
@@ -426,7 +428,8 @@ void UniscribeHelper::draw(GraphicsContext* graphicsContext,
&shaping.m_glyphs[fromGlyph],
advances,
&shaping.m_offsets[fromGlyph],
- &origin);
+ origin,
+ textRect);
textOutOk = true;
if (!textOutOk && 0 == executions) {
« no previous file with comments | « Source/core/platform/graphics/chromium/UniscribeHelper.h ('k') | Source/core/platform/graphics/harfbuzz/FontHarfBuzz.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698