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; |