[librsvg: 7/16] make_properties: Add space for shorthand properties



commit afacf1460b83270422a1c85798ba0c6aba5d7e12
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Mar 25 12:58:05 2020 -0600

    make_properties: Add space for shorthand properties

 rsvg_internals/src/properties.rs | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/rsvg_internals/src/properties.rs b/rsvg_internals/src/properties.rs
index 05bb46fa..cac7e76c 100644
--- a/rsvg_internals/src/properties.rs
+++ b/rsvg_internals/src/properties.rs
@@ -486,6 +486,10 @@ impl ComputedValues {
 /// Macro to generate the ComputedValues struct
 macro_rules! make_properties {
     {
+        shorthands: {
+            $($short_field:ident: $short_name:ident,)*
+        }
+
         longhands: {
             $($long_field:ident: $long_name:ident,)+
         }
@@ -508,6 +512,9 @@ macro_rules! make_properties {
 }
 
 make_properties! {
+    shorthands: {
+    }
+
     longhands: {
         baseline_shift: BaselineShift,
         clip_path: ClipPath,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]