diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-06-18 20:07:47 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-06-18 20:07:47 +0000 |
commit | 4ff509a419cf48774d31f27e11a59edef1fd52d2 (patch) | |
tree | 42b86995bf3d9bb890e20a703b94acc0f2e538da /src/parse/properties/positioning.c | |
parent | 2e21ea7e931bc501a6af8f1761d68407fb232731 (diff) | |
download | libcss-4ff509a419cf48774d31f27e11a59edef1fd52d2.tar.gz libcss-4ff509a419cf48774d31f27e11a59edef1fd52d2.tar.bz2 |
Centralise !important handling.
Document background-attachment parser and make it behave correctly.
svn path=/trunk/libcss/; revision=7856
Diffstat (limited to 'src/parse/properties/positioning.c')
-rw-r--r-- | src/parse/properties/positioning.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/parse/properties/positioning.c b/src/parse/properties/positioning.c index 4882a45..c280f4b 100644 --- a/src/parse/properties/positioning.c +++ b/src/parse/properties/positioning.c @@ -59,10 +59,6 @@ css_error parse_position(css_language *c, if (ident == NULL || ident->type != CSS_TOKEN_IDENT) return CSS_INVALID; - error = parse_important(c, vector, ctx, &flags); - if (error != CSS_OK) - return error; - if (ident->ilower == c->strings[INHERIT]) { flags |= FLAG_INHERIT; } else if (ident->ilower == c->strings[STATIC]) { @@ -104,10 +100,6 @@ css_error parse_clear(css_language *c, if (ident == NULL || ident->type != CSS_TOKEN_IDENT) return CSS_INVALID; - error = parse_important(c, vector, ctx, &flags); - if (error != CSS_OK) - return error; - if (ident->ilower == c->strings[INHERIT]) { flags |= FLAG_INHERIT; } else if (ident->ilower == c->strings[RIGHT]) { @@ -149,10 +141,6 @@ css_error parse_float(css_language *c, if (ident == NULL || ident->type != CSS_TOKEN_IDENT) return CSS_INVALID; - error = parse_important(c, vector, ctx, &flags); - if (error != CSS_OK) - return error; - if (ident->ilower == c->strings[INHERIT]) { flags |= FLAG_INHERIT; } else if (ident->ilower == c->strings[LEFT]) { @@ -245,10 +233,6 @@ css_error parse_vertical_align(css_language *c, value = VERTICAL_ALIGN_SET; } - error = parse_important(c, vector, ctx, &flags); - if (error != CSS_OK) - return error; - opv = buildOPV(CSS_PROP_VERTICAL_ALIGN, flags, value); required_size = sizeof(opv); @@ -310,10 +294,6 @@ css_error parse_side(css_language *c, value = BOTTOM_SET; } - error = parse_important(c, vector, ctx, &flags); - if (error != CSS_OK) - return error; - opv = buildOPV(op, flags, value); required_size = sizeof(opv); |