2004-04-15  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-gdi.[ch]: 
	(sx_gdi_predefined_absolute_font_size_to_point_size):
	(sx_gdi_set_handler_predefined_absolute_font_size_to_point_size):
	added the predefined_absolute_font_size_to_point_size() interdace
	to SXGdi
	* src/sx-gtk-di.c:
	(style_to_pango_font_attributes_list): cleanup.
	(predefined_absolute_font_size_to_point_size):
	The implem of the
	sx_gdi_predefined_absolute_font_size_to_point_size () interface.
	* src/sx-lay-eng.[ch]: 
	(style_specified_2_computed_values): 
	started to calculate the computed value of the CRStyle::font_size value.

2004-04-13  Dodji Seketeli  <dodji@gnome.org>

	* src/Makefile.am: added src/sx-gdi.[hc] and src/sx-gtk-di.[ch].
	* src/sx-box-view.[ch]: 
	(sx_box_view_new): 
	(sx_box_view_new_from_bm):
	now the layout engine is passed a
	Graphical Device Interface at construction time. It now
	relies on it to perform device/font dependant calculations.
	The particular implementation of DI used here, is
	Gtk Device Implementation (GtkDi).
	(sx_box_view_new_from_xml_css_paths): allow ua/user/author
	sheet to be passed to build the cascade.
	* src/sx-lay-eng.c:
	Remove all the stuffs that are gtk/gdk/pango dependant from here.
	Make the layout engine use a Graphical Device Interface (SXGdi)
	instead. This (abstract) interface helps build a layout engine
	that is quite independant from the actual graphical device use.
	* src/sx-gdi.[ch]: added this new Graphical Device Interface
	* src/sx-gtk-di.[ch] added this Gtk Device Implementation class
	that implements SXGdi. This is that actual device implementation
	of the layout engine.

2004-04-11  Dodji Seketeli  <dodji@gnome.org>

	* tests/dbaron-tests/childsel/childsel.css
	* tests/dbaron-tests/childsel/childsel.xml:
	added these new tests.

2004-04-10  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-box.[ch]:
	(sx_box_construct): propagate the new cr_style_new() signature change.
	* src/sx-lay-eng.c: 
	(style_specified_2_computed_values): smallish cleanup here.
	(create_box_tree_real): when a root box is created, set the style
	props to their initial value. When the other types of box are
	created, set the style props the their default values.
	(layout_box): don't set props to their default values here. It's
	too late. This is now done at box creation time, driven by the
	box creation code. This fixes a couple of bugs.
	(sx_lay_eng_update_box_tree): make the update behave like
	the initial layout w.r.t the style props initial/default
	values.
	
2004-04-08  Dodji Seketeli  <dodji@gnome.org>

	* sx-box-view.c: 
	(set_border_line_attrs): 
	warn if we still have properties for which inheritance
	has not been resolved.
	* src/sx-box.[ch]:
	(sx_box_model_new): make this constructor take an xmlDoc in parameter.
	(sx_box_get_xml_root_element_node): added this to get the root xml element
	from any box of the box model.
	(sx_box_is_root_box): added this helper.
	* src/sx-lay-eng.c:
	(layout_box): can the inheritance resolving facilities
	of libcroco here. Now we have properties inheritance in sewfox ;).
	* tests/minifox.c: fixed a crasher here.

2004-04-03  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-box-view.[ch]: 
	(sx_box_view_new_from_xml_css_paths) :
	added the ability to use or not the ua sheet.
	* src/sx-lay-eng.c:
	(create_box_tree_real):
	when we can't retrieve a style for a node, instanciate
	a default style for that node. This fixes a crasher.
	* tests/minifoxc.: better option parsing. add the
	--no-uacss option to skip the ua sheet.
	* tests/dbaron-tests: added this new directory where
	I am gonna slowly push the famous David Baron css tests,
	cooked up by Stephane Bonhomme.

2004-03-14  Dodji Seketeli  <dodji@gnome.org>

	* test-normalize-spaces.html: added this new test file.
	* src/sx-lay-eng.c:
	Support of text normalisation and "font-weight: bolder".
	* src/sx-box.[ch]: added a flag in the
	SXBox to control the white space normalisation
	in text content node.

	* src/sx-box-view.c: 
	(sx_box_view_new_from_xml_css_paths): add the ability
	to instanciate a boxview without user and/or author sheet.
	In that case, only the default sheet will be loaded in the
	cascade.

	* src/sx-box-view.[ch],stylesheets/Makefile.am:
	applied a patch from David A Knight. Sewfox chooses
	A specific ua html.css when it loads an html file.

2004-03-07  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-box-view.[ch],tests/minifox.c,: Applied
	a patch from David Knight to that starts the support
	of html in sewfox.
	* src/sx-box-view.: 
	(sx_box_view_new_from_xml_css_paths): applied a patch
	from Benjamin Dauvergne to initialize an uninitialized
	variable. This fixes a crasher.

2004-03-07  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-lay-eng.c: applied a patch from Benjamin Dauvergne
	to support the color property.

2004-03-07  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-lay-eng.c: 
	(style_specified_2_computed_values): If a color is expressed
	in percentage, make sure we properly compute the 
	"compted value"

2004-03-06  Dodji Seketeli <dodji@gnome.org>

	* src/sx-box-view.c: 
	do not rely on the destroy signal for the widget
	destruction. Rely on sx_box_view_dispose() 
	and on sx_box_view_finalize() instead.
	This fixes the warning message that was dumped at
	the widget destruction time.

2004-02-29  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-box-view.c: 
	(map_event_cb): removed the debug messages.
	* tests/input-files/test-border-0.css,tests/input-files/test-border-0.png,
          tests/input-files/test-border-0.xml.

2004-02-28  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-lay-eng.c: 
	(compute_and_set_box_dimensions): fixed the margin top
	calculation.
	* tests/input-files/*: added a non regression test here.

2004-02-28  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-lay-eng.c: 
	(layout_block_box): fixed a smallish assert here.
	* tests/minifox.c: added a basic contextual menu
	to dump the box model. Defined a initial size for minifox

2004-02-22  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-box-view.c: 
	(sx_box_view_update_box_model_attrs): fixed an anoying
	rendering problem that occurs at cascading reloading time.

2004-02-21  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-lay-eng.c: 
	(sx_lay_eng_update_box_tree): make sure to initialyze
	anonymous boxes properly.
	* tests/minifox.c: some minor indentation

2004-02-19  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-box-view.c: debug the "reload cascade" function
	so that it updates the old cascade instead of building
	a new one. Reload still does not work correctly but is
	better than before.

2004-02-19  Dodji Seketeli  <dodji@gnome.org>

	* Makefile.am,configure.in,tests/Makefile.am,tests/minifox.c:
	Added the minifox graphical test program, coded by 
	Stephane Bonhomme.
	* tests/input-files/test0.css,tests/input-files/test0.xml: 
	added some testing files.
	* src/sx-box-view.c:
	(sx_box_view_new_from_xml_css_paths)
	applied a patch from Stephane Bonhomme to properly
	the sheet passed in argument to this function as a
	user sheet. We will see how to handler authorsheet
	set in the xml via <?stylesheet?> processing later.

2004-02-18  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-box-view.c: 
	(sx_box_view_update_box_model_attrs_from_css):
	Fix a typo that prevented sewfox to load user and ua sheets.
	This should fix http://bugzilla.gnome.org/show_bug.cgi?id=134724 .

2004-02-12  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-lay-eng.c: 
	(layout_inline_box): when an inline box follows
	a block box, the inline block should go "below"
	the the block box.
	(belongs_to_a_block_formating_context),
	(belongs_to_an_inline_formating_context):
	added these two helper functions.

2004-02-12  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-box-view.[ch]: 
	(sx_box_view_update_box_model_attrs_from_cascade):
	don't forget to re-layout the whole box model when a new
	cascade is set to the system.
	* src/sx-lay-eng.c: 
	(sx_lay_eng_update_box_tree): when a node is not an element node,
	make sure its corresponding style inherits its parent's style.

2004-02-10  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-box.c: 
	(sx_box_to_string) debugged this.

2004-02-04  Dodji Seketeli  <dodji@gnome.org>

	* src/Makefile.am: fixed build system bug.
	* src/sx-box-view.c: (draw_box): fixed a crasher. Don't try
	to draw a box that doesn't have a NULL style structure associated.
	* stylesheets/sewfox-default.css: played with this a bit for testing
	purpose.
	* configure.in,src/Makefile.am: second attempt to fix the build system bug.

2004-01-31  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-box-view.c: splited the drawing and label positioning in
	two different part.
	Now, only the boxes drawing is done in the "expose-event" callback.
	The label positioning is done in the "map-event" callback because
	label positioning generates a size request that generates and
	"expose-event". So doing the label positioning in the "expose-event"
	was causing an infinite loop of "expose-event".
	* src/sx-lay-eng.c: 
	(compute_text_box_inner_edge_size): don't systematicaly
	position the label during the layout process.
	
2004-01-29  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-box-view.[ch]: 
	(sx_box_view_update_box_model_attrs_from_cascade)
	(sx_box_view_update_box_model_attrs_from_css): new public functions.
	* src/sx-box.c: 
	(sx_box_set_style): new public function.
	(sx_box_construct): make this use the new sx_box_set_box_style().
	* src/sx-lay-eng.c: 
	(create_box_tree_real): small cleanup here.
	(sx_lay_eng_update_box_tree): new function.

2004-01-29  Dodji Seketeli  <dodji@gnome.org>

	* configure.in: replaced libgnomecanvas dependancy by a gtk+
	dependancy.
	* src/Makefile.am: some small refactoring here.
	* stylesheets/sewfox-default.css: played with this a bit
	* src/sx-box-view.c: connect to the "expose-event" to draw
	the boxes, not to the "map" event and let the signal propagate after
	the box drawing.
	* src/sx-lay-eng.c: 
	(sx_lay_eng_update_box_model): just started to write this ...
	but I think I should look for some sleep instead ...

2004-01-27  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-box-view.c: 
	(sx_box_view_new): fixe some stupid errors here.
	* src/sx-box-view.h: #include "cr-cascade.h" here.
	* src/sx-lay-eng.c: 
	(sx_lay_eng_init) don't make this call gtk_init(). This is now
	an empty stub where all the global init stuff could go in the
	future.
	
	
2004-01-26  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-box-view.[ch]: 
	(sx_box_view_real_new): shaped this canonical constructor.
	(sx_box_view_new_from_xml_css_paths): coded this new constructor.
	(sx_box_view_get_default_stylesheet): parses the system default
	css (a.k.a UA sheet)

2004-01-26  Dodji Seketeli  <dodji@gnome.org>

	* src/sx-box-view.c: started the work to make this widget capable
	of loading a *default* system css to render documents

2004-01-25  Dodji Seketeli  <dodji@gnome.org>

	* COPYRIGHTS: new file added
	* Makefile.am: added sewfox.pc and sewfox-config to the
	distribution.
	* autogen.sh: some cleanup here.
	* configure.in: did some autotools-fu
	* sewfox-config.in,sewfox.pc.in: added these new files.
	* COPYING: LGPL'ed the damn thing
	* src/sx-box-view.[ch],src/sx-box.h: changed so cr_* into sx_*.
	* Makefile.am: added the directory stylesheets
	* src/Makefile.am: did some plumbering to prepare the
	access to the stylesheets.
	* stylesheets/Makefile.am: newly added file
	* stylesheets/sewfox-default.css: started to write this
	default sewfox stylesheet.
	* tests/Makefile.am,tests/test-utils.[ch],tests/test0-main.c: 
	files newly added