diff options
author | Dodji Seketeli <dodji@gnome.org> | 2004-03-04 23:36:04 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@src.gnome.org> | 2004-03-04 23:36:04 +0000 |
commit | c2ae0c55befcb725f4d068c9ef8a8f54101b9047 (patch) | |
tree | 5050e45508bd3fdbf4bd11202ff39e839916813f /src/cr-om-parser.c | |
parent | 586d0453fb8d672415039b3fef920535e463657e (diff) | |
download | libcroco-c2ae0c55befcb725f4d068c9ef8a8f54101b9047.tar.gz |
fixed silly bug in there. added the support of the "!important" keyword at
2004-03-05 Dodji Seketeli <dodji@gnome.org>
* csslint/csslint.c:
(parse_cmd_line) fixed silly bug in there.
* src/cr-declaration.[ch],src/cr-om-parser.c,
src/cr-parser.[ch],src/cr-statement.c,tests/test2-main.c,
tests/test3-main.c:
added the support of the "!important"
keyword at the parsing level.
* tests/test-inputs/test4.1.css: update nr tests to reflect
the new !important thing.
* src/cr-sel-eng.c:
(put_css_properties_in_props_list): fix a small subtle
bug in here. Selection engine is becoming more and more
reliable ;).
Diffstat (limited to 'src/cr-om-parser.c')
-rw-r--r-- | src/cr-om-parser.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cr-om-parser.c b/src/cr-om-parser.c index 352c3c1..077ef37 100644 --- a/src/cr-om-parser.c +++ b/src/cr-om-parser.c @@ -64,7 +64,8 @@ error (CRDocHandler *a_this) ; static void property (CRDocHandler *a_this, GString *a_name, - CRTerm *a_expression) ; + CRTerm *a_expression, + gboolean a_important) ; static void end_selector (CRDocHandler *a_this, @@ -669,7 +670,8 @@ end_selector (CRDocHandler *a_this, static void property (CRDocHandler *a_this, GString *a_name, - CRTerm *a_expression) + CRTerm *a_expression, + gboolean a_important) { enum CRStatus status = CR_OK ; ParsingContext *ctxt = NULL ; @@ -704,7 +706,7 @@ property (CRDocHandler *a_this, str, a_expression) ; g_return_if_fail (decl) ; str = NULL ; - + decl->important = a_important ; /* *add the new declaration to the current statement *being build. |