summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-03-12 21:32:48 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-03-12 21:32:48 +0000
commit4b79442b86af66a2c5f7b215e52f32a8b3f5c72a (patch)
tree646cf5f0e00ee22301277ff8cc0f235768cbbf23 /src
parent1d4d4c3120dd67bf94575c688aeb19f00d052eb5 (diff)
downloadlibcss-4b79442b86af66a2c5f7b215e52f32a8b3f5c72a.tar.gz
libcss-4b79442b86af66a2c5f7b215e52f32a8b3f5c72a.tar.bz2
Fix set_clip
svn path=/trunk/libcss/; revision=11989
Diffstat (limited to 'src')
-rw-r--r--src/select/propset.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/select/propset.h b/src/select/propset.h
index 2cf7895..f3c314e 100644
--- a/src/select/propset.h
+++ b/src/select/propset.h
@@ -311,10 +311,10 @@ static inline css_error set_clip(
((type & 0x3) << CLIP_SHIFT);
if (type == CSS_CLIP_RECT) {
- *bits |= (rect->top_auto ? 0x20 : 0) |
+ *bits |= (((rect->top_auto ? 0x20 : 0) |
(rect->right_auto ? 0x10 : 0) |
(rect->bottom_auto ? 0x8 : 0) |
- (rect->left_auto ? 0x4 : 0);
+ (rect->left_auto ? 0x4 : 0)) << CLIP_SHIFT);
bits = &style->uncommon->bits[CLIP_INDEX1];