mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Use more compact and ffi-friendly types for some svg props.
No functional change yet. Differential Revision: https://phabricator.services.mozilla.com/D36805
This commit is contained in:
parent
a0df9f76de
commit
f0b5d02901
4 changed files with 16 additions and 14 deletions
|
@ -62,16 +62,16 @@ impl SVGWidth {
|
|||
}
|
||||
|
||||
/// [ <length> | <percentage> | <number> ]# | context-value
|
||||
pub type SVGStrokeDashArray = generic::SVGStrokeDashArray<NonNegativeLengthPercentage>;
|
||||
pub type SVGStrokeDashArray = generic::GenericSVGStrokeDashArray<NonNegativeLengthPercentage>;
|
||||
|
||||
impl Default for SVGStrokeDashArray {
|
||||
fn default() -> Self {
|
||||
generic::SVGStrokeDashArray::Values(vec![])
|
||||
generic::SVGStrokeDashArray::Values(Default::default())
|
||||
}
|
||||
}
|
||||
|
||||
/// <opacity-value> | context-fill-opacity | context-stroke-opacity
|
||||
pub type SVGOpacity = generic::SVGOpacity<Opacity>;
|
||||
pub type SVGOpacity = generic::GenericSVGOpacity<Opacity>;
|
||||
|
||||
impl Default for SVGOpacity {
|
||||
fn default() -> Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue