aboutsummaryrefslogtreecommitdiff
path: root/src/html_common.hh
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-02-03 09:18:49 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-02-03 09:18:49 -0300
commitba53afebc95493fcf3a7105989e2cabb015b4b1b (patch)
treeba2d4120e27956da3c5dc2e276731d5c50db5b75 /src/html_common.hh
parent69bcd6963fabfd547495c186e3ea570d2f33cbed (diff)
Fix a race condition with charset, and the case of charset after CSS in HEAD
Race condition example: www.blisty.cz charset after CSS ex. : http://www.daemonnews.org
Diffstat (limited to 'src/html_common.hh')
-rw-r--r--src/html_common.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/html_common.hh b/src/html_common.hh
index de87ec80..7983ea5a 100644
--- a/src/html_common.hh
+++ b/src/html_common.hh
@@ -172,14 +172,15 @@ public: //BUG: for now everything is public
char *content_type, *charset;
bool stop_parser;
- bool repush_after_head;
-
size_t CurrTagOfs;
size_t OldTagOfs, OldTagLine;
DilloHtmlDocumentType DocType; /* as given by DOCTYPE tag */
float DocTypeVersion; /* HTML or XHTML version number */
+ /* vector of remote CSS resources, as given by the LINK element */
+ lout::misc::SimpleVector<DilloUrl*> *cssUrls;
+
lout::misc::SimpleVector<DilloHtmlState> *stack;
StyleEngine *styleEngine;
@@ -233,6 +234,7 @@ public:
DilloHtmlForm *getCurrentForm ();
bool_t unloadedImages();
void loadImages (const DilloUrl *pattern);
+ void addCssUrl(const DilloUrl *url);
};
/*