diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-11-13 17:03:58 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-11-13 17:03:58 +0100 |
commit | d7148c5530fe22eb037f31739af245adbc8d6300 (patch) | |
tree | 06513fc75061a86170de3c7b46a8ca353f1d759a /src | |
parent | 81b02d9b8f7643923823c4b7014a0e3fd4c923fa (diff) |
use CssLength in computeValue
Diffstat (limited to 'src')
-rw-r--r-- | src/styleengine.cc | 3 | ||||
-rw-r--r-- | src/styleengine.hh | 2 |
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: |