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

Unified Diff: Source/platform/fonts/Font.h

Issue 642863005: Consolidate Font::codePath kerning & ligatures exceptions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Emphasis fix Created 6 years, 2 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
« no previous file with comments | « no previous file | Source/platform/fonts/Font.cpp » ('j') | Source/platform/fonts/Font.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/Font.h
diff --git a/Source/platform/fonts/Font.h b/Source/platform/fonts/Font.h
index f80de989b2b1c0e4d464f03a8e21c07087bf2b79..77a14a0655108bf39685450a2a8faacd1395ef25 100644
--- a/Source/platform/fonts/Font.h
+++ b/Source/platform/fonts/Font.h
@@ -131,7 +131,8 @@ public:
std::pair<GlyphData, GlyphPage*> glyphDataAndPageForCharacter(UChar32&, bool mirror, bool normalizeSpace = false, FontDataVariant = AutoVariant) const;
bool primaryFontHasGlyphForCharacter(UChar32) const;
- CodePath codePath(const TextRun&) const;
+ CodePath codePath(const TextRun& run) const { return codePath(run, 0, run.length()); }
+ CodePath codePath(const TextRun&, int from, int to) const;
PassTextBlobPtr buildTextBlob(const TextRunPaintInfo&, const FloatPoint& textOrigin, bool couldUseLCDRenderedText, CustomFontNotReadyAction = DoNotPaintIfFontNotReady) const;
void drawTextBlob(GraphicsContext*, const SkTextBlob*, const SkPoint& origin) const;
@@ -169,7 +170,6 @@ private:
public:
// Useful for debugging the different font rendering code paths.
static void setCodePath(CodePath);
- static CodePath codePath();
static CodePath s_codePath;
FontSelector* fontSelector() const;
« no previous file with comments | « no previous file | Source/platform/fonts/Font.cpp » ('j') | Source/platform/fonts/Font.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698