aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/styleengine.cc3
-rw-r--r--src/styleengine.hh2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index bb6022f4..0d68a7b9 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -11,7 +11,6 @@
#include <stdio.h>
#include <math.h>
-#include "css.hh"
#include "styleengine.hh"
using namespace dw::core::style;
@@ -231,7 +230,7 @@ void StyleEngine::computeValues (Box *box, Font *font) {
box->top = computeValue (box->top, font);
}
-int StyleEngine::computeValue (int value, Font *font) {
+int StyleEngine::computeValue (CssLength value, Font *font) {
int ret;
static float dpmm;
diff --git a/src/styleengine.hh b/src/styleengine.hh
index 3c9a7951..07b79a54 100644
--- a/src/styleengine.hh
+++ b/src/styleengine.hh
@@ -19,7 +19,7 @@ class StyleEngine : public Doctree {
dw::core::style::Style *style0 (CssPropertyList *nonCssProperties = NULL);
void apply (dw::core::style::StyleAttrs *attrs, CssPropertyList *props);
- int computeValue (int value, dw::core::style::Font *font);
+ int computeValue (CssLength value, dw::core::style::Font *font);
void computeValues (dw::core::style::Box *box, dw::core::style::Font *font);
public: