Mercurial > dillo_port1.3
changeset 575:13bbef5403a2
use CssLength in computeValue
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> |
---|---|
date | Thu, 13 Nov 2008 17:03:58 +0100 |
parents | 8a7400997d83 |
children | 66153396f4ba |
files | src/styleengine.cc src/styleengine.hh |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/styleengine.cc Thu Nov 13 17:02:53 2008 +0100 +++ b/src/styleengine.cc Thu Nov 13 17:03:58 2008 +0100 @@ -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 @@ 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;
--- a/src/styleengine.hh Thu Nov 13 17:02:53 2008 +0100 +++ b/src/styleengine.hh Thu Nov 13 17:03:58 2008 +0100 @@ -19,7 +19,7 @@ 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: