summaryrefslogtreecommitdiff
path: root/src/select
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-02-11 18:09:46 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-02-11 18:09:46 +0000
commit4f5504dd6d7d5dfbc1e3b1f6d6fb94581bd9fffa (patch)
tree18437dc40db8d0520a5b6f4da4f7acc1d72b6361 /src/select
parentceafe236c3365978cd8be8db5f4a266e57135fb7 (diff)
downloadlibcss-4f5504dd6d7d5dfbc1e3b1f6d6fb94581bd9fffa.tar.gz
libcss-4f5504dd6d7d5dfbc1e3b1f6d6fb94581bd9fffa.tar.bz2
Modify encoding of quotes. Move clip to accommodate.
svn path=/trunk/libcss/; revision=6442
Diffstat (limited to 'src/select')
-rw-r--r--src/select/propset.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/select/propset.h b/src/select/propset.h
index 3a73044..ff9658c 100644
--- a/src/select/propset.h
+++ b/src/select/propset.h
@@ -240,8 +240,8 @@ static inline css_error set_cursor(
#undef CURSOR_INDEX
#define QUOTES_INDEX 4
-#define QUOTES_SHIFT 2
-#define QUOTES_MASK 0x4
+#define QUOTES_SHIFT 1
+#define QUOTES_MASK 0x6
static inline css_error set_quotes(
css_computed_style *style, uint8_t type,
css_string *quotes)
@@ -252,9 +252,9 @@ static inline css_error set_quotes(
bits = &style->uncommon->bits[QUOTES_INDEX];
- /* 1bit: type */
+ /* 2bits: type */
*bits = (*bits & ~QUOTES_MASK) |
- ((type & 0x1) << QUOTES_SHIFT);
+ ((type & 0x3) << QUOTES_SHIFT);
style->uncommon->quotes = quotes;
@@ -264,9 +264,9 @@ static inline css_error set_quotes(
#undef QUOTES_SHIFT
#undef QUOTES_INDEX
-#define CLIP_INDEX 4
-#define CLIP_SHIFT 0
-#define CLIP_MASK 0x3
+#define CLIP_INDEX 7
+#define CLIP_SHIFT 6
+#define CLIP_MASK 0xc0
#define CLIP_INDEX1 5
#define CLIP_SHIFT1 0
#define CLIP_MASK1 0xff