[librsvg: 4/22] NodePattern: move the fallback field to the end



commit 2a9a56c52defd4fe89f6b2cb5adb15bbaeaa6dc9
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Oct 1 11:06:51 2019 -0500

    NodePattern: move the fallback field to the end
    
    Will make further refactoring easier.

 rsvg_internals/src/pattern.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/pattern.rs b/rsvg_internals/src/pattern.rs
index c6cc4e95..c99f2918 100644
--- a/rsvg_internals/src/pattern.rs
+++ b/rsvg_internals/src/pattern.rs
@@ -40,7 +40,6 @@ pub struct NodePattern {
     pub vbox: Option<Option<ViewBox>>,
     pub preserve_aspect_ratio: Option<AspectRatio>,
     pub affine: Option<cairo::Matrix>,
-    pub fallback: Option<Fragment>,
     pub x: Option<LengthHorizontal>,
     pub y: Option<LengthVertical>,
     pub width: Option<LengthHorizontal>,
@@ -50,6 +49,8 @@ pub struct NodePattern {
     // If the value is None, it means we are fully resolved and didn't find any children
     // among the fallbacks.
     pub node: RefCell<Option<RsvgNode>>,
+
+    pub fallback: Option<Fragment>,
 }
 
 impl NodeTrait for NodePattern {


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