From 571289540007aeeb525cdc901f6f97cba0666530 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 24 Jan 2009 13:48:36 +0000 Subject: Use utility routines to consider inherit/importance, rather than poking flag bits ourselves svn path=/trunk/libcss/; revision=6236 --- test/dump.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'test') 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"); -- cgit v1.2.3