Clean up interface to Font::expansionOpportunityCount()
[WebKit-https.git] / Source / WebCore / platform / graphics / Font.h
index 58c40ab6f115f528747c84fb9f3305221ffae98f..d4559a7e8bc5fe43ca450d2f558e9c3e231b5f45 100644 (file)
@@ -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;