Author: jmb
Date: Sat Jan 24 07:48:36 2009
New Revision: 6236
URL: http://source.netsurf-browser.org?rev=6236&view=rev
Log:
Use utility routines to consider inherit/importance, rather than poking flag
bits ourselves
Modified:
trunk/libcss/test/dump.h
Modified: trunk/libcss/test/dump.h
URL:
http://source.netsurf-browser.org/trunk/libcss/test/dump.h?rev=6236&r1=6235&r2=6236&view=diff
==============================================================================
--- trunk/libcss/test/dump.h (original)
+++ trunk/libcss/test/dump.h Sat Jan 24 07:48:36 2009
@@ -570,7 +570,6 @@
while (offset < length) {
opcode op;
- uint8_t flags;
uint32_t value;
uint32_t opv = *((uint32_t *) bytecode);
@@ -589,9 +588,7 @@
} 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 @@
}
}
- if (flags & FLAG_IMPORTANT)
+ if (isImportant(opv))
*ptr += sprintf(*ptr, " !important");
*ptr += sprintf(*ptr, "\n");
_______________________________________________
netsurf-commits mailing list
[email protected]
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org