Rename isSpace to treatAsSpace. Move it and the rounding hack function into
[WebKit-https.git] / WebCore / platform / Font.h
index 5fa26edf176e076005c836db40cd0cfbb9a41316..53c7a59fd2ca4032d362224903f54554c7e06244 100644 (file)
@@ -152,6 +152,13 @@ private:
 public:
     static void setAlwaysUseComplexPath(bool);
     static bool gAlwaysUseComplexPath;
+    
+    static const uint8_t gRoundingHackCharacterTable[256];
+    static bool treatAsSpace(UChar c) { return c == ' ' || c == '\t' || c == '\n' || c == 0x00A0; }
+    static bool isRoundingHackCharacter(UChar32 c)
+    {
+        return (((c & ~0xFF) == 0 && gRoundingHackCharacterTable[c])); 
+    }
 #endif
 
 private:
@@ -161,11 +168,6 @@ private:
     short m_wordSpacing;
 };
 
-#if __APPLE__
-    // FIXME: This will eventually be cross-platform, but we want to keep Windows compiling for now.
-    bool isSpace(unsigned c);
-    bool isRoundingHackCharacter(UChar c);
-#endif
 }
 
 #endif