Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp

Issue 1847853004: Move Character.h from platform/fonts to platform/text (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Brent Fulgham 2 * Copyright (C) 2011 Brent Fulgham
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details. 12 * Library General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU Library General Public License 14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to 15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA. 17 * Boston, MA 02110-1301, USA.
18 * 18 *
19 */ 19 */
20 20
21 #include "platform/fonts/FontPlatformData.h" 21 #include "platform/fonts/FontPlatformData.h"
22 22
23 #include "SkTypeface.h" 23 #include "SkTypeface.h"
24 #include "hb-ot.h" 24 #include "hb-ot.h"
25 #include "hb.h" 25 #include "hb.h"
26 #include "platform/fonts/Character.h"
27 #include "platform/fonts/FontCache.h" 26 #include "platform/fonts/FontCache.h"
28 #include "platform/fonts/shaping/HarfBuzzFace.h" 27 #include "platform/fonts/shaping/HarfBuzzFace.h"
28 #include "platform/text/Character.h"
29 #include "wtf/ByteSwap.h" 29 #include "wtf/ByteSwap.h"
30 #include "wtf/HashMap.h" 30 #include "wtf/HashMap.h"
31 #include "wtf/text/StringHash.h" 31 #include "wtf/text/StringHash.h"
32 #include "wtf/text/WTFString.h" 32 #include "wtf/text/WTFString.h"
33 33
34 #if OS(MACOSX) 34 #if OS(MACOSX)
35 #include "third_party/skia/include/ports/SkTypeface_mac.h" 35 #include "third_party/skia/include/ports/SkTypeface_mac.h"
36 #endif 36 #endif
37 37
38 using namespace std; 38 using namespace std;
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 const size_t tableSize = m_typeface->getTableSize(tag); 361 const size_t tableSize = m_typeface->getTableSize(tag);
362 if (tableSize) { 362 if (tableSize) {
363 Vector<char> tableBuffer(tableSize); 363 Vector<char> tableBuffer(tableSize);
364 m_typeface->getTableData(tag, 0, tableSize, &tableBuffer[0]); 364 m_typeface->getTableData(tag, 0, tableSize, &tableBuffer[0]);
365 buffer = SharedBuffer::adoptVector(tableBuffer); 365 buffer = SharedBuffer::adoptVector(tableBuffer);
366 } 366 }
367 return buffer.release(); 367 return buffer.release();
368 } 368 }
369 369
370 } // namespace blink 370 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698