summaryrefslogtreecommitdiff
path: root/src/parse/properties/text.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-06-18 20:07:47 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-06-18 20:07:47 +0000
commit4ff509a419cf48774d31f27e11a59edef1fd52d2 (patch)
tree42b86995bf3d9bb890e20a703b94acc0f2e538da /src/parse/properties/text.c
parent2e21ea7e931bc501a6af8f1761d68407fb232731 (diff)
downloadlibcss-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/text.c')
-rw-r--r--src/parse/properties/text.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/parse/properties/text.c b/src/parse/properties/text.c
index 3e9dc72..0c2a4c3 100644
--- a/src/parse/properties/text.c
+++ b/src/parse/properties/text.c
@@ -41,10 +41,6 @@ css_error parse_color(css_language *c,
value = COLOR_SET;
}
- error = parse_important(c, vector, ctx, &flags);
- if (error != CSS_OK)
- return error;
-
opv = buildOPV(CSS_PROP_COLOR, flags, value);
required_size = sizeof(opv);
@@ -81,10 +77,6 @@ css_error parse_direction(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[LTR]) {
@@ -146,10 +138,6 @@ css_error parse_letter_spacing(css_language *c,
value = LETTER_SPACING_SET;
}
- error = parse_important(c, vector, ctx, &flags);
- if (error != CSS_OK)
- return error;
-
opv = buildOPV(CSS_PROP_LETTER_SPACING, flags, value);
required_size = sizeof(opv);
@@ -188,10 +176,6 @@ css_error parse_text_align(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]) {
@@ -272,10 +256,6 @@ css_error parse_text_decoration(css_language *c,
}
}
- error = parse_important(c, vector, ctx, &flags);
- if (error != CSS_OK)
- return error;
-
opv = buildOPV(CSS_PROP_TEXT_DECORATION, flags, value);
/* Allocate result */
@@ -323,10 +303,6 @@ css_error parse_text_indent(css_language *c,
value = TEXT_INDENT_SET;
}
- error = parse_important(c, vector, ctx, &flags);
- if (error != CSS_OK)
- return error;
-
opv = buildOPV(CSS_PROP_TEXT_INDENT, flags, value);
required_size = sizeof(opv);
@@ -365,10 +341,6 @@ css_error parse_text_transform(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[CAPITALIZE]) {
@@ -410,10 +382,6 @@ css_error parse_unicode_bidi(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[NORMAL]) {
@@ -453,10 +421,6 @@ css_error parse_white_space(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[NORMAL]) {
@@ -524,10 +488,6 @@ css_error parse_word_spacing(css_language *c,
value = WORD_SPACING_SET;
}
- error = parse_important(c, vector, ctx, &flags);
- if (error != CSS_OK)
- return error;
-
opv = buildOPV(CSS_PROP_WORD_SPACING, flags, value);
required_size = sizeof(opv);