diff options
author | Dodji Seketeli <dodji@gnome.org> | 2004-02-29 00:18:01 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@src.gnome.org> | 2004-02-29 00:18:01 +0000 |
commit | a2baab08b9a693452eb6c99c4f7a713508df6c2e (patch) | |
tree | 8598532ab3ae18dbbfacba6997cc97c52d4397cc /src/cr-style.c | |
parent | bc9967a6c28413922ad7055fa8257dbbfb6ba8f3 (diff) | |
download | libcroco-a2baab08b9a693452eb6c99c4f7a713508df6c2e.tar.gz |
Created this new CRPropList class. added this new helper function.
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.
Diffstat (limited to 'src/cr-style.c')
-rw-r--r-- | src/cr-style.c | 4 |
1 files changed, 2 insertions, 2 deletions
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: |