mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Support top, right, bottom and left in geckolib.
This commit is contained in:
parent
d5270427ff
commit
580f58c146
1 changed files with 10 additions and 0 deletions
|
@ -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="*">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue