mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-18 04:52:59 +03:00
more obvious C89
svn path=/trunk/netsurf/; revision=4792
This commit is contained in:
parent
971c93fece
commit
af7be03db3
@ -2463,6 +2463,7 @@ void css_dump_working_stylesheet(const struct css_working_stylesheet *ws)
|
||||
* Set all members to false
|
||||
*/
|
||||
void css_importance_reset(struct css_importance *i) {
|
||||
int j;
|
||||
i->background_color = false;
|
||||
i->background_image = false;
|
||||
i->border_spacing = false;
|
||||
@ -2471,7 +2472,7 @@ void css_importance_reset(struct css_importance *i) {
|
||||
i->width = false;
|
||||
|
||||
/**< top, right, bottom, left */
|
||||
for (int j = 0; j < 4; j++) {
|
||||
for (j = 0; j < 4; j++) {
|
||||
i->border_color[j] = false;
|
||||
i->border_style[j] = false;
|
||||
i->border_width[j] = false;
|
||||
|
@ -680,6 +680,7 @@ int parse_length(struct css_length * const length,
|
||||
colour named_colour(const char *name)
|
||||
{
|
||||
struct css_colour_entry *col;
|
||||
int length;
|
||||
|
||||
col = bsearch(name, css_colour_table,
|
||||
sizeof css_colour_table / sizeof css_colour_table[0],
|
||||
@ -692,7 +693,7 @@ colour named_colour(const char *name)
|
||||
* start of a colour specified in #rrggbb or #rgb format.
|
||||
* This attempts to detect and recover from this.
|
||||
*/
|
||||
int length = strlen(name);
|
||||
length = strlen(name);
|
||||
if ((length == 3) || (length == 6))
|
||||
return hex_colour(name, length);
|
||||
return CSS_COLOR_NONE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user