aboutsummaryrefslogtreecommitdiff
path: root/src/styleengine.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-10-11 21:50:13 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-10-11 21:50:13 +0200
commitd3a9a4185e26638c7b6d512b8351d68a8c55c86e (patch)
treee345a8307f1ca5cd5f6db0035d7ff358ebb29aa6 /src/styleengine.hh
parent1200c9668c531f0f6e97bc14faecfadc0c12fdcf (diff)
add StyleEngine::restyle()
Diffstat (limited to 'src/styleengine.hh')
-rw-r--r--src/styleengine.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/styleengine.hh b/src/styleengine.hh
index 214a6397..a0fcdc08 100644
--- a/src/styleengine.hh
+++ b/src/styleengine.hh
@@ -33,7 +33,7 @@ class StyleEngine {
Doctree *doctree;
int importDepth;
- dw::core::style::Style *style0 ();
+ dw::core::style::Style *style0 (int i);
dw::core::style::Style *wordStyle0 ();
void setNonCssHint(CssPropertyName name, CssValueType type,
CssPropertyValue value);
@@ -78,6 +78,7 @@ class StyleEngine {
}
void inheritNonCssHints ();
void clearNonCssHints ();
+ void restyle ();
void inheritBackgroundColor (); /* \todo get rid of this somehow */
dw::core::style::Style *backgroundStyle ();
@@ -86,7 +87,7 @@ class StyleEngine {
if (s)
return s;
else
- return style0 ();
+ return style0 (stack->size () - 1);
};
inline dw::core::style::Style *wordStyle () {