aboutsummaryrefslogtreecommitdiff
path: root/src/css.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-10-29 19:03:43 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-10-29 19:03:43 +0100
commit2ca059af0e113cf167a848a9e43fa149c2c9f7bd (patch)
treef9fbb120defa9293c6494f2a95ad427a81e06a8d /src/css.hh
parentfaa12b128ac5e22aed81a1ca692ddc504b31bd10 (diff)
pass Layout to StyleEngine
Diffstat (limited to 'src/css.hh')
-rw-r--r--src/css.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/css.hh b/src/css.hh
index e8aa3a3b..c71de78a 100644
--- a/src/css.hh
+++ b/src/css.hh
@@ -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);
};