@@ -134,7 +134,7 @@ static int OnParseValue(LCUI_CSSParserStyleContext ctx, const char *str)
134134 LCUI_Style s = & ctx -> sheet -> sheet [ctx -> parser -> key ];
135135 if (sscanf (str , "%d" , & s -> val_int ) == 1 ) {
136136 s -> is_valid = TRUE;
137- s -> type = LCUI_STYPE_VALUE ;
137+ s -> type = LCUI_STYPE_INT ;
138138 return 0 ;
139139 }
140140 return -1 ;
@@ -229,7 +229,7 @@ static int OnParseBorder(LCUI_CSSParserStyleContext ctx, const char *str)
229229 ss -> sheet [key_border_left_color ] = slist [i ];
230230 break ;
231231 case LCUI_STYPE_PX :
232- case LCUI_STYPE_VALUE :
232+ case LCUI_STYPE_INT :
233233 ss -> sheet [key_border_top_width ] = slist [i ];
234234 ss -> sheet [key_border_right_width ] = slist [i ];
235235 ss -> sheet [key_border_bottom_width ] = slist [i ];
@@ -276,7 +276,7 @@ static int OnParseBorderLeft(LCUI_CSSParserStyleContext ctx, const char *str)
276276 ss -> sheet [key_border_left_color ] = slist [i ];
277277 break ;
278278 case LCUI_STYPE_PX :
279- case LCUI_STYPE_VALUE :
279+ case LCUI_STYPE_INT :
280280 ss -> sheet [key_border_left_width ] = slist [i ];
281281 break ;
282282 case LCUI_STYPE_style :
@@ -303,7 +303,7 @@ static int OnParseBorderTop(LCUI_CSSParserStyleContext ctx, const char *str)
303303 ss -> sheet [key_border_top_color ] = slist [i ];
304304 break ;
305305 case LCUI_STYPE_PX :
306- case LCUI_STYPE_VALUE :
306+ case LCUI_STYPE_INT :
307307 ss -> sheet [key_border_top_width ] = slist [i ];
308308 break ;
309309 case LCUI_STYPE_style :
@@ -330,7 +330,7 @@ static int OnParseBorderRight(LCUI_CSSParserStyleContext ctx, const char *str)
330330 ss -> sheet [key_border_right_color ] = slist [i ];
331331 break ;
332332 case LCUI_STYPE_PX :
333- case LCUI_STYPE_VALUE :
333+ case LCUI_STYPE_INT :
334334 ss -> sheet [key_border_right_width ] = slist [i ];
335335 break ;
336336 case LCUI_STYPE_style :
@@ -357,7 +357,7 @@ static int OnParseBorderBottom(LCUI_CSSParserStyleContext ctx, const char *str)
357357 ss -> sheet [key_border_bottom_color ] = slist [i ];
358358 break ;
359359 case LCUI_STYPE_PX :
360- case LCUI_STYPE_VALUE :
360+ case LCUI_STYPE_INT :
361361 ss -> sheet [key_border_bottom_width ] = slist [i ];
362362 break ;
363363 case LCUI_STYPE_style :
0 commit comments