mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
style: Avoid manual paint-order glue code.
Differential Revision: https://phabricator.services.mozilla.com/D42913
This commit is contained in:
parent
14c7e133ad
commit
432b417d98
2 changed files with 6 additions and 16 deletions
|
@ -2599,18 +2599,7 @@ clip-path
|
|||
</%self:impl_trait>
|
||||
|
||||
<%self:impl_trait style_struct_name="InheritedSVG"
|
||||
skip_longhands="paint-order stroke-dasharray">
|
||||
pub fn set_paint_order(&mut self, v: longhands::paint_order::computed_value::T) {
|
||||
self.gecko.mPaintOrder = v.0;
|
||||
}
|
||||
|
||||
${impl_simple_copy('paint_order', 'mPaintOrder')}
|
||||
|
||||
pub fn clone_paint_order(&self) -> longhands::paint_order::computed_value::T {
|
||||
use crate::properties::longhands::paint_order::computed_value::T;
|
||||
T(self.gecko.mPaintOrder)
|
||||
}
|
||||
|
||||
skip_longhands="stroke-dasharray">
|
||||
pub fn set_stroke_dasharray(&mut self, v: longhands::stroke_dasharray::computed_value::T) {
|
||||
use crate::gecko_bindings::structs::nsStyleSVG_STROKE_DASHARRAY_CONTEXT as CONTEXT_VALUE;
|
||||
use crate::values::generics::svg::SVGStrokeDashArray;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue