summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* updated this for 0.5.2 bumped version number to 0.5.2 and updated libgnome-2-6Dodji Seketeli2004-06-103-2/+15
| | | | | | | | 2004-06-09 Dodji Seketeli <dodji@gnome.org> * NEWS: updated this for 0.5.2 * configure: bumped version number to 0.5.2 and updated lib version info.
* synchronized with mlview--mainline--0.1--patch-32:Dodji Seketeli2004-05-313-195/+9
| | | | | | | | | | 2004-05-31 Dodji Seketeli <dodji@gnome.org> synchronized with mlview--mainline--0.1--patch-32: * docs/examples/selection-example-1.c: (print_properties_real): fix some ansi C compilation errors.
* Synched with libcroco--mainline--patch-34 .tla-cvs-synch-05-29-2004-0Dodji Seketeli2004-05-299-38/+81
| | | | | | 2004-05-29 Dodji Seketeli <dodji@gnome.org> Synched with libcroco--mainline--patch-34 .
* 0.5.1 releaselibcroco-0-5-1Dodji Seketeli2004-04-181-0/+2
|
* forgot one css test input file in distribDodji Seketeli2004-04-181-1/+3
|
* forgot to add an output ref file to distributionDodji Seketeli2004-04-181-0/+1
|
* updated NEWS fileDodji Seketeli2004-04-181-1/+1
|
* fixed a typo in tests/Makefile.amDodji Seketeli2004-04-181-1/+1
|
* added test-several-media.sh to archive.Dodji Seketeli2004-04-182-3/+5
| | | | | | 2004-04-18 Dodji Seketeli <dodji@gnome.org> * tests/Makefile.am: added test-several-media.sh to archive.
* added valgring suppression fileDodji Seketeli2004-04-180-0/+0
|
* Added a bunch of files from libcroco--mainline--0.1--patch-31.Dodji Seketeli2004-04-183-0/+33
|
* Changes from arch/CVS synchronizationDodji Seketeli2004-04-1845-797/+1489
|
* Changes from arch/CVS synchronizationDodji Seketeli2004-04-181-0/+4
|
* removed this from CVS.Dodji Seketeli2004-04-1837-1181/+626
| | | | | | 2004-04-18 Dodji Seketeli <dodji@gnome.org> * src/libcroco-config.h: removed this from CVS.
* Merged with libcroco--mainline--0.1--patch-21Dodji2004-03-1511-94/+239
| | | | | | 2004-03-15 Dodji <dodji@gnome.org> Merged with libcroco--mainline--0.1--patch-21
* *** empty log message ***Dodji Seketeli2004-03-1342-540/+973
|
* ==== merge point ofDodji2004-03-133-6/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-13 Dodji <dodji@gnome.org> * ==== merge point of dodji@gnome.org--xml-style-2004/libcroco--snapshots--0.1--patch-1 === * configure.in: bumped version number to 0.5 and bumped version-info. * src/cr-sel-eng.c,src/cr-stylesheet.c, src/cr-tknzr.c,tests/test5-main.c,tests/testctl: massive mem leaks/corruption killing. * vg.supp: added this to suppress glib normal leaks from the leak report. 2004-03-12 Dodji <dodji@gnome.org> * src/cr-declaration.c,src/cr-doc-handler.c, src/cr-input.[ch],src/cr-parser.c,src/cr-rgb.c, src/cr-selector.c,src/cr-term.c,src/cr-token.c, tests/test1-main.c,tests/test4-main.c: started to kill mem leaks and corruptions. * tests/testctl: added the --show-reachable=yes flag to valgrind. * tests/testctl: added better valgrind error reporting. 2004-03-11 Dodji <dodji@gnome.org> * Makefile.am: now, tests are to be run by doing "make test". Also, cleans up the previous test output before actually running. * global-vars.sh: added this sh script that sets variable used in all the test sh scripts based on csslint. * test-prop-ident,test-unknown-at-rule,test-unknown-at-rule2: renamed these into *.sh (e.g) test-prop-ident.sh to reflect that it's a shell script, not a test written in C. Also, make these use global-vars.sh * tests/testctl: added a descent valgrind support when runned with like "./testctl run --valgrind" or RUN_VALGRIND=yes ./testctl run. Puts the valgrind logs in valgrind-logs/ and report their presence to the user. This'll help catch mem leaks/corruption at the regression test level. Also make sure to launch ./libs/testblah and not ./testblah which is actually a shell script. * tests/testctl: don't activate valgrind tests by default. 2004-03-10 Dodji <dodji@gnome.org> * src/cr-statement.[ch]: (cr_statement_to_string): do not add leading end of lines. * cr-stylesheet.c: added cr_stylesheet_to_string(), handle end of lines between statements here. * tests/test-output-refs/test5.1.css.out: updated non regression tests. * tests/testctl: added valgrind support in the non regression tests. I think I still need to improve it to make it detect the errors when there are some, and report it in a consistent way. * tests/testctl: added support for tests that gets called without any argument. * tests/* added csslint based non regression tests for proprietary INDENT and unknown at rule. * src/cr-utils.c: (cr_utils_ucs1_to_utf8): handle zero length input gently. * src/cr-statement.c: finish the coding of the cr_statement_to_string() function and make cr_statement_dump() use it. * src/cr-term.c: merge from libcroco--mainline--0.1 2004-03-09 Dodji <dodji@gnome.org> * src/cr-term.[ch]: applied a patch from Rob BUIS that adds two new methods: (cr_term_get_from_list) and (cr_term_get_from_list). * src/cr-statement.c: (cr_statement_font_face_rule_to_string): added this method. (cr_statement_dump_font_face_rule): make this use the new cr_statement_font_face_rule_to_string() function. * tests/testctl: update this to exclude .arch-ids from the diffs. * src/cr-parser.c,src/cr-tknzr.c: droped the way I was handling the vendor proprietary properties and make sure to parse and IDENT by following css3 rules. * src/cr-parser.c: (cr_parser_parse_any_core): semicolon (';') is not part of the 'any' production. (cr_parser_parse_ruleset): consider the case where we have an empty ruleset (e.g 'x{}') * {arch}/=tagging-method: changed this to make objects generation by the compilation accepted by tla. 2004-03-08 Dodji <dodji@gnome.org> * Merged in the following patches: => dodji@seketeli.org--2004-xml-style-d/libcroco--dodji-d--0.1--base-0 tag of dodji@gnome.org--xml-style-2004/libcroco--mainline--0.1--base-0 => dodji@seketeli.org--2004-xml-style-d/libcroco--dodji-d--0.1--patch-1 removed useless files. * files.txt,dirs.txt: removed these files. ====starting from here, going upward, we use gnu arch ===
* fixed a memory management bug reported by Rob BUIS.INITIAL_GNU_ARCH_IMPORTGNOME_2_6_ANCHORDodji Seketeli2004-03-073-56/+96
| | | | | | | | | | | | | | | 2004-03-07 Dodji Seketeli <dodji@gnome.org> * src/cr-statement.c: (parse_page_start_page_cb) fixed a memory management bug reported by Rob BUIS. (cr_statement_at_page_rule_to_string): added this new helper function. (cr_statement_dump_page): make this use cr_statement_at_page_rule_to_string(). * tests/test4-main.c: (test_cr_statement_at_page_rule_parse_from_buf): added this to start debugging a problem related to @page rule parsing.
* re-indented the source files to make'em comply with gnome indentationDodji Seketeli2004-03-0735-16695/+13837
| | | | | | | | 2004-03-07 Dodji Seketeli <dodji@gnome.org> * src/*.c: re-indented the source files to make'em comply with gnome indentation rules. * libcroco-indent: added this indentation script.
* applied a patch from Benjamin Dauvergne to support the "color" property.Dodji Seketeli2004-03-072-8/+26
| | | | | | | 2004-03-07 Dodji Seketeli <dodji@gnome.org> * src/cr-style.c: applied a patch from Benjamin Dauvergne to support the "color" property.
* added this new convenience function.Dodji Seketeli2004-03-063-21/+39
| | | | | | | | 2004-03-07 Dodji Seketeli <dodji@gnome.org> * src/cr-rgb.[ch]: (cr_rgb_compute_from_percentage): added this new convenience function.
* when you reach an EOF, don't assume it's an error. Return the alreadyDodji2004-03-065-22/+57
| | | | | | | | | | | 2004-03-06 Dodji <dodji@gnome.org> * src/cr-tknzr.c: (cr_tknzr_parse_num): when you reach an EOF, don't assume it's an error. Return the already parsed part of the number. Next attempt of parsing will result in an * tests/test4-main.c: udpated this test the fix made above. CR_END_OF_INPUT_ERROR.
* reflect the removal of src/parser src/seleng and src/layeng added this newDodji2004-03-067-38/+159
| | | | | | | | | | | 2004-03-06 Dodji <dodji@gnome.org> * Doxyfile: reflect the removal of src/parser src/seleng and src/layeng * src/cr-declaration.c: (cr_declaration_list_to_string2): added this new method. * src/cr-sel-eng.c: fix a bug in the !important handling in the cascading algorithm.
* applied a patch from Rob BUIS to fix some bugs/memleaks here. Did someDodji Seketeli2004-03-053-16/+67
| | | | | | | | | | | | | | | 2004-03-06 Dodji Seketeli <dodji@gnome.org> * csslint/csslint.c: applied a patch from Rob BUIS to fix some bugs/memleaks here. Did some cleanups too. * src/cr-sel-eng.c: (cr_sel_eng_get_matched_rulesets_real): handle the case where the sheet is empty (has no rules). That can happen ! (it actually happened to me during some tests). (put_css_properties_in_props_list): handle the !important keyword in the cascading algorithm. Rob BUIS (again) started this.
* fixed silly bug in there. added the support of the "!important" keyword atDodji Seketeli2004-03-0415-186/+199
| | | | | | | | | | | | | | | | | | 2004-03-05 Dodji Seketeli <dodji@gnome.org> * csslint/csslint.c: (parse_cmd_line) fixed silly bug in there. * src/cr-declaration.[ch],src/cr-om-parser.c, src/cr-parser.[ch],src/cr-statement.c,tests/test2-main.c, tests/test3-main.c: added the support of the "!important" keyword at the parsing level. * tests/test-inputs/test4.1.css: update nr tests to reflect the new !important thing. * src/cr-sel-eng.c: (put_css_properties_in_props_list): fix a small subtle bug in here. Selection engine is becoming more and more reliable ;).
* applied a patch from Kjartan Maraas to replace the g_strup()Dodji Seketeli2004-03-049-30/+40
| | | | | | | | | | | | | | | | | | | | 2004-03-04 Dodji Seketeli <dodji@gnome.org> * src/cr-enc-handler.c: (cr_enc_handler_resolve_enc_alias): applied a patch from Kjartan Maraas to replace the g_strup() g_ascii_strup(). This closes * csslint/Makefile.am,src/cr-simple-sel.h,src/cr-term.h src/cr-token.h,tests/Makefile.am: Applied patch http://bugzilla.gnome.org/showattachment.cgi?attach_id=23422. Modified the patch a little bit so that I use prog_LDFLAGS instead of AM_LDFLAGS. AM_LDFLAGS just seems not to be supported by my automake-1.4. This fixes http://bugzilla.gnome.org/show_bug.cgi?id=131643 . * tests/test-output-refs/test4.2.css.out: updated this non regresstion test reference output due to a small modification in the @page rule dump format.
* put a '\n' after dumping the sheet on screen. fixed a small bug in here.Dodji Seketeli2004-03-034-4/+17
| | | | | | | | | | | | | 2004-03-03 Dodji Seketeli <dodji@gnome.org> * csslint/csslint.c: (cssom_parse) put a '\n' after dumping the sheet on screen. * src/cr-parser.c: (cr_parser_parse_page): fixed a small bug in here. This should fix http://bugzilla.gnome.org/show_bug.cgi?id=136109. * src/cr-statement.c: (cr_statement_dump_page): added a white space before dumping the pseudo part of the @page rule.
* added the support of selectors evaluation in csslint. Now, one can doDodji Seketeli2004-03-037-122/+389
| | | | | | | | | | | | | | | | | | | 2004-03-03 Dodji Seketeli <dodji@gnome.org> * csslint/csslint.c: added the support of selectors evaluation in csslint. Now, one can do csslint --evaluate --xml <an xml file> --author-sheet <a-css-sheet> --xpath <an xpath expression> . This will show the css properties associated to the xml node(s) refered to by the xpath expression. * src/cr-declaration.[ch]: (cr_declaration_dump_one) added this new api entry to dump the first declaration of the declaration list. * src/cr-prop-list.c: (cr_prop_list_unlink): fixed a stupid bug in there. * src/cr-stylesheet.[ch]: (cr_stylesheets_nr_rules): there is a typo in this function name. Stylesheet's' should not take a leading 's'. Changed that into cr_stylesheet_nr_rules().
* added the (cr_prop_list_unlink) function. put the properties at the end ofdodji2004-03-014-9/+86
| | | | | | | | | | | | 2004-03-01 dodji <dodji@gnome.org> * src/cr-prop-list.[ch]: added the (cr_prop_list_unlink) function. * src/cr-sel-eng.c: (put_css_properties_in_props_list): put the properties at the end of the properties list built by this function. This is necessary to keep the properties declaration order. This order is significant for example when you consider short hand properties expansion.
* applied a patch from Rob BUIS that fixes numeros typos. Also addsDodji Seketeli2004-02-296-54/+65
| | | | | | | | | 2004-02-29 Dodji Seketeli <dodji@gnome.org> * src/cr-input.c,src/cr-num.c,src/cr-prop-list.[ch], src/cr-rgb.c: applied a patch from Rob BUIS that fixes numeros typos. Also adds G_BEGIN_DECL/G_END_DECL to cr-prop-list.h
* remove the usage of '...' in switch/case statements as this is notDodji Seketeli2004-02-293-26/+38
| | | | | | | 2004-02-29 Dodji Seketeli <dodji@gnome.org> * src/cr-rgb.c,src/cr-tknzr.c: remove the usage of '...' in switch/case statements as this is not portable across c89 compilers.
* fixed a stupid bug here.Dodji Seketeli2004-02-292-14/+6
| | | | | | | 2004-02-29 Dodji Seketeli <dodji@gnome.org> * src/cr-rgb.c: (cr_rgb_set): fixed a stupid bug here.
* applied a patch of Rob BUIS to add the support of the :lang() pseudo classDodji Seketeli2004-02-295-0/+77
| | | | | | | | | | | 2004-02-29 Dodji Seketeli <dodji@gnome.org> * src/cr-sel-eng.c: applied a patch of Rob BUIS to add the support of the :lang() pseudo class using the pluggable pseudo class system. * tests/test5-main.c,tests/test-inputs/test5.1.css,tests/test-output-refs/test5.1.css.out: Updated the non regression tests suite to test the :lang() pseudo class.
* applied a patch from Rob BUIS that provides new apis to manipulate CSSDodji Seketeli2004-02-295-0/+125
| | | | | | | | 2004-02-29 Dodji Seketeli <dodji@gnome.org> * src/cr-statement.[ch],src/cr-stylesheet.[ch]: applied a patch from Rob BUIS that provides new apis to manipulate CSS statements.
* fixed a small bug in here: Always Initialise output function argument !!!.Dodji Seketeli2004-02-292-1/+10
| | | | | | | | 2004-02-29 Dodji Seketeli <dodji@gnome.org> * src/cr-sel-eng.c: (put_css_properties_in_props_list): fixed a small bug in here: Always Initialise output function argument !!!.
* Created this new CRPropList class. added this new helper function.Dodji Seketeli2004-02-2910-18/+762
| | | | | | | | | | | | | | | | | | | 2004-02-29 Dodji Seketeli <dodji@gnome.org> * src/cr-prop-list.[ch], src/Makefile.am,src/libcroco.h: Created this new CRPropList class. * src/cr-sel-eng.c: (put_css_properties_in_props_list): added this new helper function. (cr_sel_eng_get_matched_properties_from_cascade): Created a new version of this function to make it use the new CRPropList instead of a hashtable. Putting properties/declaration in a hashtable make us loose the "order" in which declarations are present in the ruleset. That's why I use a CRPropList instead. * src/cr-style.c: (cr_style_set_style_from_decl): fix a silly error that make border-right and border-top switch.
* Second (or maybe third) attempt to fix the cascading cascading thing. IDodji Seketeli2004-02-262-25/+41
| | | | | | | | | | | | 2004-02-26 Dodji Seketeli <dodji@gnome.org> * src/cr-sel-eng.c: (cr_sel_eng_get_matched_properties_from_cascade): Second (or maybe third) attempt to fix the cascading cascading thing. I got *really* confused here. I hope it works this time. Thanks to to Rob BUIS who reported the bug. Off to bed now.
* fixed a parsing bug reported by David A Knight. This should now properlyDodji Seketeli2004-02-243-8/+15
| | | | | | | | | | | 2004-02-24 Dodji Seketeli <dodji@gnome.org> * src/cr-parser.c: (cr_parser_parse_import): fixed a parsing bug reported by David A Knight. This should now properly parse sequences of @import rules that without media parts. * src/cr-statement.c: (cr_statement_dump_import_rule): fixed a serialisation bug here.
* added the support of vendor specific property names.Dodji Seketeli2004-02-245-6/+143
| | | | | | | | 2004-02-24 Dodji Seketeli <dodji@gnome.org> * src/cr-parser.c,src/cr-tknzr.c,src/cr-token.[ch]: added the support of vendor specific property names.
* Fixed a bug that was "forgetting" all the properties gathered during theDodji Seketeli2004-02-194-14/+17
| | | | | | | | | | 2004-02-19 Dodji Seketeli <dodji@gnome.org> * src/cr-sel-eng.c: (cr_sel_eng_get_matched_properties_from_cascade): Fixed a bug that was "forgetting" all the properties gathered during the cascading algorithm but the last ones. * tests/Makefile.am: a bit of cleanup here.
* applied a patch from Rob BUIS<rwlbuis@xs4all.nl> that does a bunch ofDodji Seketeli2004-02-144-8/+63
| | | | | | | | | | 2004-02-14 Dodji Seketeli <dodji@gnome.org> * src/cr-declaration.[ch]: applied a patch from Rob BUIS<rwlbuis@xs4all.nl> that does a bunch of cleanup and fixes. It also adds the new cr_declaration_list_to_string() api entry point. * AUTHORS: updated this
* applied a patch from Rob BUIS<rwlbuis@xs4all.nl> that adds these api entryDodji Seketeli2004-02-143-0/+77
| | | | | | | | | | | 2004-02-14 Dodji Seketeli <dodji@gnome.org> * src/cr-declaration.[ch]: (cr_declaration_nr_props), (cr_declaration_get_from_list), (cr_declaration_get_by_prop_name): applied a patch from Rob BUIS<rwlbuis@xs4all.nl> that adds these api entry points.
* when we encounter an EOF right after a ';' don't return an error. fix aDodji Seketeli2004-02-134-10/+36
| | | | | | | | | | | | | | | | | | | | 2004-02-13 Dodji Seketeli <dodji@gnome.org> * src/cr-declaration.c: (cr_declaration_parse_list_from_buf): when we encounter an EOF right after a ';' don't return an error. * src/cr-parser.c: (CHECK_PARSING_STATUS_ERR): fix a possibly nasty typo. (cr_parser_parse_property): when there is an error here, return the underlying error instead of returning just CR_PARSING_ERROR. (cr_parser_parse_declaration): when we encounter an EOF just at the beginning of parsing, return CR_END_OF_INPUT_ERROR instead of CR_PARSING_ERROR. More generaly, we should always return CR_END_OF_INPUT_ERROR when we encounter that error, and not return CR_PARSING_ERROR instead. tests/test4-main.c: (test_cr_declaration_parse_list): updated this to reflect catch trailing ';' at the end of declaration list.
* added this new api entry point to parse comma separated list of propertyDodji Seketeli2004-02-127-4/+218
| | | | | | | | | | | | | | | | 2004-02-12 Dodji Seketeli <dodji@gnome.org> * src/cr-declaration.[ch]: (cr_declaration_parse_list_from_buf): added this new api entry point to parse comma separated list of property declarations. * src/cr-parser.c: (cr_parser_parse_expr): dont return an error when we encounter EOF immediately at the end of an expression. (cr_parser_get_tknzr): added this new api entry point to get the parser's underlying tokenizer. * src/cr-statement.h: fixed a comment here. * tests/test4-main.c: wrote a test for the new cr_declaration_parse_list_from_buf() function.
* make sure headers go in $prefix/include/libcroco/libcroco .Dodji Seketeli2004-02-112-1/+5
| | | | | | 2004-02-11 Dodji Seketeli <dodji@gnome.org> * src/Makefile.am: make sure headers go in $prefix/include/libcroco/libcroco .
* debugged serialization stuffs more serialization debuggingDodji Seketeli2004-02-103-18/+37
| | | | | | | 2004-02-10 Dodji Seketeli <dodji@gnome.org> * src/cr-fonts.c: debugged serialization stuffs * src/cr-style.c: more serialization debugging
* more style structure debugging materials.dodji2004-02-082-7/+92
| | | | | | 2004-02-08 dodji <dodji@gnome.org> * src/cr-style.c: more style structure debugging materials.
* more style structure debugging material.Dodji Seketeli2004-02-082-5/+47
| | | | | | 2004-02-08 Dodji Seketeli <dodji@gnome.org> * src/cr-style.c: more style structure debugging material.
* In the process of adding style structure debugging facilities.Dodji Seketeli2004-02-077-27/+866
| | | | | | | 2004-02-07 Dodji Seketeli <dodji@gnome.org> * src/cr-fonts.[hc],src/cr-num.h,src/cr-style.[ch]: In the process of adding style structure debugging facilities.
* make sure to set the fields of the style structure passed as an argumentDodji Seketeli2004-01-296-155/+170
| | | | | | | | | | | 2004-01-29 Dodji Seketeli <dodji@gnome.org> * src/cr-sel-eng.c: (cr_sel_eng_get_matched_style): make sure to set the fields of the style structure passed as an argument of the function, when its not NULL. * src/cr-style.c: (cr_style_set_props_to_defaults): make this function public