diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-10-29 19:03:43 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-10-29 19:03:43 +0100 |
commit | 2ca059af0e113cf167a848a9e43fa149c2c9f7bd (patch) | |
tree | f9fbb120defa9293c6494f2a95ad427a81e06a8d /src/css.hh | |
parent | faa12b128ac5e22aed81a1ca692ddc504b31bd10 (diff) |
pass Layout to StyleEngine
Diffstat (limited to 'src/css.hh')
-rw-r--r-- | src/css.hh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -116,7 +116,7 @@ class CssPropertyList : public lout::misc::SimpleVector <CssProperty> { public: CssPropertyList() : lout::misc::SimpleVector <CssProperty> (1) {}; - static CssPropertyList *parse (const char *buf, int buflen); + static CssPropertyList *parse (const char *buf); void set (CssProperty::Name name, CssProperty::Value value); void apply (CssPropertyList *props); }; @@ -124,17 +124,17 @@ class CssPropertyList : public lout::misc::SimpleVector <CssProperty> { /** \todo proper implementation */ class CssSelector { private: - int tagIndex; + int tag; const char *klass, *id; public: - CssSelector (int tagIndex, const char *klass, const char *id) { - this->tagIndex = tagIndex; + CssSelector (int tag, const char *klass, const char *id) { + this->tag = tag; this->klass = klass; this->id = id; }; - static CssSelector *parse (const char *buf, int buflen); + static CssSelector *parse (const char *buf); bool match (Doctree *dt); }; |