diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-15 22:18:20 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-15 22:18:20 +0100 |
commit | 5f5e05347d4898766d1c06c41c6c56e23b71bcd7 (patch) | |
tree | 64a97621dcdfc4c0b0383878b555d37fd200f456 /src/cssparser.cc | |
parent | ce04e3431c9d6658689b6cac94ac59f9dba60a78 (diff) |
move CssPropertyInfo definition to cssparser.cc
Diffstat (limited to 'src/cssparser.cc')
-rw-r--r-- | src/cssparser.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc index 876c6301..8910bdcd 100644 --- a/src/cssparser.cc +++ b/src/cssparser.cc @@ -42,6 +42,12 @@ using namespace dw::core::style; (CSS_PROPERTY_LAST - CSS_NUM_INTERNAL_PROPERTIES) +typedef struct { + const char *symbol; + const CssValueType type[3]; + const char *const *enum_symbols; +} CssPropertyInfo; + static const char *const Css_border_style_enum_vals[] = { "none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset", NULL @@ -1191,6 +1197,11 @@ void CssParser::parseRuleset() nextToken(); } +const char * CssParser::propertyNameString(CssPropertyName name) +{ + return Css_property_info[name].symbol; +} + void CssParser::parse(CssContext * context, const char *buf, int buflen, CssOrigin origin) |