diff options
author | bashi@chromium.org <bashi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-09 01:06:56 +0000 |
---|---|---|
committer | bashi@chromium.org <bashi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-09 01:06:56 +0000 |
commit | d6b94838c9c7cfe13933e819bebb99b08f13d08b (patch) | |
tree | 3331a6d31e40f40db8dcfd66d51e8a38168d1024 /third_party/harfbuzz/tests/linebreaking/harfbuzz-qt.cpp | |
parent | e3791ce9ce5f0682b59593839cabd3a56b327249 (diff) | |
download | chromium_src-d6b94838c9c7cfe13933e819bebb99b08f13d08b.zip chromium_src-d6b94838c9c7cfe13933e819bebb99b08f13d08b.tar.gz chromium_src-d6b94838c9c7cfe13933e819bebb99b08f13d08b.tar.bz2 |
Update (old) harfbuzz to ToT
This CL is made by:
- Got harfbuzz ToT (revision d10a264823e81631336bab37f08a52cc243d3654)
- Applied third_party/harfbuzz/chromium.patch to harfbuzz ToT.
- Applied the change made by http://codereview.chromium.org/543067/
(chromium.patch doesn't include this change)
- Copied revised files to third_party/harfbuzz
- Updated README.chromium and chromium.patch
BUG=91789
TEST=ran WebKit layout tests.
Review URL: http://codereview.chromium.org/7595001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95926 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/harfbuzz/tests/linebreaking/harfbuzz-qt.cpp')
-rw-r--r-- | third_party/harfbuzz/tests/linebreaking/harfbuzz-qt.cpp | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/third_party/harfbuzz/tests/linebreaking/harfbuzz-qt.cpp b/third_party/harfbuzz/tests/linebreaking/harfbuzz-qt.cpp index ea03052..f0048b7 100644 --- a/third_party/harfbuzz/tests/linebreaking/harfbuzz-qt.cpp +++ b/third_party/harfbuzz/tests/linebreaking/harfbuzz-qt.cpp @@ -79,30 +79,9 @@ void HB_GetGraphemeAndLineBreakClass(HB_UChar32 ch, HB_GraphemeClass *grapheme, *lineBreak = (HB_LineBreakClass) prop->line_break_class; } -void *HB_Library_Resolve(const char *library, const char *symbol) +void *HB_Library_Resolve(const char *library, int version, const char *symbol) { - return QLibrary::resolve(library, symbol); -} - -void *HB_TextCodecForMib(int mib) -{ - return QTextCodec::codecForMib(mib); -} - -char *HB_TextCodec_ConvertFromUnicode(void *codec, const HB_UChar16 *unicode, hb_uint32 length, hb_uint32 *outputLength) -{ - QByteArray data = reinterpret_cast<QTextCodec *>(codec)->fromUnicode((const QChar *)unicode, length); - // ### suboptimal - char *output = (char *)malloc(data.length() + 1); - memcpy(output, data.constData(), data.length() + 1); - if (outputLength) - *outputLength = data.length(); - return output; -} - -void HB_TextCodec_FreeResult(char *string) -{ - free(string); + return QLibrary::resolve(library, version, symbol); } } |