summaryrefslogtreecommitdiff
path: root/src/select/propset.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-07-04 13:21:28 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-07-04 13:21:28 +0000
commit3b1a80cbb138c9c714efc0f32729506060c78c81 (patch)
tree344f832111f5dab566ed59b39ef65e42cac30cbc /src/select/propset.h
parent2f5753d607a93c8ae18aab3dd675b111af7d879d (diff)
downloadlibcss-3b1a80cbb138c9c714efc0f32729506060c78c81.tar.gz
libcss-3b1a80cbb138c9c714efc0f32729506060c78c81.tar.bz2
Move quotes property into common style block.
svn path=/trunk/libcss/; revision=8307
Diffstat (limited to 'src/select/propset.h')
-rw-r--r--src/select/propset.h46
1 files changed, 21 insertions, 25 deletions
diff --git a/src/select/propset.h b/src/select/propset.h
index 743297b..c98d47b 100644
--- a/src/select/propset.h
+++ b/src/select/propset.h
@@ -241,31 +241,6 @@ static inline css_error set_cursor(
#undef CURSOR_SHIFT
#undef CURSOR_INDEX
-#define QUOTES_INDEX 4
-#define QUOTES_SHIFT 2
-#define QUOTES_MASK 0x4
-static inline css_error set_quotes(
- css_computed_style *style, uint8_t type,
- lwc_string **quotes)
-{
- uint8_t *bits;
-
- ENSURE_UNCOMMON;
-
- bits = &style->uncommon->bits[QUOTES_INDEX];
-
- /* 1bit: type */
- *bits = (*bits & ~QUOTES_MASK) |
- ((type & 0x1) << QUOTES_SHIFT);
-
- style->uncommon->quotes = quotes;
-
- return CSS_OK;
-}
-#undef QUOTES_MASK
-#undef QUOTES_SHIFT
-#undef QUOTES_INDEX
-
#define CLIP_INDEX 7
#define CLIP_SHIFT 2
#define CLIP_MASK 0xfc
@@ -548,6 +523,27 @@ static inline css_error set_list_style_image(
#undef LIST_STYLE_IMAGE_SHIFT
#undef LIST_STYLE_IMAGE_INDEX
+#define QUOTES_INDEX 5
+#define QUOTES_SHIFT 0
+#define QUOTES_MASK 0x1
+static inline css_error set_quotes(
+ css_computed_style *style, uint8_t type,
+ lwc_string **quotes)
+{
+ uint8_t *bits = &style->bits[QUOTES_INDEX];
+
+ /* 1bit: type */
+ *bits = (*bits & ~QUOTES_MASK) |
+ ((type & 0x1) << QUOTES_SHIFT);
+
+ style->quotes = quotes;
+
+ return CSS_OK;
+}
+#undef QUOTES_MASK
+#undef QUOTES_SHIFT
+#undef QUOTES_INDEX
+
#define TOP_INDEX 6
#define TOP_SHIFT 2
#define TOP_MASK 0xfc