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

Unified Diff: third_party/WebKit/Source/platform/fonts/opentype/OpenTypeTypes.h

Issue 1450303002: (DO NOT LAND, EXPERIMENTAL) os/2 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/opentype/OpenTypeOS2Table.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/opentype/OpenTypeOS2Table.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698