| OLD | NEW |
| 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 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "platform/text/Character.h" | 28 #include "platform/text/Character.h" |
| 29 #include "platform/wtf/ByteSwap.h" | 29 #include "platform/wtf/ByteSwap.h" |
| 30 #include "platform/wtf/HashMap.h" | 30 #include "platform/wtf/HashMap.h" |
| 31 #include "platform/wtf/text/StringHash.h" | 31 #include "platform/wtf/text/StringHash.h" |
| 32 #include "platform/wtf/text/WTFString.h" | 32 #include "platform/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; | |
| 39 | |
| 40 namespace blink { | 38 namespace blink { |
| 41 | 39 |
| 42 FontPlatformData::FontPlatformData(WTF::HashTableDeletedValueType) | 40 FontPlatformData::FontPlatformData(WTF::HashTableDeletedValueType) |
| 43 : typeface_(nullptr), | 41 : typeface_(nullptr), |
| 44 text_size_(0), | 42 text_size_(0), |
| 45 synthetic_bold_(false), | 43 synthetic_bold_(false), |
| 46 synthetic_italic_(false), | 44 synthetic_italic_(false), |
| 47 orientation_(FontOrientation::kHorizontal), | 45 orientation_(FontOrientation::kHorizontal), |
| 48 is_hash_table_deleted_value_(true) | 46 is_hash_table_deleted_value_(true) |
| 49 #if OS(WIN) | 47 #if OS(WIN) |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 const size_t table_size = typeface_->getTableSize(tag); | 334 const size_t table_size = typeface_->getTableSize(tag); |
| 337 if (table_size) { | 335 if (table_size) { |
| 338 Vector<char> table_buffer(table_size); | 336 Vector<char> table_buffer(table_size); |
| 339 typeface_->getTableData(tag, 0, table_size, &table_buffer[0]); | 337 typeface_->getTableData(tag, 0, table_size, &table_buffer[0]); |
| 340 buffer = SharedBuffer::AdoptVector(table_buffer); | 338 buffer = SharedBuffer::AdoptVector(table_buffer); |
| 341 } | 339 } |
| 342 return buffer.Release(); | 340 return buffer.Release(); |
| 343 } | 341 } |
| 344 | 342 |
| 345 } // namespace blink | 343 } // namespace blink |
| OLD | NEW |