Skip to content

Commit

Permalink
fixup! refactor(gui): add widget_diff.c
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Mar 1, 2020
1 parent 40cb97b commit 029984e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/gui/widget_diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ int Widget_EndLayoutDiff(LCUI_Widget w, LCUI_WidgetLayoutDiff diff)
}
if (!diff->should_add_invalid_area) {
w->invalid_area_type = LCUI_INVALID_AREA_TYPE_NONE;
w->has_child_invalid_area = FALSE;
return 0;
}
if (w->invalid_area_type < LCUI_INVALID_AREA_TYPE_PADDING_BOX) {
Expand Down
10 changes: 0 additions & 10 deletions src/gui/widget_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,16 +481,6 @@ static size_t Widget_UpdateWithContext(LCUI_Widget w,
Widget_EndLayoutDiff(w, &self_ctx->layout_diff);
Widget_EndUpdate(self_ctx);
Widget_SortChildrenShow(w);
if (w->parent) {
if (w->parent->invalid_area_type >=
LCUI_INVALID_AREA_TYPE_PADDING_BOX) {
w->invalid_area_type = LCUI_INVALID_AREA_TYPE_NONE;
w->has_child_invalid_area = FALSE;
} else if (w->invalid_area_type >=
LCUI_INVALID_AREA_TYPE_CUSTOM) {
w->parent->has_child_invalid_area = TRUE;
}
}
return count;
}

Expand Down

0 comments on commit 029984e

Please sign in to comment.