mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Support border-*-color in geckolib.
This commit is contained in:
parent
952459c0d4
commit
174680f98c
1 changed files with 5 additions and 1 deletions
|
@ -434,7 +434,8 @@ fn static_assert() {
|
||||||
<% border_style_keyword = Keyword("border-style",
|
<% border_style_keyword = Keyword("border-style",
|
||||||
"none solid double dotted dashed hidden groove ridge inset outset") %>
|
"none solid double dotted dashed hidden groove ridge inset outset") %>
|
||||||
|
|
||||||
<% skip_border_longhands = " ".join(["border-{0}-style border-{0}-width ".format(x.ident) for x in SIDES]) %>
|
<% skip_border_longhands = " ".join(["border-{0}-color border-{0}-style border-{0}-width ".format(x.ident)
|
||||||
|
for x in SIDES]) %>
|
||||||
<%self:impl_trait style_struct_name="Border"
|
<%self:impl_trait style_struct_name="Border"
|
||||||
skip_longhands="${skip_border_longhands}"
|
skip_longhands="${skip_border_longhands}"
|
||||||
skip_additionals="*">
|
skip_additionals="*">
|
||||||
|
@ -443,6 +444,9 @@ fn static_assert() {
|
||||||
<% impl_keyword("border_%s_style" % side.ident, "mBorderStyle[%s]" % side.index, border_style_keyword,
|
<% impl_keyword("border_%s_style" % side.ident, "mBorderStyle[%s]" % side.index, border_style_keyword,
|
||||||
need_clone=True) %>
|
need_clone=True) %>
|
||||||
|
|
||||||
|
<% impl_color("border_%s_color" % side.ident, "mBorderColor[%s]" % side.index,
|
||||||
|
color_flags_ffi_name="mBorderStyle[%s]" % side.index) %>
|
||||||
|
|
||||||
<% impl_app_units("border_%s_width" % side.ident, "mComputedBorder.%s" % side.ident, need_clone=False) %>
|
<% impl_app_units("border_%s_width" % side.ident, "mComputedBorder.%s" % side.ident, need_clone=False) %>
|
||||||
|
|
||||||
fn border_${side.ident}_has_nonzero_width(&self) -> bool {
|
fn border_${side.ident}_has_nonzero_width(&self) -> bool {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue