path: root/developer
diff options
authorJames Bursa <>2003-02-09 15:58:29 +0000
committerJames Bursa <>2003-02-09 15:58:29 +0000
commit8e1f614aadb2941a0eb7f4f64218f1baf1bcb2a4 (patch)
tree03dd60ef3d71bcff8a4dd11b08f2f808879d6065 /developer
parent80cd52ad841eafb6f65508dd710d9042e291d697 (diff)
[project @ 2003-02-09 15:58:29 by bursa]
Document content/. svn path=/import/netsurf/; revision=98
Diffstat (limited to 'developer')
1 files changed, 22 insertions, 1 deletions
diff --git a/developer b/developer
index 594083997..499b7337c 100644
--- a/developer
+++ b/developer
@@ -17,7 +17,28 @@ utils -- misc. useful functions
-HTML and CSS processing and layout
+content -- fetching, caching, and converting content
+Each URL is stored in a struct content. This structure contains a union with
+fields for each type of data (HTML, CSS, images).
+The content_* functions provide a general interface for handling these
+structures. A content of a specified type is created using content_create(),
+data is fed to it using content_process_data(), terminated by a call to
+content_convert(), which converts the content into a structure which can be
+displayed easily.
+The cache stores this converted content. When content is retrieved from the
+cache, content_revive() should result in content which can be displayed (eg. by
+loading any images and styles required and updating pointers to them).
+Code should not usually use the fetch_* and cache_* functions directly, except
+for cache_free(). Instead use fetchcache(), which checks the cache for a url and
+fetches, converts, and caches it if not present.
+render -- HTML and CSS processing and layout
This is the process to render an HTML document: