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

Unified Diff: third_party/WebKit/Source/platform/fonts/opentype/OpenTypeSanitizer.cpp

Issue 1416943004: Use OTS_TAG in BlinkOTSContext::GetTableAction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | 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/OpenTypeSanitizer.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeSanitizer.cpp b/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeSanitizer.cpp
index 1b5b9348c84242d1c0f1325230b879836cc35f58..39418e357779bff983cf2ba645a14608c1fe7658 100644
--- a/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeSanitizer.cpp
+++ b/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeSanitizer.cpp
@@ -137,16 +137,14 @@ void BlinkOTSContext::Message(int level, const char *format, ...)
ots::TableAction BlinkOTSContext::GetTableAction(uint32_t tag)
{
-#define TABLE_TAG(c1, c2, c3, c4) ((uint32_t)((((uint8_t)(c1)) << 24) | (((uint8_t)(c2)) << 16) | (((uint8_t)(c3)) << 8) | ((uint8_t)(c4))))
-
- const uint32_t cbdtTag = TABLE_TAG('C', 'B', 'D', 'T');
- const uint32_t cblcTag = TABLE_TAG('C', 'B', 'L', 'C');
- const uint32_t colrTag = TABLE_TAG('C', 'O', 'L', 'R');
- const uint32_t cpalTag = TABLE_TAG('C', 'P', 'A', 'L');
+ const uint32_t cbdtTag = OTS_TAG('C', 'B', 'D', 'T');
+ const uint32_t cblcTag = OTS_TAG('C', 'B', 'L', 'C');
+ const uint32_t colrTag = OTS_TAG('C', 'O', 'L', 'R');
+ const uint32_t cpalTag = OTS_TAG('C', 'P', 'A', 'L');
#if HB_VERSION_ATLEAST(1, 0, 0)
- const uint32_t gdefTag = TABLE_TAG('G', 'D', 'E', 'F');
- const uint32_t gposTag = TABLE_TAG('G', 'P', 'O', 'S');
- const uint32_t gsubTag = TABLE_TAG('G', 'S', 'U', 'B');
+ const uint32_t gdefTag = OTS_TAG('G', 'D', 'E', 'F');
+ const uint32_t gposTag = OTS_TAG('G', 'P', 'O', 'S');
+ const uint32_t gsubTag = OTS_TAG('G', 'S', 'U', 'B');
#endif
switch (tag) {
@@ -166,7 +164,6 @@ ots::TableAction BlinkOTSContext::GetTableAction(uint32_t tag)
default:
return ots::TABLE_ACTION_DEFAULT;
}
-#undef TABLE_TAG
}
} // namespace blink
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698