search for: style_sheet_input

Displaying 3 results from an estimated 3 matches for "style_sheet_input".

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
...FIELD_MOVIE, &text, "o", &value); + + swfdec_as_value_to_number (cx, &argv[0]); + + if (!SWFDEC_IS_STYLESHEET (value)) + return; + + if (text->style_sheet == SWFDEC_STYLESHEET (value)) + return; + + text->style_sheet = SWFDEC_STYLESHEET (value); + if (text->style_sheet_input) + swfdec_text_field_movie_set_text (text, text->style_sheet_input, TRUE); +} + +static void swfdec_text_field_movie_get_textColor (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) @@ -1307,9 +1346,9 @@ swfdec_text_field_movie_init_p...
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
...7,10 +1647,14 @@ swfdec_text_field_movie_set_text (SwfdecTextFieldMovie *text, const char *str, text->input_html = html; - if (text->style_sheet != NULL) { + if (SWFDEC_AS_OBJECT (text)->context->version >= 7 && + text->style_sheet != NULL) + { text->style_sheet_input = str; swfdec_text_field_movie_html_parse (text, str); - } else { + } + else + { text->style_sheet_input = NULL; if (html) { swfdec_text_field_movie_html_parse (text, str); diff --git a/libswfdec/swfdec_text_field_movie_as.c b/libswfdec/swfdec_text_field_movie_as.c inde...
2007 Oct 25
0
12 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c test/trace
...-git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c index 516e270..8cdd015 100644 --- a/libswfdec/swfdec_text_field_movie.c +++ b/libswfdec/swfdec_text_field_movie.c @@ -1566,15 +1566,6 @@ swfdec_text_field_movie_replace_text (SwfdecTextFieldMovie *text, if (text->style_sheet_input) return; - text->input = g_string_erase (text->input, - g_utf8_offset_to_pointer (text->input->str, start_index) - - text->input->str, - g_utf8_offset_to_pointer (text->input->str, end_index) - - g_utf8_offset_to_pointer (text->input->str, s...