mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
Make use of Servo's border-spacing in Stylo
This commit is contained in:
parent
4ceea0426c
commit
2999581fb7
2 changed files with 17 additions and 1 deletions
|
@ -1443,6 +1443,22 @@ fn static_assert() {
|
|||
</%self:impl_trait>
|
||||
|
||||
|
||||
<%self:impl_trait style_struct_name="InheritedTable"
|
||||
skip_longhands="border-spacing">
|
||||
|
||||
pub fn set_border_spacing(&mut self, v: longhands::border_spacing::computed_value::T) {
|
||||
self.gecko.mBorderSpacingCol = v.horizontal.0;
|
||||
self.gecko.mBorderSpacingRow = v.vertical.0;
|
||||
}
|
||||
|
||||
pub fn copy_border_spacing_from(&mut self, other: &Self) {
|
||||
self.gecko.mBorderSpacingCol = other.gecko.mBorderSpacingCol;
|
||||
self.gecko.mBorderSpacingRow = other.gecko.mBorderSpacingRow;
|
||||
}
|
||||
|
||||
</%self:impl_trait>
|
||||
|
||||
|
||||
<%self:impl_trait style_struct_name="InheritedText"
|
||||
skip_longhands="text-align text-shadow line-height word-spacing">
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue