r13659 dsilvers - in /trunk/libdom: include/dom/html/html_document.h src/html/html_document.c src/html/html_document.h

netsurf at semichrome.net netsurf at semichrome.net
Sun Mar 25 10:34:59 BST 2012


Author: dsilvers
Date: Sun Mar 25 04:34:59 2012
New Revision: 13659

URL: http://source.netsurf-browser.org?rev=13659&view=rev
Log:
Spell Referrer properly, rather than HTTPish.

Modified:
    trunk/libdom/include/dom/html/html_document.h
    trunk/libdom/src/html/html_document.c
    trunk/libdom/src/html/html_document.h

Modified: trunk/libdom/include/dom/html/html_document.h
URL: http://source.netsurf-browser.org/trunk/libdom/include/dom/html/html_document.h?rev=13659&r1=13658&r2=13659&view=diff
==============================================================================
--- trunk/libdom/include/dom/html/html_document.h (original)
+++ trunk/libdom/include/dom/html/html_document.h Sun Mar 25 04:34:59 2012
@@ -27,8 +27,8 @@
 			dom_string **title);
 	dom_exception (*set_title)(dom_html_document *doc,
 			dom_string *title);
-	dom_exception (*get_referer)(dom_html_document *doc,
-			dom_string **referer);
+	dom_exception (*get_referrer)(dom_html_document *doc,
+			dom_string **referrer);
 	dom_exception (*get_domain)(dom_html_document *doc,
 			dom_string **domain);
 	dom_exception (*get_url)(dom_html_document *doc,
@@ -82,14 +82,14 @@
 		dom_html_document_set_title((dom_html_document *) (d), \
 				(dom_string **) (t))
 
-static inline dom_exception dom_html_document_get_referer(dom_html_document *doc,
-		dom_string **referer)
-{
-	return ((dom_html_document_vtable *) ((dom_node *) doc)->vtable)->
-		get_referer(doc, referer);
-}
-#define dom_html_document_get_referer(d, r) \
-		dom_html_document_get_referer((dom_html_document *) (d), \
+static inline dom_exception dom_html_document_get_referrer(dom_html_document *doc,
+		dom_string **referrer)
+{
+	return ((dom_html_document_vtable *) ((dom_node *) doc)->vtable)->
+		get_referrer(doc, referrer);
+}
+#define dom_html_document_get_referrer(d, r) \
+		dom_html_document_get_referrer((dom_html_document *) (d), \
 				(dom_string **) (r))
 
 static inline dom_exception dom_html_document_get_domain(dom_html_document *doc,

Modified: trunk/libdom/src/html/html_document.c
URL: http://source.netsurf-browser.org/trunk/libdom/src/html/html_document.c?rev=13659&r1=13658&r2=13659&view=diff
==============================================================================
--- trunk/libdom/src/html/html_document.c (original)
+++ trunk/libdom/src/html/html_document.c Sun Mar 25 04:34:59 2012
@@ -69,7 +69,7 @@
 		return error;
 
 	doc->title = NULL;
-	doc->referer = NULL;
+	doc->referrer = NULL;
 	doc->domain = NULL;
 	doc->url = NULL;
 	doc->cookie = NULL;
@@ -83,7 +83,7 @@
 	dom_string_unref(doc->cookie);
 	dom_string_unref(doc->url);
 	dom_string_unref(doc->domain);
-	dom_string_unref(doc->referer);
+	dom_string_unref(doc->referrer);
 	dom_string_unref(doc->title);
 
 	_dom_document_finalise(&doc->base);
@@ -241,10 +241,10 @@
 	return DOM_NO_ERR;
 }
 
-dom_exception _dom_html_document_get_referer(dom_html_document *doc,
-		dom_string **referer)
-{
-	*referer = dom_string_ref(doc->referer);
+dom_exception _dom_html_document_get_referrer(dom_html_document *doc,
+		dom_string **referrer)
+{
+	*referrer = dom_string_ref(doc->referrer);
 
 	return DOM_NO_ERR;
 }

Modified: trunk/libdom/src/html/html_document.h
URL: http://source.netsurf-browser.org/trunk/libdom/src/html/html_document.h?rev=13659&r1=13658&r2=13659&view=diff
==============================================================================
--- trunk/libdom/src/html/html_document.h (original)
+++ trunk/libdom/src/html/html_document.h Sun Mar 25 04:34:59 2012
@@ -19,7 +19,7 @@
 	struct dom_document base;	/**< The base class */
 	
 	dom_string *title;	/**< HTML document title */
-	dom_string *referer;	/**< HTML document referer */
+	dom_string *referrer;	/**< HTML document referrer */
 	dom_string *domain;	/**< HTML document domain */
 	dom_string *url;	/**< HTML document URL */
 	dom_string *cookie;	/**< HTML document cookie */
@@ -47,8 +47,8 @@
 		dom_string **title);
 dom_exception _dom_html_document_set_title(dom_html_document *doc,
 		dom_string *title);
-dom_exception _dom_html_document_get_referer(dom_html_document *doc,
-		dom_string **referer);
+dom_exception _dom_html_document_get_referrer(dom_html_document *doc,
+		dom_string **referrer);
 dom_exception _dom_html_document_get_domain(dom_html_document *doc,
 		dom_string **domain);
 dom_exception _dom_html_document_get_url(dom_html_document *doc,
@@ -85,7 +85,7 @@
 #define DOM_HTML_DOCUMENT_VTABLE \
 	_dom_html_document_get_title, \
 	_dom_html_document_set_title, \
-	_dom_html_document_get_referer, \
+	_dom_html_document_get_referrer, \
 	_dom_html_document_get_domain, \
 	_dom_html_document_get_url, \
 	_dom_html_document_get_body, \




More information about the netsurf-commits mailing list