| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
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++.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Dodji.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
2003-12-11 Dodji Seketeli <dodji@gnome.org>
* src/layeng/Makefile.am,src/seleng/Makefile.am: Fixed more
build system stuffs here.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
| |
2003-06-29 Dodji Seketeli <dodji seketeli org>
touched all the files because of a time update.
Dodji.
|
|
|
|
|
|
|
| |
2003-06-29 Dodji Seketeli <dodji () seketeli () org>
configure.in: fixed a tiny typo.
Dodji.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
2003-06-26 Dodji Seketeli <dodji at seketeli dot org>
* docs/examples/cssom-example-1.c : modified this coding
example.
Dodji.
|
|
|
|
|
|
|
|
| |
2003-06-25 Dodji Seketeli <dodji at seketeli dot org>
* docs/examples/sac-example-2.c: added this new file.
Dodji.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
2003-06-22 Dodji Seketeli <dodji at seketeli dot org>
More bits on the parser documentation front.
Dodji.
|
|
|
|
|
|
|
| |
2003-06-22 Dodji Seketeli <dodji@seketeli.org>
An on going parser architecture document.
Dodji.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Dodji.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
Dodji.
|
| |
|