diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-01-19 23:12:37 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-01-19 23:12:37 +0000 |
commit | 6a50bef84ae6a0a67e03ac1356f8d85d15fe09d6 (patch) | |
tree | 01f78f04b22517899f603787f6005f70b359271e /src/select/properties/clip.c | |
parent | 63c21aca7c77b1d37cb64ad2b1fa76d6b0b92f48 (diff) | |
download | libcss-6a50bef84ae6a0a67e03ac1356f8d85d15fe09d6.tar.gz libcss-6a50bef84ae6a0a67e03ac1356f8d85d15fe09d6.tar.bz2 |
Merge parser autogeneration and string handling refactor branch r=jmb,kinnison,vince
svn path=/trunk/libcss/; revision=11408
Diffstat (limited to 'src/select/properties/clip.c')
-rw-r--r-- | src/select/properties/clip.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/select/properties/clip.c b/src/select/properties/clip.c index b87da03..6daa204 100644 --- a/src/select/properties/clip.c +++ b/src/select/properties/clip.c @@ -115,22 +115,3 @@ css_error compose_clip(const css_computed_style *parent, return CSS_OK; } -uint32_t destroy_clip(void *bytecode) -{ - uint32_t value = getValue(*((uint32_t*)bytecode)); - bool has_rect = value & CLIP_SHAPE_RECT; - int nonautos = 0; - - if (has_rect) { - if ((value & CLIP_RECT_TOP_AUTO) == 0) - nonautos += 1; - if ((value & CLIP_RECT_RIGHT_AUTO) == 0) - nonautos += 1; - if ((value & CLIP_RECT_BOTTOM_AUTO) == 0) - nonautos += 1; - if ((value & CLIP_RECT_LEFT_AUTO) == 0) - nonautos += 1; - } - - return sizeof(uint32_t) + ((sizeof(css_fixed) + sizeof(uint32_t)) * nonautos); -} |