Parse units. This is the only place where we actually have to perform string comparisons rather than simply comparing pointers. Calling strncasecmp for such short strings may incur an excessive overhead. If so, we can perform the comparison ourselves, thus avoiding the function call. Making the lexer separate the units from the value probably isn't helpful, particularly thanks to the need to handle "color: 0f0000;" in quirks mode (this will be lexed as a dimension).
Parse units. This is the only place where we actually have to perform string comparisons rather than simply comparing pointers. Calling strncasecmp for such short strings may incur an excessive overhead. If so, we can perform the comparison ourselves, thus avoiding the function call. Making the lexer separate the units from the value probably isn't helpful, particularly thanks to the need to handle "color: 0f0000;" in quirks mode (this will be lexed as a dimension).

svn path=/trunk/libcss/; revision=6044

prepare/netsurf_libcss,servo/libcss,zhuyadong/libcss,servo/libcss,prepare/netsurf_libcss,zhuyadong/libcss,prepare/netsurf_libcss,zhuyadong/libcss,servo/libcss