diff options
author | Jeremy Chen <jeremychen@mozilla.com> | 2017-04-18 14:25:12 +0800 |
---|---|---|
committer | Jeremy Chen <jeremychen@mozilla.com> | 2017-04-25 09:52:19 +0800 |
commit | 13f6cf6e3a1094f4cbfed0395cfebf459b83b1c5 (patch) | |
tree | 8d922fd9a5d1f587746bbb117bb72cd8def39a26 /components/script/dom/htmltablesectionelement.rs | |
parent | 3f3f780ae5c50898e3c69da70a6662fb140be968 (diff) | |
download | servo-13f6cf6e3a1094f4cbfed0395cfebf459b83b1c5.tar.gz servo-13f6cf6e3a1094f4cbfed0395cfebf459b83b1c5.zip |
Stylo: add -moz-border-*-colors support
In Gecko, we use double pointers to nsBorderColors to store -moz-border-*-colors.
We can simplify the implementation of computed value in Servo by using Option<Vec>.
As to passing computed values from Servo to Gecko, we might need to use some
binding functions (pre-added in the same Gecko bug, see Bug 1348173).
Note that we added -moz-border-*-colors as sub_properties of the 'border'
shorthand, so we can make the 'border' shorthand reset -moz-border-*-colors
(See Gecko Bug 482692). However, since they are Gecko only non-standard properties,
we should skip these sub_properties while doing unit testing in Servo. The test part
should be convered by Stylo/Gecko already.
A bit refactoring of replacing all ["top", "right", "bottom", "left"] with PHYSICAL_SIDES
is included in this patch, since we've already had PHYSICAL_SIDES for a while.
Diffstat (limited to 'components/script/dom/htmltablesectionelement.rs')
0 files changed, 0 insertions, 0 deletions