Support top, right, bottom and left in geckolib.

This commit is contained in:
Cameron McCormack 2016-05-04 13:13:22 +10:00
parent d5270427ff
commit 580f58c146

View file

@ -476,6 +476,16 @@ fn static_assert() {
% endfor
</%self:impl_trait>
<% skip_position_longhands = " ".join(x.ident for x in SIDES) %>
<%self:impl_trait style_struct_name="Position"
skip_longhands="${skip_position_longhands}">
% for side in SIDES:
<% impl_style_coord("%s" % side.ident,
"mOffset.mUnits[%s]" % side.index, "mOffset.mValues[%s]" % side.index) %>
% endfor
</%self:impl_trait>
<%self:impl_trait style_struct_name="Outline"
skip_longhands="outline-color outline-style"
skip_additionals="*">