Skip to content

Commit

Permalink
fix: remove the incorrect CSSParser_GetRuleParser() macro
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Mar 21, 2021
1 parent 302d5dd commit 3bd6b71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions include/LCUI/gui/css_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ LCUI_BEGIN_HEADER
(CTX)->buffer[(ctx)->pos++] = *((CTX)->cur); \
} while (0);

#define CSSParser_GetRuleParser(CTX) &ctx->rule.parsers[CSS_RULE_FONT_FACE]

typedef enum LCUI_CSSParserTarget {
CSS_TARGET_NONE, /**< 无 */
CSS_TARGET_RULE_NAME, /**< 规则名称 */
Expand Down
3 changes: 2 additions & 1 deletion src/gui/css_rule_font_face.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ int CSSParser_InitFontFaceRuleParser(LCUI_CSSParserContext ctx)
{
LCUI_CSSRuleParser parser;
FontFaceParserContext data;
parser = CSSParser_GetRuleParser(ctx);

parser = &ctx->rule.parsers[CSS_RULE_FONT_FACE];
data = NEW(FontFaceParserContextRec, 1);
if (!data) {
return -ENOMEM;
Expand Down

0 comments on commit 3bd6b71

Please sign in to comment.