diff options
author | Sebastian Geerken <devnull@localhost> | 2013-11-21 16:18:00 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-11-21 16:18:00 +0100 |
commit | ee66f4f97e38d11e68b9515b7043aa8ac6f63c74 (patch) | |
tree | b44f2551414938958c645309e788de6418a9f512 /dw/outofflowmgr.cc | |
parent | 4a1d3f2493053f97a2280a3606904b784a740475 (diff) |
Applied new "multiplyWithPerLength" to floats.
Diffstat (limited to 'dw/outofflowmgr.cc')
-rw-r--r-- | dw/outofflowmgr.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dw/outofflowmgr.cc b/dw/outofflowmgr.cc index 08167788..49babdab 100644 --- a/dw/outofflowmgr.cc +++ b/dw/outofflowmgr.cc @@ -1501,8 +1501,8 @@ void OutOfFlowMgr::ensureFloatSize (Float *vloat) (absLengthVal (vloat->widget->getStyle()->width)); else if (isPerLength (vloat->widget->getStyle()->width)) vloat->widget->setWidth - (containingBlock->getAvailWidth() - * perLengthVal (vloat->widget->getStyle()->width)); + (multiplyWithPerLength (containingBlock->getAvailWidth(), + vloat->widget->getStyle()->width)); } // This is a bit hackish: We first request the size, then set @@ -1679,7 +1679,7 @@ int OutOfFlowMgr::calcValueForAbsolutelyPositioned if (isAbsLength (styleLen)) return absLengthVal (styleLen); else if (isPerLength (styleLen)) - return refLen * perLengthVal (styleLen); + return multiplyWithPerLength (refLen, styleLen); else { assertNotReached (); return 0; // compiler happiness |