diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-12 09:46:29 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-12 09:46:29 +0000 |
commit | f63a7e87fb73f540b7713fff1b20251896d8b16e (patch) | |
tree | 731639f694d9e36671a36af37f037585c45440c7 /src/stylesheet.c | |
parent | 4fabca00d8d648b667a7af749ed675e426a6268d (diff) | |
download | libcss-f63a7e87fb73f540b7713fff1b20251896d8b16e.tar.gz libcss-f63a7e87fb73f540b7713fff1b20251896d8b16e.tar.bz2 |
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
Diffstat (limited to 'src/stylesheet.c')
0 files changed, 0 insertions, 0 deletions