revert mistakenly removed background-size/repeat back

This commit is contained in:
Aygul Salahli 2019-11-01 15:49:35 +02:00
parent 13fb59108b
commit 723cbeb531

View File

@ -102,3 +102,39 @@ mycss_values_image_t * mycss_values_image_list_add_entry(mycss_entry_t* entry, m
return image;
}
mycss_values_background_repeat_t * mycss_values_background_repeat_list_add_entry(mycss_entry_t* entry, mycss_values_background_repeat_list_t *list)
{
if(list->entries == NULL) {
list->entries = mycss_values_create(entry, sizeof(mycss_values_background_repeat_t));
list->entries_length = 0;
}
else {
list->entries = mycss_values_realloc(entry, list->entries,
list->entries_length * sizeof(mycss_values_background_repeat_t),
sizeof(mycss_values_background_repeat_t));
}
mycss_values_background_repeat_t *repeat = &list->entries[ list->entries_length ];
list->entries_length++;
return repeat;
}
mycss_values_background_size_entry_t * mycss_values_background_size_list_add_entry(mycss_entry_t* entry, mycss_values_background_size_list_t *list)
{
if(list->entries == NULL) {
list->entries = mycss_values_create(entry, sizeof(mycss_values_background_size_entry_t));
list->entries_length = 0;
}
else {
list->entries = mycss_values_realloc(entry, list->entries,
list->entries_length * sizeof(mycss_values_background_size_entry_t),
sizeof(mycss_values_background_size_entry_t));
}
mycss_values_background_size_entry_t *size_entry = &list->entries[ list->entries_length ];
list->entries_length++;
return size_entry;
}