mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Implement border_SIDE_has_nonzero_width.
This commit is contained in:
parent
9cec012765
commit
81a1d32387
1 changed files with 5 additions and 5 deletions
|
@ -284,7 +284,7 @@ impl ${style_struct.trait_name} for ${style_struct.gecko_struct_name} {
|
||||||
% endif
|
% endif
|
||||||
% endfor
|
% endfor
|
||||||
<% additionals = [x for x in style_struct.additional_methods
|
<% additionals = [x for x in style_struct.additional_methods
|
||||||
if not x.name in skip_additionals.split()] %>
|
if skip_additionals != "*" and not x.name in skip_additionals.split()] %>
|
||||||
% for additional in additionals:
|
% for additional in additionals:
|
||||||
${additional.stub()}
|
${additional.stub()}
|
||||||
% endfor
|
% endfor
|
||||||
|
@ -325,16 +325,16 @@ fn static_assert() {
|
||||||
|
|
||||||
<%self:impl_trait style_struct_name="Border"
|
<%self:impl_trait style_struct_name="Border"
|
||||||
skip_longhands="border-top-style border-right-style border-bottom-style border-left-style"
|
skip_longhands="border-top-style border-right-style border-bottom-style border-left-style"
|
||||||
skip_additionals="border_bottom_has_nonzero_width">
|
skip_additionals="*">
|
||||||
|
|
||||||
% for side in SIDES:
|
% for side in SIDES:
|
||||||
<% 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) %>
|
||||||
% endfor
|
|
||||||
|
|
||||||
fn border_bottom_has_nonzero_width(&self) -> bool {
|
fn border_${side.ident}_has_nonzero_width(&self) -> bool {
|
||||||
unimplemented!()
|
self.gecko.mComputedBorder.${side.ident} != 0
|
||||||
}
|
}
|
||||||
|
% endfor
|
||||||
</%self:impl_trait>
|
</%self:impl_trait>
|
||||||
|
|
||||||
<%self:impl_trait style_struct_name="Box" skip_longhands="display overflow-y">
|
<%self:impl_trait style_struct_name="Box" skip_longhands="display overflow-y">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue