diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-11-14 16:11:44 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-11-14 16:11:44 +0100 |
commit | 6d23a845404c5a9f75528fef3ecd1d19857b753e (patch) | |
tree | 37d621687839899cd9efc31042a0c5ff7c304027 /src | |
parent | 145ed02060f6a24dac31090e8d18429ddcbbfab1 (diff) |
call StyleEngine::startElement() in Html_force_push_tag() to fix assertions
Diffstat (limited to 'src')
-rw-r--r-- | src/html.cc | 1 | ||||
-rw-r--r-- | src/styleengine.hh | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/html.cc b/src/html.cc index 47fa4885..2bd8914d 100644 --- a/src/html.cc +++ b/src/html.cc @@ -1270,6 +1270,7 @@ static void Html_push_tag(DilloHtml *html, int tag_idx) */ static void Html_force_push_tag(DilloHtml *html, int tag_idx) { + html->styleEngine->startElement (tag_idx); Html_push_tag(html, tag_idx); } diff --git a/src/styleengine.hh b/src/styleengine.hh index 0706411c..7a646d3b 100644 --- a/src/styleengine.hh +++ b/src/styleengine.hh @@ -37,8 +37,8 @@ class StyleEngine : public Doctree { return NULL; }; - void startElement (int tag, const char *id, const char *klass, - const char *style); + void startElement (int tag, const char *id = NULL, const char *klass = NULL, + const char *style = NULL); void endElement (int tag); void setNonCssProperties (CssPropertyList *props); void setPseudoClass (const char *pseudoClass); |