X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FWebCore%2Fplatform%2Fgraphics%2FFont.h;h=d4559a7e8bc5fe43ca450d2f558e9c3e231b5f45;hp=58c40ab6f115f528747c84fb9f3305221ffae98f;hb=c2158a221353468c83cf6c596077adeafdde3247;hpb=114f8365ded692c5e468f8d13d262155187f718f diff --git a/Source/WebCore/platform/graphics/Font.h b/Source/WebCore/platform/graphics/Font.h index 58c40ab6f115..d4559a7e8bc5 100644 --- a/Source/WebCore/platform/graphics/Font.h +++ b/Source/WebCore/platform/graphics/Font.h @@ -201,8 +201,7 @@ public: static bool isCJKIdeograph(UChar32); static bool isCJKIdeographOrSymbol(UChar32); - static unsigned expansionOpportunityCount(const LChar*, size_t length, TextDirection, bool& isAfterExpansion); - static unsigned expansionOpportunityCount(const UChar*, size_t length, TextDirection, bool& isAfterExpansion); + static unsigned expansionOpportunityCount(const StringView&, TextDirection, bool& isAfterExpansion); WEBCORE_EXPORT static void setShouldUseSmoothing(bool); WEBCORE_EXPORT static bool shouldUseSmoothing(); @@ -240,6 +239,9 @@ private: int offsetForPositionForComplexText(const TextRun&, float position, bool includePartialGlyphs) const; void adjustSelectionRectForComplexText(const TextRun&, LayoutRect& selectionRect, int from, int to) const; + static unsigned expansionOpportunityCountInternal(const LChar*, size_t length, TextDirection, bool& isAfterExpansion); + static unsigned expansionOpportunityCountInternal(const UChar*, size_t length, TextDirection, bool& isAfterExpansion); + friend struct WidthIterator; friend class SVGTextRunRenderingContext;