aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2010-05-28 16:10:43 +0000
committercorvid <corvid@lavabit.com>2010-05-28 16:10:43 +0000
commitc9a7f8fb20b32ff810a24c2a2c427ba9d4109a90 (patch)
treedee677940bb1d2319a9f3e8538e74d8f2cc0806c /dw/textblock.cc
parentbe31fe4e379323723bc63af9cd57169dce5fbc5f (diff)
reminder
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r--dw/textblock.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 89dbfcf7..c2a803d1 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -1595,6 +1595,11 @@ void Textblock::calcTextSize (const char *text, size_t len,
size->ascent = size->ascent * factor + 0.5;
size->descent = size->descent * factor + 0.5;
+ /* TODO: The containing block's line-height property gives a minimum
+ * height for the line boxes. (Even when it's set to 'normal', i.e.,
+ * AUTO? Apparently.) Once all block elements make Textblocks or
+ * something, this can be handled.
+ */
if (core::style::isAbsLength (style->lineHeight))
height = core::style::absLengthVal(style->lineHeight);
else