mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement outline-style and outline_has_nonzero_width.
This commit is contained in:
parent
81a1d32387
commit
2b415bfe97
1 changed files with 11 additions and 0 deletions
|
@ -337,6 +337,17 @@ fn static_assert() {
|
|||
% endfor
|
||||
</%self:impl_trait>
|
||||
|
||||
<%self:impl_trait style_struct_name="Outline"
|
||||
skip_longhands="outline-style"
|
||||
skip_additionals="*">
|
||||
|
||||
<% impl_keyword("outline_style", "mOutlineStyle", border_style_keyword, need_clone=True) %>
|
||||
|
||||
fn outline_has_nonzero_width(&self) -> bool {
|
||||
self.gecko.mCachedOutlineWidth != 0
|
||||
}
|
||||
</%self:impl_trait>
|
||||
|
||||
<%self:impl_trait style_struct_name="Box" skip_longhands="display overflow-y">
|
||||
|
||||
// We manually-implement the |display| property until we get general
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue