mirror of
https://github.com/lexborisov/Modest
synced 2024-11-21 21:31:25 +03:00
revert mistakenly removed background-size/repeat back
This commit is contained in:
parent
13fb59108b
commit
723cbeb531
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user