Fix a Wx build error.
[WebKit-https.git] / WebCore / platform / graphics / wx / GlyphMapWx.cpp
index 5213d6d4935d5d3c27adb425f2d597e4f87947dc..ebf86e4dd304a433a82a2adebce104c3aa0114a3 100755 (executable)
 namespace WebCore
 {
 
-bool GlyphPage::fill(UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
+bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
 {
-    bool isUtf16 = bufferLength != GlyphPage::size;
+    bool isUtf16 = bufferLength != length;
 
-    for (unsigned i = 0; i < GlyphPage::size; i++) {
+    for (unsigned i = 0; i < length; i++) {
         UChar32 character;
 
         if(isUtf16) {
@@ -50,7 +50,7 @@ bool GlyphPage::fill(UChar* buffer, unsigned bufferLength, const SimpleFontData*
             character = buffer[i];
         }
 
-        setGlyphDataForIndex(i, character, fontData);
+        setGlyphDataForIndex(offset + i, character, fontData);
     }
 
     return true;