comparison src/styleengine.hh @ 990:36d9fee90159

whitespace
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Mon, 09 Mar 2009 22:16:21 +0100
parents d04d960da3f4
children 474b9814a8fa
comparison
equal deleted inserted replaced
989:232a777ff3ec 990:36d9fee90159
24 dw::core::style::Style *style0 (CssPropertyList *nonCssHints = NULL); 24 dw::core::style::Style *style0 (CssPropertyList *nonCssHints = NULL);
25 dw::core::style::Style *wordStyle0 (CssPropertyList *nonCssHints = NULL); 25 dw::core::style::Style *wordStyle0 (CssPropertyList *nonCssHints = NULL);
26 void apply (dw::core::style::StyleAttrs *attrs, CssPropertyList *props); 26 void apply (dw::core::style::StyleAttrs *attrs, CssPropertyList *props);
27 bool computeValue (int *dest, CssLength value, dw::core::style::Font *font); 27 bool computeValue (int *dest, CssLength value, dw::core::style::Font *font);
28 bool computeValue (int *dest, CssLength value, dw::core::style::Font *font, 28 bool computeValue (int *dest, CssLength value, dw::core::style::Font *font,
29 int percentageBase); 29 int percentageBase);
30 bool computeLength (dw::core::style::Length *dest, CssLength value, dw::core::style::Font *font); 30 bool computeLength (dw::core::style::Length *dest, CssLength value,
31 dw::core::style::Font *font);
31 32
32 public: 33 public:
33 StyleEngine (dw::core::Layout *layout); 34 StyleEngine (dw::core::Layout *layout);
34 ~StyleEngine (); 35 ~StyleEngine ();
35 36
64 if (s) 65 if (s)
65 return s; 66 return s;
66 else 67 else
67 return style0 (); 68 return style0 ();
68 }; 69 };
70
69 inline dw::core::style::Style *wordStyle () { 71 inline dw::core::style::Style *wordStyle () {
70 dw::core::style::Style *s = stack->getRef (stack->size () - 1)->wordStyle; 72 dw::core::style::Style *s = stack->getRef (stack->size () - 1)->wordStyle;
71 if (s) 73 if (s)
72 return s; 74 return s;
73 else 75 else