From a2baab08b9a693452eb6c99c4f7a713508df6c2e Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Sun, 29 Feb 2004 00:18:01 +0000 Subject: Created this new CRPropList class. added this new helper function. 2004-02-29 Dodji Seketeli * 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. --- src/cr-style.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cr-style.c') diff --git a/src/cr-style.c b/src/cr-style.c index f10e674..760dfa4 100644 --- a/src/cr-style.c +++ b/src/cr-style.c @@ -2127,7 +2127,7 @@ cr_style_set_style_from_decl (CRStyle *a_this, CRDeclaration *a_decl) case PROP_ID_BORDER_RIGHT: status = set_prop_border_x_from_value (a_this, value, - DIR_TOP) ; + DIR_RIGHT) ; break ; case PROP_ID_BORDER_BOTTOM: @@ -2139,7 +2139,7 @@ cr_style_set_style_from_decl (CRStyle *a_this, CRDeclaration *a_decl) case PROP_ID_BORDER_LEFT: status = set_prop_border_x_from_value (a_this, value, - DIR_BOTTOM) ; + DIR_LEFT) ; break ; case PROP_ID_MARGIN_TOP: -- cgit v1.2.1