[gxml] HTMLCollection: renamed from GDomHTMLCollection



commit 561d4f9fbed20cb9b60ecc729720a96ab3c74c87
Author: Daniel Espinosa <esodan gmail com>
Date:   Fri Jul 5 13:43:17 2019 -0500

    HTMLCollection: renamed from GDomHTMLCollection

 gxml/GomDocument.vala                              | 10 +++++-----
 gxml/GomElement.vala                               |  8 ++++----
 gxml/{GDomCollections.vala => HTMLCollection.vala} |  2 +-
 gxml/LXPathObject.vala                             |  4 ++--
 gxml/XDocument.vala                                |  6 +++---
 gxml/XElement.vala                                 |  6 +++---
 gxml/meson.build                                   |  2 +-
 7 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/gxml/GomDocument.vala b/gxml/GomDocument.vala
index 7e13d2f..c212981 100644
--- a/gxml/GomDocument.vala
+++ b/gxml/GomDocument.vala
@@ -198,19 +198,19 @@ public class GXml.GomDocument : GomNode,
   }
 
   public DomHTMLCollection get_elements_by_tag_name (string local_name) {
-      var l = new GDomHTMLCollection ();
+      var l = new HTMLCollection ();
       if (document_element == null) return l;
       l.add_all (document_element.get_elements_by_tag_name (local_name));
       return l;
   }
   public DomHTMLCollection get_elements_by_tag_name_ns (string? ns, string local_name) {
-      var l = new GDomHTMLCollection ();
+      var l = new HTMLCollection ();
       if (document_element == null) return l;
       l.add_all (document_element.get_elements_by_tag_name_ns (ns, local_name));
       return l;
   }
   public DomHTMLCollection get_elements_by_class_name(string class_names) {
-      var l = new GDomHTMLCollection ();
+      var l = new HTMLCollection ();
       if (document_element == null) return l;
       l.add_all (document_element.get_elements_by_class_name (class_names));
       return l;
@@ -302,7 +302,7 @@ public class GXml.GomDocument : GomNode,
   // DomParentNode
   public DomHTMLCollection children {
     owned get {
-      var l = new GDomHTMLCollection ();
+      var l = new HTMLCollection ();
       foreach (GXml.DomNode n in child_nodes) {
         if (n is DomElement) l.add ((DomElement) n);
       }
@@ -422,7 +422,7 @@ public class GXml.GomDocumentFragment : GXml.GomNode,
   // DomParentNode
   public new DomHTMLCollection children {
     owned get {
-      var l = new GDomHTMLCollection ();
+      var l = new HTMLCollection ();
       foreach (GXml.DomNode n in child_nodes) {
         if (n is DomElement) l.add ((DomElement) n);
       }
diff --git a/gxml/GomElement.vala b/gxml/GomElement.vala
index fd63a34..e873a9c 100644
--- a/gxml/GomElement.vala
+++ b/gxml/GomElement.vala
@@ -249,7 +249,7 @@ public class GXml.GomElement : GomNode,
   // DomParentNode
   public new DomHTMLCollection children {
     owned get {
-      var l = new GDomHTMLCollection ();
+      var l = new HTMLCollection ();
       foreach (GXml.DomNode n in child_nodes) {
         if (n is DomElement) l.add (n as DomElement);
       }
@@ -687,7 +687,7 @@ public class GXml.GomElement : GomNode,
 
 
   public DomHTMLCollection get_elements_by_tag_name (string local_name) {
-    var l = new GDomHTMLCollection ();
+    var l = new HTMLCollection ();
     //FIXME: quircks mode not considered
     foreach (GXml.DomNode n in child_nodes) {
       if (!(n is DomElement)) continue;
@@ -698,7 +698,7 @@ public class GXml.GomElement : GomNode,
     return l;
   }
   public DomHTMLCollection get_elements_by_tag_name_ns (string? namespace, string local_name) {
-    var l = new GDomHTMLCollection ();
+    var l = new HTMLCollection ();
     //FIXME: quircks mode not considered
     foreach (GXml.DomNode n in child_nodes) {
       if (!(n is DomElement)) continue;
@@ -710,7 +710,7 @@ public class GXml.GomElement : GomNode,
     return l;
   }
   public DomHTMLCollection get_elements_by_class_name (string class_names) {
-    var l = new GDomHTMLCollection ();
+    var l = new HTMLCollection ();
     if (class_names == "") return l;
     string[] cs = {};
     if (" " in class_names) {
diff --git a/gxml/GDomCollections.vala b/gxml/HTMLCollection.vala
similarity index 95%
rename from gxml/GDomCollections.vala
rename to gxml/HTMLCollection.vala
index 9954ea7..3cb313c 100644
--- a/gxml/GDomCollections.vala
+++ b/gxml/HTMLCollection.vala
@@ -25,7 +25,7 @@ using Gee;
 /**
  * DOM4 HTML Collection, powered by libxml2 library.
  */
-public class GXml.GDomHTMLCollection : Gee.ArrayList<GXml.DomElement>,
+public class GXml.HTMLCollection : Gee.ArrayList<GXml.DomElement>,
               GXml.DomHTMLCollection
 {
   public int length { get { return size; } }
diff --git a/gxml/LXPathObject.vala b/gxml/LXPathObject.vala
index 7412736..faa425b 100644
--- a/gxml/LXPathObject.vala
+++ b/gxml/LXPathObject.vala
@@ -23,14 +23,14 @@
  */
 
 public class GXml.LXPathObject : GLib.Object, GXml.XPathObject {
-  private GXml.GDomHTMLCollection _collection;
+  private GXml.HTMLCollection _collection;
   private GXml.XPathObjectType _object_type;
   private bool _boolean_value;
   private string _string_value;
   private double _number_value;
 
   public LXPathObject (GXml.XDocument document, Xml.XPath.Object* pointer) {
-    _collection = new GXml.GDomHTMLCollection();
+    _collection = new GXml.HTMLCollection();
 
     _object_type = (GXml.XPathObjectType) pointer->type;
 
diff --git a/gxml/XDocument.vala b/gxml/XDocument.vala
index 620b483..0100f33 100644
--- a/gxml/XDocument.vala
+++ b/gxml/XDocument.vala
@@ -216,19 +216,19 @@ public class GXml.XDocument : GXml.XNode,
   }
 
   public DomHTMLCollection get_elements_by_tag_name (string local_name) {
-      var l = new GDomHTMLCollection ();
+      var l = new HTMLCollection ();
       if (document_element == null) return l;
       l.add_all (document_element.get_elements_by_tag_name (local_name));
       return l;
   }
   public DomHTMLCollection get_elements_by_tag_name_ns (string? ns, string local_name) {
-      var l = new GDomHTMLCollection ();
+      var l = new HTMLCollection ();
       if (document_element == null) return l;
       l.add_all (document_element.get_elements_by_tag_name_ns (ns, local_name));
       return l;
   }
   public DomHTMLCollection get_elements_by_class_name(string class_names) {
-      var l = new GDomHTMLCollection ();
+      var l = new HTMLCollection ();
       if (document_element == null) return l;
       l.add_all (document_element.get_elements_by_class_name (class_names));
       return l;
diff --git a/gxml/XElement.vala b/gxml/XElement.vala
index ae7fa25..b4da56c 100644
--- a/gxml/XElement.vala
+++ b/gxml/XElement.vala
@@ -251,7 +251,7 @@ public class GXml.XElement : GXml.XNonDocumentChildNode,
 
 
   public DomHTMLCollection get_elements_by_tag_name (string local_name) {
-    var l = new GDomHTMLCollection ();
+    var l = new HTMLCollection ();
     //FIXME: quircks mode not considered
     foreach (GXml.DomElement n in children) {
       if (n.node_name == local_name)
@@ -261,7 +261,7 @@ public class GXml.XElement : GXml.XNonDocumentChildNode,
     return l;
   }
   public DomHTMLCollection get_elements_by_tag_name_ns (string? namespace, string local_name) {
-    var l = new GDomHTMLCollection ();
+    var l = new HTMLCollection ();
     //FIXME: quircks mode not considered
     foreach (GXml.DomElement n in children) {
       if (n.node_name == local_name
@@ -272,7 +272,7 @@ public class GXml.XElement : GXml.XNonDocumentChildNode,
     return l;
   }
   public DomHTMLCollection get_elements_by_class_name (string class_names) {
-    var l = new GDomHTMLCollection ();
+    var l = new HTMLCollection ();
     if (class_names == "") return l;
     string[] cs = {};
     if (" " in class_names) {
diff --git a/gxml/meson.build b/gxml/meson.build
index 3eea371..52da5f8 100644
--- a/gxml/meson.build
+++ b/gxml/meson.build
@@ -49,7 +49,6 @@ valasources = files ([
        'DomNode.vala',
        'DomRange.vala',
        'Enumeration.vala',
-       'GDomCollections.vala',
        'GDomEvents.vala',
        'GDomRange.vala',
        'GomArrayList.vala',
@@ -67,6 +66,7 @@ valasources = files ([
        'GomStringRef.vala',
        'GomText.vala',
        'gxml-init.vala',
+       'HTMLCollection.vala',
        'LXPathObject.vala',
        'Namespace.vala',
        'NodeType.vala',


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