summaryrefslogtreecommitdiff
path: root/src/bytecode
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2017-02-04 17:57:47 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2019-03-10 13:42:03 +0000
commita1347619c5f9ad96d2462a568e625fec567594e2 (patch)
tree71acb3d9532fbf9bcfd77d6cfe24df99751e4bb6 /src/bytecode
parentdc5dc8aaba115bb678be2a5a59a6054027bf28c1 (diff)
downloadlibcss-a1347619c5f9ad96d2462a568e625fec567594e2.tar.gz
libcss-a1347619c5f9ad96d2462a568e625fec567594e2.tar.bz2
Units: parse new unit names
Diffstat (limited to 'src/bytecode')
-rw-r--r--src/bytecode/bytecode.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bytecode/bytecode.h b/src/bytecode/bytecode.h
index 422f141..22703f7 100644
--- a/src/bytecode/bytecode.h
+++ b/src/bytecode/bytecode.h
@@ -52,6 +52,7 @@ typedef enum unit {
UNIT_DEG = (1 << 9) + 0,
UNIT_GRAD = (1 << 9) + 1,
UNIT_RAD = (1 << 9) + 2,
+ UNIT_TURN = (1 << 9) + 3,
UNIT_TIME = (1 << 10),
UNIT_MS = (1 << 10) + 0,
@@ -59,7 +60,12 @@ typedef enum unit {
UNIT_FREQ = (1 << 11),
UNIT_HZ = (1 << 11) + 0,
- UNIT_KHZ = (1 << 11) + 1
+ UNIT_KHZ = (1 << 11) + 1,
+
+ UNIT_RESOLUTION = (1 << 12),
+ UNIT_DPI = (1 << 12) + 0,
+ UNIT_DPCM = (1 << 12) + 1,
+ UNIT_DPPX = (1 << 12) + 2,
} unit;
typedef uint32_t colour;