Displaying 9 results from an estimated 9 matches for "tags_open".
2007 Oct 19
1
3 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field_movie.c
...bswfdec/swfdec_html_parser.c b/libswfdec/swfdec_html_parser.c
index 5bd0367..5d9153a 100644
--- a/libswfdec/swfdec_html_parser.c
+++ b/libswfdec/swfdec_html_parser.c
@@ -270,16 +270,17 @@ swfdec_text_field_movie_html_parse_tag (ParserData *data, const char *p)
if (close)
{
- if (data->tags_open != NULL) {
- tag = (ParserTag *)data->tags_open->data;
- } else {
- tag = NULL;
- }
+ GSList *iter;
- if (tag != NULL && name_length == tag->name_length &&
- !g_strncasecmp (name, tag->name, name_length))
+ for (iter = data->tags_open; iter...
2007 Oct 31
0
2 commits - libswfdec/swfdec_sound.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie_html.c
...@ -81,7 +81,7 @@ swfdec_text_field_movie_html_parse_close_tag (ParserData *data, ParserTag *tag)
data->text = g_string_append_c (data->text, '\n');
}
- tag->end_index = g_utf8_strlen (data->text->str, -1);
+ tag->end_index = data->text->len;
data->tags_open = g_slist_remove (data->tags_open, tag);
data->tags_closed = g_slist_prepend (data->tags_closed, tag);
@@ -347,7 +347,7 @@ swfdec_text_field_movie_html_parse_tag (ParserData *data, const char *p)
tag->name = name;
tag->name_length = name_length;
tag->format = SWF...
2007 Nov 01
0
libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie_html.c
...text_field_movie_html.c b/libswfdec/swfdec_text_field_movie_html.c
index ef22415..ba60530 100644
--- a/libswfdec/swfdec_text_field_movie_html.c
+++ b/libswfdec/swfdec_text_field_movie_html.c
@@ -352,19 +352,23 @@ swfdec_text_field_movie_html_parse_tag (ParserData *data, const char *p)
data->tags_open = g_slist_prepend (data->tags_open, tag);
// set format based on tag
- object = SWFDEC_AS_OBJECT (tag->format);
- SWFDEC_AS_VALUE_SET_BOOLEAN (&val, TRUE);
-
- if (tag->name_length == 2 && !g_strncasecmp (tag->name, "li", 2)) {
- swfdec_as_obje...
2007 Oct 19
0
3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_sprite_movie_as.c libswfdec/swfdec_text_field_movie.c
...!g_strncasecmp (name, "p", 1)) ||
(name_length == 2 && !g_strncasecmp (name, "li", 2))) {
@@ -255,6 +253,8 @@ swfdec_text_field_movie_html_parse_tag (ParserData *data, const char *p)
}
}
+ tag->end_index = data->text->len;
+
data->tags_open = g_slist_remove (data->tags_open, tag);
data->tags_closed = g_slist_prepend (data->tags_closed, tag);
}
commit 0e9a542dee29e14e3bc4c26ffcb4711c6dec4090
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Fri Oct 19 12:23:46 2007 +0300
Don't parse kerning in...
2007 Oct 22
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c test/trace
...@ -73,7 +73,7 @@ swfdec_text_field_movie_html_parse_close_tag (ParserData *data, ParserTag *tag)
data->text = g_string_append_c (data->text, '\n');
}
- tag->end_index = data->text->len;
+ tag->end_index = g_utf8_strlen (data->text->str, -1);
data->tags_open = g_slist_remove (data->tags_open, tag);
data->tags_closed = g_slist_prepend (data->tags_closed, tag);
@@ -313,7 +313,7 @@ swfdec_text_field_movie_html_parse_tag (ParserData *data, const char *p)
tag->name = name;
tag->name_length = name_length;
tag->format...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...f ((name_length == 1 && !g_strncasecmp (name, "p", 1)) ||
+ (name_length == 2 && !g_strncasecmp (name, "li", 2)) ||
+ (name_length == 2 && !g_strncasecmp (name, "br", 2)))
{
- GSList *iter;
+ GSList *iter;
for (iter = data->tags_open; iter != NULL; iter = iter->next) {
ParserTag *f = iter->data;
@@ -341,41 +341,40 @@ swfdec_text_field_movie_html_parse_tag (ParserData *data, const char *p)
}
}
}
+ }
- tag = g_new0 (ParserTag, 1);
- tag->name = name;
- tag->name_length = name_lengt...
2007 Oct 23
0
9 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h
...ot;
+#include "swfdec_style_sheet.h"
#include "swfdec_xml.h"
#include "swfdec_debug.h"
@@ -41,6 +42,7 @@ typedef struct {
SwfdecAsContext *cx;
gboolean multiline;
gboolean condense_white;
+ SwfdecStyleSheet *style_sheet;
GString * text;
GSList * tags_open;
GSList * tags_closed;
@@ -97,8 +99,9 @@ swfdec_text_field_movie_html_parse_comment (ParserData *data, const char *p)
}
static void
-swfdec_text_field_movie_html_tag_set_attribute (ParserTag *tag,
- const char *name, int name_length, const char *value, int value_length)
+swfdec_text_fiel...
2007 Oct 22
0
12 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...n (text->input, "");
+
data.cx = SWFDEC_AS_OBJECT (text)->context;
data.multiline = (data.cx->version < 7 || text->text->multiline);
data.condense_white = text->condense_white;
- data.text = g_string_new ("");
+ data.text = text->input;
data.tags_open = NULL;
data.tags_closed = NULL;
@@ -422,10 +424,6 @@ swfdec_text_field_movie_html_parse (SwfdecTextFieldMovie *text, const char *str)
(ParserTag *)data.tags_open->data);
}
- // set parsed text
- text->text_display =
- swfdec_as_context_give_string (data.cx, g_string_free (da...
2007 Oct 23
0
11 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h
...se_white;
- data.style_sheet = text->style_sheet;
+ if (text->style_sheet != NULL && SWFDEC_IS_STYLESHEET (text->style_sheet)) {
+ data.style_sheet = SWFDEC_STYLESHEET (text->style_sheet);
+ } else {
+ data.style_sheet = NULL;
+ }
data.text = text->input;
data.tags_open = NULL;
data.tags_closed = NULL;
diff --git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c
index d7f2967..a1c3729 100644
--- a/libswfdec/swfdec_text_field_movie.c
+++ b/libswfdec/swfdec_text_field_movie.c
@@ -858,8 +858,10 @@ swfdec_text_field_movie_dispose (GObject...