|
1 | 1 | use cssparser::*; |
2 | 2 | use crate::properties::Property; |
3 | 3 | use crate::properties::box_shadow::BoxShadowHandler; |
| 4 | +use crate::properties::masking::MaskHandler; |
4 | 5 | use crate::traits::{PropertyHandler, ToCss}; |
5 | 6 | use crate::printer::Printer; |
6 | 7 | use crate::properties::{ |
@@ -189,6 +190,7 @@ pub(crate) struct DeclarationHandler<'i> { |
189 | 190 | overflow: OverflowHandler, |
190 | 191 | transform: TransformHandler, |
191 | 192 | box_shadow: BoxShadowHandler, |
| 193 | + mask: MaskHandler<'i>, |
192 | 194 | fallback: FallbackHandler, |
193 | 195 | prefix: PrefixHandler, |
194 | 196 | decls: DeclarationList<'i> |
@@ -219,6 +221,7 @@ impl<'i> DeclarationHandler<'i> { |
219 | 221 | overflow: OverflowHandler::new(targets), |
220 | 222 | transform: TransformHandler::new(targets), |
221 | 223 | box_shadow: BoxShadowHandler::new(targets), |
| 224 | + mask: MaskHandler::default(), |
222 | 225 | fallback: FallbackHandler::new(targets), |
223 | 226 | prefix: PrefixHandler::new(targets), |
224 | 227 | decls: DeclarationList::new() |
@@ -248,6 +251,7 @@ impl<'i> DeclarationHandler<'i> { |
248 | 251 | self.overflow.handle_property(property, &mut self.decls, context) || |
249 | 252 | self.transform.handle_property(property, &mut self.decls, context) || |
250 | 253 | self.box_shadow.handle_property(property, &mut self.decls, context) || |
| 254 | + self.mask.handle_property(property, &mut self.decls, context) || |
251 | 255 | self.fallback.handle_property(property, &mut self.decls, context) || |
252 | 256 | self.prefix.handle_property(property, &mut self.decls, context) |
253 | 257 | } |
@@ -275,6 +279,7 @@ impl<'i> DeclarationHandler<'i> { |
275 | 279 | self.overflow.finalize(&mut self.decls, context); |
276 | 280 | self.transform.finalize(&mut self.decls, context); |
277 | 281 | self.box_shadow.finalize(&mut self.decls, context); |
| 282 | + self.mask.finalize(&mut self.decls, context); |
278 | 283 | self.fallback.finalize(&mut self.decls, context); |
279 | 284 | self.prefix.finalize(&mut self.decls, context); |
280 | 285 | } |
|
0 commit comments