| Index: third_party/WebKit/Source/platform/fonts/opentype/OpenTypeTypes.h
|
| diff --git a/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeTypes.h b/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeTypes.h
|
| index cf1f78fee1c1f8e9bd5c3f124d64c7073d0666fe..54bccf2ecd8dba486a7432b29bbbc1f05318e9e6 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeTypes.h
|
| +++ b/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeTypes.h
|
| @@ -32,24 +32,28 @@ namespace blink {
|
| namespace OpenType {
|
|
|
| struct Int16 {
|
| + Int16() { }
|
| Int16(int16_t u) : v(htons(static_cast<uint16_t>(u))) { }
|
| operator int16_t() const { return static_cast<int16_t>(ntohs(v)); }
|
| uint16_t v; // in BigEndian
|
| };
|
|
|
| struct UInt16 {
|
| + UInt16() { }
|
| UInt16(uint16_t u) : v(htons(u)) { }
|
| operator uint16_t() const { return ntohs(v); }
|
| uint16_t v; // in BigEndian
|
| };
|
|
|
| struct Int32 {
|
| + Int32() { }
|
| Int32(int32_t u) : v(htonl(static_cast<uint32_t>(u))) { }
|
| operator int32_t() const { return static_cast<int32_t>(ntohl(v)); }
|
| uint32_t v; // in BigEndian
|
| };
|
|
|
| struct UInt32 {
|
| + UInt32() { }
|
| UInt32(uint32_t u) : v(htonl(u)) { }
|
| operator uint32_t() const { return ntohl(v); }
|
| uint32_t v; // in BigEndian
|
|
|