summaryrefslogtreecommitdiff
path: root/src/bytecode/bytecode.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-03-23 01:02:59 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-03-23 01:02:59 +0000
commit570510b0762d9bb02f9dc64497c8802bc2a1649d (patch)
tree21bdec088c22894e77e4adbca99a2db8b894202d /src/bytecode/bytecode.h
parentdcc0deb8e5cc5bf817d60a11b19e226a1bc22bd1 (diff)
downloadlibcss-570510b0762d9bb02f9dc64497c8802bc2a1649d.tar.gz
libcss-570510b0762d9bb02f9dc64497c8802bc2a1649d.tar.bz2
Completely change the approach used for presentational hints.
This one stands a chance of working sanely. While this compiles, please don't expect it to link. svn path=/trunk/libcss/; revision=6820
Diffstat (limited to 'src/bytecode/bytecode.h')
-rw-r--r--src/bytecode/bytecode.h105
1 files changed, 2 insertions, 103 deletions
diff --git a/src/bytecode/bytecode.h b/src/bytecode/bytecode.h
index a0810e2..4235ab2 100644
--- a/src/bytecode/bytecode.h
+++ b/src/bytecode/bytecode.h
@@ -12,110 +12,9 @@
#include <stdio.h>
#include <libcss/types.h>
+#include <libcss/properties.h>
-typedef enum opcode {
- OP_AZIMUTH = 0x000,
- OP_BACKGROUND_ATTACHMENT = 0x001,
- OP_BACKGROUND_COLOR = 0x002,
- OP_BACKGROUND_IMAGE = 0x003,
- OP_BACKGROUND_POSITION = 0x004,
- OP_BACKGROUND_REPEAT = 0x005,
- OP_BORDER_COLLAPSE = 0x006,
- OP_BORDER_SPACING = 0x007,
- OP_BORDER_TOP_COLOR = 0x008,
- OP_BORDER_RIGHT_COLOR = 0x009,
- OP_BORDER_BOTTOM_COLOR = 0x00a,
- OP_BORDER_LEFT_COLOR = 0x00b,
- OP_BORDER_TOP_STYLE = 0x00c,
- OP_BORDER_RIGHT_STYLE = 0x00d,
- OP_BORDER_BOTTOM_STYLE = 0x00e,
- OP_BORDER_LEFT_STYLE = 0x00f,
- OP_BORDER_TOP_WIDTH = 0x010,
- OP_BORDER_RIGHT_WIDTH = 0x011,
- OP_BORDER_BOTTOM_WIDTH = 0x012,
- OP_BORDER_LEFT_WIDTH = 0x013,
- OP_BOTTOM = 0x014,
- OP_CAPTION_SIDE = 0x015,
- OP_CLEAR = 0x016,
- OP_CLIP = 0x017,
- OP_COLOR = 0x018,
- OP_CONTENT = 0x019,
- OP_COUNTER_INCREMENT = 0x01a,
- OP_COUNTER_RESET = 0x01b,
- OP_CUE_AFTER = 0x01c,
- OP_CUE_BEFORE = 0x01d,
- OP_CURSOR = 0x01e,
- OP_DIRECTION = 0x01f,
- OP_DISPLAY = 0x020,
- OP_ELEVATION = 0x021,
- OP_EMPTY_CELLS = 0x022,
- OP_FLOAT = 0x023,
- OP_FONT_FAMILY = 0x024,
- OP_FONT_SIZE = 0x025,
- OP_FONT_STYLE = 0x026,
- OP_FONT_VARIANT = 0x027,
- OP_FONT_WEIGHT = 0x028,
- OP_HEIGHT = 0x029,
- OP_LEFT = 0x02a,
- OP_LETTER_SPACING = 0x02b,
- OP_LINE_HEIGHT = 0x02c,
- OP_LIST_STYLE_IMAGE = 0x02d,
- OP_LIST_STYLE_POSITION = 0x02e,
- OP_LIST_STYLE_TYPE = 0x02f,
- OP_MARGIN_TOP = 0x030,
- OP_MARGIN_RIGHT = 0x031,
- OP_MARGIN_BOTTOM = 0x032,
- OP_MARGIN_LEFT = 0x033,
- OP_MAX_HEIGHT = 0x034,
- OP_MAX_WIDTH = 0x035,
- OP_MIN_HEIGHT = 0x036,
- OP_MIN_WIDTH = 0x037,
- OP_ORPHANS = 0x038,
- OP_OUTLINE_COLOR = 0x039,
- OP_OUTLINE_STYLE = 0x03a,
- OP_OUTLINE_WIDTH = 0x03b,
- OP_OVERFLOW = 0x03c,
- OP_PADDING_TOP = 0x03d,
- OP_PADDING_RIGHT = 0x03e,
- OP_PADDING_BOTTOM = 0x03f,
- OP_PADDING_LEFT = 0x040,
- OP_PAGE_BREAK_AFTER = 0x041,
- OP_PAGE_BREAK_BEFORE = 0x042,
- OP_PAGE_BREAK_INSIDE = 0x043,
- OP_PAUSE_AFTER = 0x044,
- OP_PAUSE_BEFORE = 0x045,
- OP_PITCH_RANGE = 0x046,
- OP_PITCH = 0x047,
- OP_PLAY_DURING = 0x048,
- OP_POSITION = 0x049,
- OP_QUOTES = 0x04a,
- OP_RICHNESS = 0x04b,
- OP_RIGHT = 0x04c,
- OP_SPEAK_HEADER = 0x04d,
- OP_SPEAK_NUMERAL = 0x04e,
- OP_SPEAK_PUNCTUATION = 0x04f,
- OP_SPEAK = 0x050,
- OP_SPEECH_RATE = 0x051,
- OP_STRESS = 0x052,
- OP_TABLE_LAYOUT = 0x053,
- OP_TEXT_ALIGN = 0x054,
- OP_TEXT_DECORATION = 0x055,
- OP_TEXT_INDENT = 0x056,
- OP_TEXT_TRANSFORM = 0x057,
- OP_TOP = 0x058,
- OP_UNICODE_BIDI = 0x059,
- OP_VERTICAL_ALIGN = 0x05a,
- OP_VISIBILITY = 0x05b,
- OP_VOICE_FAMILY = 0x05c,
- OP_VOLUME = 0x05d,
- OP_WHITE_SPACE = 0x05e,
- OP_WIDOWS = 0x05f,
- OP_WIDTH = 0x060,
- OP_WORD_SPACING = 0x061,
- OP_Z_INDEX = 0x062,
-
- N_OPCODES = OP_Z_INDEX + 1
-} opcode;
+typedef enum css_properties opcode;
enum flag {
FLAG_IMPORTANT = (1<<0),