aboutsummaryrefslogtreecommitdiff
path: root/src/styleengine.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-10-11 23:36:36 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-10-11 23:36:36 +0200
commitff717a2d9bc7dad370e3eb9a7919ea8a12e46416 (patch)
tree322a714a070feb749ab948efe989accd5ed8244a /src/styleengine.hh
parent97cd61e9ca455834cc2095241bf0f3517208b83d (diff)
use background-color on <html>-element
Diffstat (limited to 'src/styleengine.hh')
-rw-r--r--src/styleengine.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/styleengine.hh b/src/styleengine.hh
index a0fcdc08..bc421ca7 100644
--- a/src/styleengine.hh
+++ b/src/styleengine.hh
@@ -25,6 +25,7 @@ class StyleEngine {
dw::core::style::Style *style;
dw::core::style::Style *wordStyle;
bool inheritBackgroundColor;
+ DoctreeNode *doctreeNode;
};
dw::core::Layout *layout;
@@ -39,7 +40,7 @@ class StyleEngine {
CssPropertyValue value);
void preprocessAttrs (dw::core::style::StyleAttrs *attrs);
void postprocessAttrs (dw::core::style::StyleAttrs *attrs);
- void apply (dw::core::style::StyleAttrs *attrs, CssPropertyList *props);
+ void apply (int i, dw::core::style::StyleAttrs *attrs, CssPropertyList *props);
bool computeValue (int *dest, CssLength value,
dw::core::style::Font *font);
bool computeValue (int *dest, CssLength value,
@@ -81,6 +82,7 @@ class StyleEngine {
void restyle ();
void inheritBackgroundColor (); /* \todo get rid of this somehow */
dw::core::style::Style *backgroundStyle ();
+ dw::core::style::Color *backgroundColor ();
inline dw::core::style::Style *style () {
dw::core::style::Style *s = stack->getRef (stack->size () - 1)->style;