[librsvg: 13/14] Remove content_style_type() after all



commit fe1d09b3e0589ab533540490f8d5832abb792d69
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Nov 11 17:17:26 2019 -0600

    Remove content_style_type() after all
    
    Per the discussion in
    https://gitlab.gnome.org/GNOME/librsvg/merge_requests/254

 rsvg_internals/src/structure.rs | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/rsvg_internals/src/structure.rs b/rsvg_internals/src/structure.rs
index ecb0a1ed..e8989506 100644
--- a/rsvg_internals/src/structure.rs
+++ b/rsvg_internals/src/structure.rs
@@ -15,7 +15,6 @@ use crate::properties::ComputedValues;
 use crate::property_bag::PropertyBag;
 use crate::property_defs::Overflow;
 use crate::rect::RectangleExt;
-use crate::style::StyleType;
 use crate::viewbox::*;
 
 #[derive(Default)]
@@ -101,7 +100,6 @@ pub struct Svg {
     w: Option<LengthHorizontal>,
     h: Option<LengthVertical>,
     vbox: Option<ViewBox>,
-    content_style_type: Option<StyleType>,
 }
 
 impl Svg {
@@ -174,10 +172,6 @@ impl Svg {
             h.normalize(values, &params),
         )
     }
-
-    pub fn content_style_type(&self) -> StyleType {
-        self.content_style_type.unwrap_or(StyleType::TextCss)
-    }
 }
 
 impl NodeTrait for Svg {
@@ -202,9 +196,6 @@ impl NodeTrait for Svg {
                         Some(attr.parse_and_validate(value, LengthVertical::check_nonnegative)?)
                 }
                 expanded_name!(svg "viewBox") => self.vbox = attr.parse(value).map(Some)?,
-                expanded_name!(svg "contentStyleType") => {
-                    self.content_style_type = Some(attr.parse(value)?)
-                }
                 _ => (),
             }
         }


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