comparison src/styleengine.hh @ 1738:7974b38cc036

use background-color on <html>-element
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Mon, 11 Oct 2010 23:36:36 +0200
parents 90feb0de4310
children 6ff5d5aeb9a5
comparison
equal deleted inserted replaced
1737:31d490fe7e0a 1738:7974b38cc036
23 CssPropertyList *styleAttrProperties; 23 CssPropertyList *styleAttrProperties;
24 CssPropertyList *nonCssProperties; 24 CssPropertyList *nonCssProperties;
25 dw::core::style::Style *style; 25 dw::core::style::Style *style;
26 dw::core::style::Style *wordStyle; 26 dw::core::style::Style *wordStyle;
27 bool inheritBackgroundColor; 27 bool inheritBackgroundColor;
28 DoctreeNode *doctreeNode;
28 }; 29 };
29 30
30 dw::core::Layout *layout; 31 dw::core::Layout *layout;
31 lout::misc::SimpleVector <Node> *stack; 32 lout::misc::SimpleVector <Node> *stack;
32 CssContext *cssContext; 33 CssContext *cssContext;
37 dw::core::style::Style *wordStyle0 (); 38 dw::core::style::Style *wordStyle0 ();
38 void setNonCssHint(CssPropertyName name, CssValueType type, 39 void setNonCssHint(CssPropertyName name, CssValueType type,
39 CssPropertyValue value); 40 CssPropertyValue value);
40 void preprocessAttrs (dw::core::style::StyleAttrs *attrs); 41 void preprocessAttrs (dw::core::style::StyleAttrs *attrs);
41 void postprocessAttrs (dw::core::style::StyleAttrs *attrs); 42 void postprocessAttrs (dw::core::style::StyleAttrs *attrs);
42 void apply (dw::core::style::StyleAttrs *attrs, CssPropertyList *props); 43 void apply (int i, dw::core::style::StyleAttrs *attrs, CssPropertyList *props);
43 bool computeValue (int *dest, CssLength value, 44 bool computeValue (int *dest, CssLength value,
44 dw::core::style::Font *font); 45 dw::core::style::Font *font);
45 bool computeValue (int *dest, CssLength value, 46 bool computeValue (int *dest, CssLength value,
46 dw::core::style::Font *font, int percentageBase); 47 dw::core::style::Font *font, int percentageBase);
47 bool computeLength (dw::core::style::Length *dest, CssLength value, 48 bool computeLength (dw::core::style::Length *dest, CssLength value,
79 void inheritNonCssHints (); 80 void inheritNonCssHints ();
80 void clearNonCssHints (); 81 void clearNonCssHints ();
81 void restyle (); 82 void restyle ();
82 void inheritBackgroundColor (); /* \todo get rid of this somehow */ 83 void inheritBackgroundColor (); /* \todo get rid of this somehow */
83 dw::core::style::Style *backgroundStyle (); 84 dw::core::style::Style *backgroundStyle ();
85 dw::core::style::Color *backgroundColor ();
84 86
85 inline dw::core::style::Style *style () { 87 inline dw::core::style::Style *style () {
86 dw::core::style::Style *s = stack->getRef (stack->size () - 1)->style; 88 dw::core::style::Style *s = stack->getRef (stack->size () - 1)->style;
87 if (s) 89 if (s)
88 return s; 90 return s;