mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 1363664 - Add bindings for StyleGridTemplate and nsTArray<nsString>; r=heycam
MozReview-Commit-ID: AsVxzu4SUu9 --HG-- extra : rebase_source : e8650549bd6adb80fde898474e06a3f851982fdb
This commit is contained in:
parent
ee514901c9
commit
22e28d36ee
@ -177,6 +177,8 @@ function treatAsSafeArgument(entry, varName, csuName)
|
||||
["Gecko_CSSFontFaceRule_GetCssText", "aResult", null],
|
||||
["Gecko_EnsureTArrayCapacity", "aArray", null],
|
||||
["Gecko_ClearPODTArray", "aArray", null],
|
||||
["Gecko_SetStyleGridTemplateArrayLengths", "aValue", null],
|
||||
["Gecko_ResizeTArrayForStrings", "aArray", null],
|
||||
["Gecko_ClearAndResizeStyleContents", "aContent", null],
|
||||
[/Gecko_ClearAndResizeCounter/, "aContent", null],
|
||||
[/Gecko_CopyCounter.*?From/, "aContent", null],
|
||||
|
@ -1331,6 +1331,19 @@ Gecko_ClearPODTArray(void* aArray, size_t aElementSize, size_t aElementAlign)
|
||||
aElementSize, aElementAlign);
|
||||
}
|
||||
|
||||
void Gecko_SetStyleGridTemplateArrayLengths(nsStyleGridTemplate* aValue,
|
||||
uint32_t aTrackSizes)
|
||||
{
|
||||
aValue->mMinTrackSizingFunctions.SetLength(aTrackSizes);
|
||||
aValue->mMaxTrackSizingFunctions.SetLength(aTrackSizes);
|
||||
aValue->mLineNameLists.SetLength(aTrackSizes + 1);
|
||||
}
|
||||
|
||||
void Gecko_ResizeTArrayForStrings(nsTArray<nsString>* aArray, uint32_t aLength)
|
||||
{
|
||||
aArray->SetLength(aLength);
|
||||
}
|
||||
|
||||
void
|
||||
Gecko_CopyStyleGridTemplateValues(nsStyleGridTemplate* aGridTemplate,
|
||||
const nsStyleGridTemplate* aOther)
|
||||
|
@ -343,6 +343,11 @@ void Gecko_EnsureTArrayCapacity(void* array, size_t capacity, size_t elem_size);
|
||||
// otherwise. This is ensured with rust traits for the relevant structs.
|
||||
void Gecko_ClearPODTArray(void* array, size_t elem_size, size_t elem_align);
|
||||
|
||||
void Gecko_ResizeTArrayForStrings(nsTArray<nsString>* array, uint32_t length);
|
||||
|
||||
void Gecko_SetStyleGridTemplateArrayLengths(nsStyleGridTemplate* grid_template,
|
||||
uint32_t track_sizes);
|
||||
|
||||
void Gecko_CopyStyleGridTemplateValues(nsStyleGridTemplate* grid_template,
|
||||
const nsStyleGridTemplate* other);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user