Author: jmb
Date: Fri Jan 23 14:45:02 2009
New Revision: 6194

URL: http://source.netsurf-browser.org?rev=6194&view=rev
Log:
There's 400 gradians in 360 degrees.

Modified:
    trunk/libcss/src/parse/properties.c
    trunk/libcss/src/utils/fpconstants.h

Modified: trunk/libcss/src/parse/properties.c
URL: 
http://source.netsurf-browser.org/trunk/libcss/src/parse/properties.c?rev=6194&r1=6193&r2=6194&view=diff
==============================================================================
--- trunk/libcss/src/parse/properties.c (original)
+++ trunk/libcss/src/parse/properties.c Fri Jan 23 14:45:02 2009
@@ -579,7 +579,7 @@
                        if (length < FMULI(F_360, -1) || length > F_360)
                                return CSS_INVALID;
                } else if (unit == UNIT_GRAD) {
-                       if (length < FMULI(F_100, -1) || length > F_100)
+                       if (length < FMULI(F_400, -1) || length > F_400)
                                return CSS_INVALID;
                } else if (unit == UNIT_RAD) {
                        if (length < FMULI(F_2PI, -1) || length > F_2PI)

Modified: trunk/libcss/src/utils/fpconstants.h
URL: 
http://source.netsurf-browser.org/trunk/libcss/src/utils/fpconstants.h?rev=6194&r1=6193&r2=6194&view=diff
==============================================================================
--- trunk/libcss/src/utils/fpconstants.h (original)
+++ trunk/libcss/src/utils/fpconstants.h Fri Jan 23 14:45:02 2009
@@ -14,7 +14,7 @@
 
 #define F_360  0x0005a000      /* 360 */
 
-#define F_100  0x00019000      /* 100 */
+#define F_400  0x00064000      /* 100 */
 
 #endif
 


_______________________________________________
netsurf-commits mailing list
[email protected]
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to