summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* *** empty log message ***libcroco-0-4Dodji Seketeli2003-12-132-17/+18
|
* ============= 0.4 release ================ updated this. make this compileDodji Seketeli2003-12-133-3/+51
| | | | | | | | 2003-12-13 Dodji Seketeli <dodji@gnome.org> ============= 0.4 release ================ * README: updated this. * docs/examples/sac-example-[12].c: make this compile with g++.
* added this function to factorise the evaluation of additional selectors.Dodji Seketeli2003-12-124-46/+89
| | | | | | | | | | 2003-12-12 Dodji Seketeli <dodji@gnome.org> * src/seleng/cr-sel-eng.c: (additional_selector_matches_node): added this function to factorise the evaluation of additional selectors. (sel_matches_node_real ): use additional_selector_matches_node(). This fixes a selector bug spotted by Stefan Seefeld.
* a bit of cleanup and bug fix here. added more test cases.Dodji Seketeli2003-12-123-9/+41
| | | | | | | | | 2003-12-12 Dodji Seketeli <dodji@gnome.org> * docs/examples/selection-example-1.c: a bit of cleanup and bug fix here. * docs/examples/selection-example-1.css: added more test cases.
* removed junked file.Dodji Seketeli2003-12-113-0/+0
| | | | Dodji.
* Fixed more build system stuffs here. Make these compile with g++. anotherDodji Seketeli2003-12-1110-16/+209
| | | | | | | | | | | | | 2003-12-11 Dodji Seketeli <dodji@gnome.org> * src/layeng/Makefile.am,src/seleng/Makefile.am: Fixed more build system stuffs here. * docs/examples/cssom-example-1.c,docs/examples/sac-example-1.c: Make these compile with g++. * src/layeng/Makefile.am: another build system cleanup. * docs/examples/selection-example-1.c,docs/examples/selection-example-1.css, docs/examples/selection-example-1.xml: added this code example from Stefan Seefeld.
* Fixed more build system stuffs here.Dodji Seketeli2003-12-113-12/+14
| | | | | | | 2003-12-11 Dodji Seketeli <dodji@gnome.org> * src/layeng/Makefile.am,src/seleng/Makefile.am: Fixed more build system stuffs here.
* Provides libcrseleng and libcrlayeng with version info different from theDodji Seketeli2003-12-114-3/+19
| | | | | | | | 2003-12-11 Dodji Seketeli <dodji@gnome.org> * configure.in,src/layeng/Makefile.am,src/seleng/Makefile.am: Provides libcrseleng and libcrlayeng with version info different from the one of libcroco.
* big cleanup here. make sure seleng, layeng and tests are disabled byDodji Seketeli2003-12-1122-234/+117
| | | | | | | | | | | | | | | | | | | | | | | | 2003-12-11 Dodji Seketeli <dodji@gnome.org> * Makefile.am: big cleanup here. * configure.in: make sure seleng, layeng and tests are disabled by default. Added makefiles in docs/ docs/example tests/ tests/test-inputs tests/test-output-refs * csslint/Makefile.am: cleaned this up. make sure to add seleng,layeng and glib compile flags whenever needed. * docs/Makefile.am,docs/examples/Makefile.am: new makefiles. * src/libcroco.h: removed references to cr-parser-input.h * src/layeng/Makefile.am: cleanup, make distcheck is happier. * src/parser/Makefile.am: cleanup, make distcheck is happier. * src/parser/cr-doc-handler.h: removed reference to cr-parser-input.h * src/parser/cr-layout-eng.h,src/parser/cr-parser-input.h: removed these. * src/parser/cr-parser.c: (cr_parser_new): fixed a typo here. * src/parser/cr-parser.h,src/parser/cr-tknzr.h: removed ref to cr-parser-input.h * src/seleng/Makefile.am: cleanup, make distcheck is happier. * tests/testctl: exclude makefiles when diffing outputs and re * outputs.
* updated version numbers for 0.4. added this so that the pango dependancyDodji Seketeli2003-12-1113-230/+264
| | | | | | | | | | | | | | | | | | | | 2003-12-11 Dodji Seketeli <dodji@gnome.org> * configure.in: updated version numbers for 0.4. * src/layeng/cr-lay-eng.[ch]: (cr_lay_eng_style_to_pango_font_attribute): added this so that the pango dependancy comes into the layout engine. * src/parser/cr-parser.c,src/parser/cr-selector.h, src/parser/cr-stylesheet.h,src/parser/cr-term.[ch], src/parser/cr-utils.h: made sure libcroco headers files are C++ compilers friendly. * src/seleng/Makefile.am: remove pango dependancy from the selection engine. Put it in the layout engine. * src/seleng/cr-style.[ch]: (cr_style_to_pango_font_attributes): removed this function from here and put it in src/layeng/cr-lay-eng.[ch]. This way, we seleng doesn't depend on pango. Only layout engine does.
* Applied a patch from Michael Culbertson <Michael.J.Culbertson@wheaton.edu>Gaël CHAMOULAUD2003-08-173-3/+12
| | | | | | | | * src/layeng/cr-lay-eng.c: (layout_block_box): * src/seleng/cr-sel-eng.c: (put_css_properties_in_hashtable): Applied a patch from Michael Culbertson <Michael.J.Culbertson@wheaton.edu> -> Compilation failed with gcc 2.95.4 due to declarations after calls to g_return_val_if_fail and the like.
* fixed some stupid error that was making gcc 2.9xxx cry.Dodji2003-07-153-42/+47
| | | | | | | | 2003-07-15 Dodji <dodji@gnome.org> * src/seleng/cr-sel-eng.c (id_add_sel_matches_node): fixed some stupid error that was making gcc 2.9xxx cry. Dodji.
* updatesChristian Fredrik Kalager Schaller2003-07-082-49/+57
|
* fixed the library versioning breakage I have introduced. This is a 0.3rel-0-3-0Dodji Seketeli2003-07-072-3/+8
| | | | | | | | | 2003-06-07 Dodji Seketeli <dodji at seketeli dot org> * configure.in: fixed the library versioning breakage I have introduced. This is a 0.3 release commit. Dodji.
* rearranged the enum CRNumProp values.Dodji Seketeli2003-07-0511-82/+229
| | | | | | | | | | | | | | | | | 2003-07-05 Dodji Seketeli <dodji at seketeli dot org> * src/seleng/cr-style.h: rearranged the enum CRNumProp values. * src/seleng/cr-style.c: fixed the border-x:<a number> bug. This now support also number and not only symbolic border width like thin,thick etc ... * src/parser/cr-num.c: documented the apis here. * src/layeng/cr-lay-eng.c: Fixed some subtle bugs and finally implemented the width:15% (set percentage to width). Dodji.
* *** empty log message ***rel_0_2Dodji Seketeli2003-06-291-0/+12
|
* *** empty log message ***Dodji Seketeli2003-06-292-3/+3
|
* touched all the files because of a time update.Dodji Seketeli2003-06-291-5/+1
| | | | | | | 2003-06-29 Dodji Seketeli <dodji seketeli org> touched all the files because of a time update. Dodji.
* configure.in: fixed a tiny typo.Dodji Seketeli2003-06-291-3/+3
| | | | | | | 2003-06-29 Dodji Seketeli <dodji () seketeli () org> configure.in: fixed a tiny typo. Dodji.
* updated this test reference output.Dodji Seketeli2003-06-297-98/+25
| | | | | | | | | | | | | | | | | 2003-06-30 Dodji Seketeli <dodji at seketeli dot org> * tests/test-output-refs/test4.1.css.out: updated this test reference output. * src/parser/cr-statement.c: fixed a typo that lead to a small regression detected by the non regression test suite. * tests/testctl: made sure no to consider the .cvsignore file during the final diff. * src/layeng/cr-box-view.[ch]: fixed some compiler warnings. Dodji.
* Updated man page csslint.1Gaël CHAMOULAUD2003-06-281-1/+1
|
* Added CROCO_LAYENG_ENABLED test in csslint_show_version function.Gaël CHAMOULAUD2003-06-283-0/+13
|
* modified this coding example.Dodji Seketeli2003-06-261-22/+11
| | | | | | | | 2003-06-26 Dodji Seketeli <dodji at seketeli dot org> * docs/examples/cssom-example-1.c : modified this coding example. Dodji.
* added this new file.Dodji Seketeli2003-06-251-0/+348
| | | | | | | | 2003-06-25 Dodji Seketeli <dodji at seketeli dot org> * docs/examples/sac-example-2.c: added this new file. Dodji.
* 2003-06-25 Dodji Seketeli <dodji at seketeli dot org>Dodji Seketeli2003-06-251-3/+3
|
* More bits on documentation.Dodji Seketeli2003-06-242-35/+42
| | | | | | | | 2003-06-24 Dodji Seketeli <dodji@spam_sucks.seketeli.org> * docs/design/parser-architecture.txt,docs/examples/sac-example-1.c: More bits on documentation. Dodji.
* mode bits on this the beginning of a code example on how to use the SACDodji Seketeli2003-06-233-6/+203
| | | | | | | | 2003-06-23 Dodji Seketeli <dodji 47 seketeli dot org> * docs/design/parser-architecture.txt : mode bits on this * the beginning of a code example on how to use the SAC api. Dodji.
* added parse_font_face_unrecoverable_error_cb(),Dodji Seketeli2003-06-2210-44/+185
| | | | | | | | | | | | | | | | | | | | | | | | | 2003-06-22 Dodji Seketeli <dodji at seketeli dot org> * src/parser/cr-statement.c: added parse_font_face_unrecoverable_error_cb(), parse_page_unrecoverable_error_cb() ... to handle parsing error in the cr_statement_xxx_parse() method. These callback method are not called yet. * src/parser/cr-tknzr.c: made the cr_tknzr_parse_important() look somewhat better. * src/parser/cr-parser.c: fixed some bugs in the parser. It does now parse the w3c forward compatible parsing test sheet at http://www.w3.org/Style/CSS/Test/CSS1/current/sec71.htm . * docs/design/parser-architecture.txt: updated this doc. A lot more is still needed. * csslint/csslint.c: fixed some small bugs in csslint. Now, --cssom is set by default. Dodji.
* More bits on the parser documentation front.Dodji Seketeli2003-06-221-2/+70
| | | | | | | | 2003-06-22 Dodji Seketeli <dodji at seketeli dot org> More bits on the parser documentation front. Dodji.
* An on going parser architecture document.Dodji Seketeli2003-06-221-0/+70
| | | | | | | 2003-06-22 Dodji Seketeli <dodji@seketeli.org> An on going parser architecture document. Dodji.
* Updated man pagesGaël CHAMOULAUD2003-06-212-4/+4
|
* Changed the prototype of cr_statement_unlink() to harmonize it withdodji2003-06-213-20/+46
| | | | | | | | | | 2003-06-21 dodji <dodji@seketeli.org> * src/parser/cr-statement.[ch]: Changed the prototype of cr_statement_unlink() to harmonize it with cr_declaration_unlink(). Dodji.
* added the cr_term_parse_expression_from_buf() function. this is new andDodji Seketeli2003-06-209-119/+183
| | | | | | | | | | | | | | | | | 2003-06-20 Dodji Seketeli <dodji@seketeli.org> * src/parser/cr-term.[ch]: added the cr_term_parse_expression_from_buf() function. this is new and still needs to be tested. * src/parser/cr-parser.[hc]: made cr_parser_parse_expr() public. * src/parser/cr-declaration.[ch]: changed cr_declaration_parse() into cr_declaration_parse_parse_from_buf(). Dodji.
* fixed some typos. added the functionDodji Seketeli2003-06-208-101/+272
| | | | | | | | | | | | | | | | | | | | 2003-06-20 Dodji Seketeli <dodji@seketeli.org> * src/parser/cr-statement.[ch]: fixed some typos. added the function cr_statement_does_buf_parses_against_core() and cr_statement_ruleset_get_declarations(). * src/parser/cr-parser.[ch]: made cr_parser_parse_statement_core() public. * src/parser/cr-om-parser.c: fixed a small typo. * src/parser/cr-declaration.[ch] added a new cr_declaration_unlink() function. Dodji.
* updated this to test cr_statement_parse_from_buf(). It seems to work now.Dodji Seketeli2003-06-195-21/+242
| | | | | | | | | | | | | | 2003-06-19 Dodji Seketeli <dodji@seketeli.org> * tests/test4-main.[ch]: updated this to test cr_statement_parse_from_buf(). It seems to work now. Still some memleaks to fix. * src/parser/cr-statement.[ch]: some bug fixes in cr_statement_parse_from_buf() + added a new cr_statement_at_import_rule_parse_from_buf() method. Dodji.
* added cr_statement_font_face_rule_parse_from_buf () . and a genericDodji Seketeli2003-06-186-15/+286
| | | | | | | | | | | | | | | 2003-06-18 Dodji Seketeli <dodji@seketeli.org> * src/parser/cr-statement.[ch]: added cr_statement_font_face_rule_parse_from_buf () . and a generic cr_statement_parse_from_buf () that knows how to a parse virtually any css2 statement. This needs debugging though. * src/parser/cr-parser.c: fixed some possible sigsev that could occur when trying to access a null sac handler. Dodji.
* updated the test routine to testDodji Seketeli2003-06-185-4/+108
| | | | | | | | | | | | | | | 2003-06-18 Dodji Seketeli <dodji@seketeli.org> * tests/test4-main.c: updated the test routine to test cr_statement_at_charset_rule_parse_from_buf(). * src/parser/cr-statement.[ch]: added a new cr_statement_at_charset_rule_parse_from_buf() method to to create an "@charset" statement from a buffer text content. * src/parser/cr-parser.c:Fixeds a small possibility of memleak in cr_parser_parse_charse() Dodji.
* fixed a small typo in the "@page" rule embedded in gv_at_page_buf.dodji2003-06-184-5/+14
| | | | | | | | | | | | 2003-06-18 dodji <dodji@seketeli.org> * tests/test4-main.c: fixed a small typo in the "@page" rule embedded in gv_at_page_buf. * src/parser/cr-parser.c: fixed a small bug in the cr_parser_parse_page () function. Dodji.
* added test_cr_statement_at_page_rule_parse () to test the newdodji2003-06-177-7/+180
| | | | | | | | | | | | | 2003-06-17 dodji <dodji@seketeli.org> * tests/test4-main.c: added test_cr_statement_at_page_rule_parse () to test the new cr_statement_at_page_rule_parse_from_buf() function. * src/parser/cr-statement.[ch]: added a first version of cr_statement_at_page_rule_parse_from_buf(). This doesn't work. I need to debug it first. Dodji.
* resuming previous commit.Dodji Seketeli2003-06-171-0/+31
| | | | Dodji.
* updated this to test cr_statement_at_media_rule_parse_from_buf().dodji2003-06-172-5/+42
| | | | | | | | | | | | | | | | | 2003-06-17 dodji <dodji@seketeli.org> * tests/test4-main.c: updated this to test cr_statement_at_media_rule_parse_from_buf(). * src/parser/cr-statement.[ch]: debuged cr_statement_at_media_rule_parse_from_buf() and the functions it relies on. cr_statement_new_ruleset()=> fixed this so that it properly handles the containing "@media" rule. cr_statement_new_at_media_rule =>fixed this so that it properly handles the contained rulesets. Dodji.
* coded a first version of cr_statement_at_media_rule_parse_from_buf(). Thisdodji2003-06-1612-1159/+1483
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-06-17 dodji <dodji@seketeli.org> * src/parser/cr-statement.[hc]: coded a first version of cr_statement_at_media_rule_parse_from_buf(). This took the writing of a couple a SAC callback. Pfffew, SAC is a rather tedious api. cr_statement_at_media_rule_parse_from_buf() does not work yet, I still have to debug it. * src/parser/cr-parser.c: use the new cr_tknzr_peek_byte2 () function in the cr_parser_parse_import() method. This is a cleaner, smaller and faster than the older approach. * src/parser/cr-om-parser.c: use the cr_dup_glist_of_string () helper fonction in the start media callback. * src/parser/cr-utils.[ch]: fixed some 'const' omissions here also. * src/parser/cr-enc-handler.[ch]: fixed some "const" omissions. 2003-06-16 dodji <dodji@seketeli.org> * src/parser/cr-parser.[ch]: cr_parser_parse_charset(), cr_parser_parse_import(), cr_parser_parse_page (), cr_parser_parse_font_face(), cr_parser_parse_media(), * src/parser/cr-tknzr.[ch]: added cr_tknzr_peek_byte2() function to export the functionalities of cr_input_peek_byte2(). Dodji.
* updated this to test the new cr_statement_ruleset_parse_from_buf ()dodji2003-06-1514-357/+839
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-06-15 dodji <dodji@seketeli.org> * tests/test4-main.c: updated this to test the new cr_statement_ruleset_parse_from_buf () method. * src/parser/cr-statement.[ch]: Added a cr_statement_ruleset_parse_from_buf () method. This is based on the changes made in cr-parser.[ch]. * src/parser/cr-selector.[ch]: added a method cr_selector_parse_from_buf (). This is based on the changes made in cr-parser.[ch]. * src/parser/cr-parser.[ch]: Some rather important changes occured here ... revisited the way selectors and rulesets are parsed so that one could parse a buffer that contains only a ruleset. A visible implication of this is that cr_parser_parse_selector () and cr_parser_parse_ruleset () become public methods callable independantly. In the past, this was not possible. Only cr_parser_parse_stylesheet () was public. * src/parser/cr-om-parser.c: updated this to comply with the changes made in cr-doc-handler.[ch]. * src/parser/cr-doc-handler.[ch]: 1/ Created an explicitely private field of CRDocHandler to store parsing context, parsing result and any eventually needed private data structure. The privates fields are accessible through getters/setters though. 2/ made sure to increment the ref count of each instance of CRDocHandler at instanciation time. This may introduce some memleaks in the working code. I will fix them in next commits. * src/parser/cr-declaration.c: (cr_declaration_append2() ): modified this so that we can append declaration to a list of declarations that don't belong to a ruleset. Dodji.
* more fonts selection implementation.dodji2003-06-145-42/+186
| | | | | | | | | | | 2003-06-14 dodji <dodji@seketeli.org> * src/layeng/cr-lay-eng.c, src/seleng/cr-style.[hc]: more fonts selection implementation. * tests/test7-main.c: updated this to test the font selection implem. Dodji.
* added pango stuffs. added pango detection. a bit more font selection. adodji2003-06-1211-18/+261
| | | | | | | | | | | | 2003-06-12 dodji <dodji@seketeli.org> * src/seleng/Makefile.am: added pango stuffs. * configure.in: added pango detection. * src/seleng/cr-fonts.c: a bit more font selection. * src/layeng/cr-lay-eng.c: a bit more font selection. * src/seleng/cr-style.c: font selection code again. Dodji.
* updated this test to test the new cr_declaration_to_string () api.Dodji Seketeli2003-06-094-3/+92
| | | | | | | | | | | * tests/test4-main.c: updated this test to test the new cr_declaration_to_string () api. * src/parser/cr-declaration.[ch] (cr_declaration_to_string ()): Added this new api to allow the serialisation of css declarations. This is not well tested yet, but it works. Dodji.
* fixed a bug that prevented this parsing function to be called outside theDodji Seketeli2003-06-094-14/+66
| | | | | | | | * src/parser/cr-parser.c (cr_parser_parse_declaration): fixed a bug that prevented this parsing function to be called outside the stylesheet parsing context. Dodji.
* went forward in the font properties gathering.Dodji Seketeli2003-06-0810-22/+267
| | | | | | | | | | | | | | | | * src/seleng/cr-style.[ch]: went forward in the font properties gathering. * src/parser/cr-tknzr.[ch]: fixed some 'const" related compilation warnings. * src/parser/cr-parser.[ch]: exported the declaration parsing api so that cr_declaration_parse () can use it. * src/parser/cr-declaration.[ch]: added cr_declaration_parse () api. Not tested yet. Dodji.
* fixed a memory management bug.Dodji Seketeli2003-06-082-155/+86
| | | | Dodji.
* *** empty log message ***Dodji Seketeli2003-06-082-94/+95
|