summaryrefslogtreecommitdiff
path: root/content/content.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-04-11 16:34:23 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-04-11 16:34:23 +0000
commit7577e2a1e6a2b1c3b61cc01b3f3f18476afa05fb (patch)
tree11753f94abe304fb64b2dddc9bf566af87f0bcff /content/content.c
parentad89d5b263ca86c5c55366fc7412cfc1529b13c3 (diff)
downloadnetsurf-7577e2a1e6a2b1c3b61cc01b3f3f18476afa05fb.tar.gz
netsurf-7577e2a1e6a2b1c3b61cc01b3f3f18476afa05fb.tar.bz2
Ensure quirks mode matches when retrieving contents from cache
svn path=/trunk/netsurf/; revision=10360
Diffstat (limited to 'content/content.c')
-rw-r--r--content/content.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c
index 397c645e4..ba4db702c 100644
--- a/content/content.c
+++ b/content/content.c
@@ -973,6 +973,22 @@ uint32_t content_count_users(struct content *c)
}
/**
+ * Determine if quirks mode matches
+ *
+ * \param c Content to consider
+ * \param quirks Quirks mode to match
+ * \return True if quirks match, false otherwise
+ */
+bool content_matches_quirks(struct content *c, bool quirks)
+{
+ /* If the content isn't CSS, we don't care about quirks */
+ if (c->type != CONTENT_CSS)
+ return true;
+
+ return c->quirks == quirks;
+}
+
+/**
* Send a message to all users.
*/