summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell Brenner <russellbrenner@google.com>2010-11-04 14:02:05 -0700
committerRussell Brenner <russellbrenner@google.com>2010-11-04 14:02:05 -0700
commit775c244a94159b3e986a8691f1a5f092f50af9d0 (patch)
tree32de13e0232d96faa05cb6fe07bd8e2d14078426
parentfd0bf63b4addb1bcb90de078bbd4700e2545a69f (diff)
downloadexternal_webkit-775c244a94159b3e986a8691f1a5f092f50af9d0.zip
external_webkit-775c244a94159b3e986a8691f1a5f092f50af9d0.tar.gz
external_webkit-775c244a94159b3e986a8691f1a5f092f50af9d0.tar.bz2
Code cleanup for FontCacheAndroid.cpp
Minor changes to allow check-webkit-style to complete without warning for FontCacheAndroid.cpp. Change-Id: Ifaa8634d53374c94251641d6b9daf5f8114af9e9
-rw-r--r--WebCore/platform/graphics/android/FontCacheAndroid.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/WebCore/platform/graphics/android/FontCacheAndroid.cpp b/WebCore/platform/graphics/android/FontCacheAndroid.cpp
index dac005f..2f41c3c 100644
--- a/WebCore/platform/graphics/android/FontCacheAndroid.cpp
+++ b/WebCore/platform/graphics/android/FontCacheAndroid.cpp
@@ -26,8 +26,9 @@
#include "config.h"
#include "FontCache.h"
-#include "FontPlatformData.h"
+
#include "Font.h"
+#include "FontPlatformData.h"
#include "NotImplemented.h"
#include "SimpleFontData.h"
#include "SkPaint.h"
@@ -73,8 +74,8 @@ static char* AtomicStringToUTF8String(const AtomicString& utf16)
SkASSERT(sizeof(uint16_t) == sizeof(utf16.characters()[0]));
const uint16_t* uni = (uint16_t*)utf16.characters();
- size_t bytes = SkUTF16_ToUTF8(uni, utf16.length(), NULL);
- char* utf8 = (char*)sk_malloc_throw(bytes + 1);
+ size_t bytes = SkUTF16_ToUTF8(uni, utf16.length(), 0);
+ char* utf8 = (char*)sk_malloc_throw(bytes + 1);
(void)SkUTF16_ToUTF8(uni, utf16.length(), utf8);
utf8[bytes] = 0;