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

Unified Diff: third_party/WebKit/Source/platform/fonts/Font.cpp

Issue 1966703002: Support includePartialGlyphs=false in Font::offsetForPositionForComplexText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment as per eae review Created 4 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: third_party/WebKit/Source/platform/fonts/Font.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/Font.cpp b/third_party/WebKit/Source/platform/fonts/Font.cpp
index 1a0c8df3fb8909689aa4d72ab0d55164069cc8a8..47f4bbfde3fe38741e51b64ceb2a9864645c12e0 100644
--- a/third_party/WebKit/Source/platform/fonts/Font.cpp
+++ b/third_party/WebKit/Source/platform/fonts/Font.cpp
@@ -742,7 +742,7 @@ int Font::offsetForPositionForComplexText(const TextRun& run, float xFloat,
bool includePartialGlyphs) const
{
CachingWordShaper shaper(m_fontFallbackList->shapeCache(m_fontDescription));
- return shaper.offsetForPosition(this, run, xFloat);
+ return shaper.offsetForPosition(this, run, xFloat, includePartialGlyphs);
}
// Return the rectangle for selecting the given range of code-points in the TextRun.

Powered by Google App Engine
This is Rietveld 408576698