[librsvg: 5/13] Docs for Document.cascade()



commit ca8a54cf9bdeb01b6844568620a56fba1da59c4b
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Jan 23 17:02:44 2020 -0600

    Docs for Document.cascade()

 rsvg_internals/src/document.rs | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/rsvg_internals/src/document.rs b/rsvg_internals/src/document.rs
index 1ae414a7..c4b1ee57 100644
--- a/rsvg_internals/src/document.rs
+++ b/rsvg_internals/src/document.rs
@@ -101,6 +101,10 @@ impl Document {
         node_data.get_impl::<Svg>().get_intrinsic_dimensions()
     }
 
+    /// Runs the CSS cascade on the document tree
+    ///
+    /// This uses the document's internal stylesheets, plus an extra set of stylesheets
+    /// supplied by the caller.
     pub fn cascade(&mut self, extra: &[Stylesheet]) {
         css::cascade(&mut self.tree, &self.stylesheets, extra);
     }


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