[librsvg: 9/26] Rename function to append_stylesheet_from_xml_processing_instruction()



commit 2b251eb7ab3e71cd78638f2ddff7e8f888f1abff
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Nov 7 18:55:32 2019 -0600

    Rename function to append_stylesheet_from_xml_processing_instruction()
    
    I'm going to create a separate Stylesheet type for actual loaded
    stylesheets, so the existing one will probably go away.

 rsvg_internals/src/document.rs | 2 +-
 rsvg_internals/src/xml.rs      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/document.rs b/rsvg_internals/src/document.rs
index 3dc645c2..94790d7c 100644
--- a/rsvg_internals/src/document.rs
+++ b/rsvg_internals/src/document.rs
@@ -235,7 +235,7 @@ impl DocumentBuilder {
         }
     }
 
-    pub fn append_stylesheet(
+    pub fn append_stylesheet_from_xml_processing_instruction(
         &mut self,
         alternate: Option<String>,
         type_: Option<String>,
diff --git a/rsvg_internals/src/xml.rs b/rsvg_internals/src/xml.rs
index fbff54e2..d6289994 100644
--- a/rsvg_internals/src/xml.rs
+++ b/rsvg_internals/src/xml.rs
@@ -234,7 +234,7 @@ impl XmlState {
                 .document_builder
                 .as_mut()
                 .unwrap()
-                .append_stylesheet(alternate, type_, href);
+                .append_stylesheet_from_xml_processing_instruction(alternate, type_, href);
         } else {
             self.error(ParseFromStreamError::XmlParseError(String::from(
                 "invalid processing instruction data in xml-stylesheet",


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