aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/styleengine.cc3
-rw-r--r--src/styleengine.hh6
2 files changed, 5 insertions, 4 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index 35e37543..e05630bd 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -512,7 +512,7 @@ Style * StyleEngine::style0 (CssPropertyList *nonCssProperties) {
stack->getRef (stack->size () - 2)->style->backgroundColor;
attrs.valign = stack->getRef (stack->size () - 2)->style->valign;
- }
+ }
// parse style information from style="" attribute, if it exists
if (styleAttribute && prefs.parse_embedded_css)
@@ -547,6 +547,5 @@ Style * StyleEngine::wordStyle0 (CssPropertyList *nonCssProperties) {
}
void StyleEngine::parse (const char *buf, int buflen, CssOrigin origin) {
-
a_Css_parse (cssContext, buf, buflen, origin);
}
diff --git a/src/styleengine.hh b/src/styleengine.hh
index 732808fa..dd5e4886 100644
--- a/src/styleengine.hh
+++ b/src/styleengine.hh
@@ -26,8 +26,9 @@ class StyleEngine : public Doctree {
void apply (dw::core::style::StyleAttrs *attrs, CssPropertyList *props);
bool computeValue (int *dest, CssLength value, dw::core::style::Font *font);
bool computeValue (int *dest, CssLength value, dw::core::style::Font *font,
- int percentageBase);
- bool computeLength (dw::core::style::Length *dest, CssLength value, dw::core::style::Font *font);
+ int percentageBase);
+ bool computeLength (dw::core::style::Length *dest, CssLength value,
+ dw::core::style::Font *font);
public:
StyleEngine (dw::core::Layout *layout);
@@ -66,6 +67,7 @@ class StyleEngine : public Doctree {
else
return style0 ();
};
+
inline dw::core::style::Style *wordStyle () {
dw::core::style::Style *s = stack->getRef (stack->size () - 1)->wordStyle;
if (s)