comparison src/styleengine.hh @ 598:4ff90b6242f9

fix id, class, style attribute handling
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Fri, 14 Nov 2008 20:18:35 +0100
parents eb1072890045
children d0694361ecd0
comparison
equal deleted inserted replaced
597:63c57aa7f872 598:4ff90b6242f9
35 return stack->getRef (n->depth - 1); 35 return stack->getRef (n->depth - 1);
36 else 36 else
37 return NULL; 37 return NULL;
38 }; 38 };
39 39
40 void startElement (int tag, const char *id = NULL, const char *klass = NULL, 40 void startElement (int tag);
41 const char *style = NULL); 41 void setId (const char *id);
42 void setClass (const char *klass);
43 void setStyle (const char *style);
42 void endElement (int tag); 44 void endElement (int tag);
45 void setPseudo (const char *pseudo);
43 void setNonCssHints (CssPropertyList *nonCssHints); 46 void setNonCssHints (CssPropertyList *nonCssHints);
44 void setPseudoClass (const char *pseudoClass);
45 47
46 inline dw::core::style::Style *style () { 48 inline dw::core::style::Style *style () {
47 dw::core::style::Style *s = stack->getRef (stack->size () - 1)->style; 49 dw::core::style::Style *s = stack->getRef (stack->size () - 1)->style;
48 if (s) 50 if (s)
49 return s; 51 return s;