summaryrefslogtreecommitdiff
path: root/test/dump.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-24 13:48:36 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-24 13:48:36 +0000
commit571289540007aeeb525cdc901f6f97cba0666530 (patch)
tree373743426b3c573156175e69a7b9d23e69c3c955 /test/dump.h
parent811b73c8959f48e75ea9183b8f317f8df6f7eb9d (diff)
downloadlibcss-571289540007aeeb525cdc901f6f97cba0666530.tar.gz
libcss-571289540007aeeb525cdc901f6f97cba0666530.tar.bz2
Use utility routines to consider inherit/importance, rather than poking flag bits ourselves
svn path=/trunk/libcss/; revision=6236
Diffstat (limited to 'test/dump.h')
-rw-r--r--test/dump.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/dump.h b/test/dump.h
index b173174..72b7679 100644
--- a/test/dump.h
+++ b/test/dump.h
@@ -570,7 +570,6 @@ void dump_bytecode(css_style *style, char **ptr)
while (offset < length) {
opcode op;
- uint8_t flags;
uint32_t value;
uint32_t opv = *((uint32_t *) bytecode);
@@ -589,9 +588,7 @@ void dump_bytecode(css_style *style, char **ptr)
} else
*ptr += sprintf(*ptr, "%s: ", opcode_names[op]);
- flags = getFlags(opv);
-
- if (flags & FLAG_INHERIT) {
+ if (isInherit(opv)) {
*ptr += sprintf(*ptr, "inherit");
} else {
value = getValue(opv);
@@ -2109,7 +2106,7 @@ void dump_bytecode(css_style *style, char **ptr)
}
}
- if (flags & FLAG_IMPORTANT)
+ if (isImportant(opv))
*ptr += sprintf(*ptr, " !important");
*ptr += sprintf(*ptr, "\n");