Author: jmb
Date: Tue Sep 28 13:29:33 2010
New Revision: 10856
URL:
http://source.netsurf-browser.org?rev=10856&view=rev
Log:
Fix destruction of bytecode for the clip property.
Modified:
trunk/libcss/src/select/properties.c
trunk/libcss/test/data/parse/properties.dat
Modified: trunk/libcss/src/select/properties.c
URL:
http://source.netsurf-browser.org/trunk/libcss/src/select/properties.c?re...
==============================================================================
--- trunk/libcss/src/select/properties.c (original)
+++ trunk/libcss/src/select/properties.c Tue Sep 28 13:29:33 2010
@@ -1368,7 +1368,7 @@
{
uint32_t value = getValue(*((uint32_t*)bytecode));
bool has_rect = value & CLIP_SHAPE_RECT;
- bool nonautos = 0;
+ int nonautos = 0;
if (has_rect) {
if ((value & CLIP_RECT_TOP_AUTO) == 0)
Modified: trunk/libcss/test/data/parse/properties.dat
URL:
http://source.netsurf-browser.org/trunk/libcss/test/data/parse/properties...
==============================================================================
--- trunk/libcss/test/data/parse/properties.dat (original)
+++ trunk/libcss/test/data/parse/properties.dat Tue Sep 28 13:29:33 2010
@@ -755,6 +755,14 @@
| 0x03200017 0x00000400 0x00000002 0x00000400 0x00000002
#reset
+#data
+* { clip: rect(0px, 220px, 1.7em, 0px) }
+#errors
+#expected
+| 1 *
+| 0x02000017 0x00000000 0x00000000 0x00037000 0x00000000 0x000006cd 0x00000002
0x00000000 0x00000000
+#reset
+
##
## 18 - color
##