aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dw/textblock.cc12
1 files changed, 3 insertions, 9 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 564493b9..c9709f4d 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -3167,16 +3167,10 @@ Textblock *Textblock::getTextblockForLine (int firstWord, int lastWord)
if (word->content.type == core::Content::WIDGET_IN_FLOW) {
Widget *widget = word->content.widget;
if (widget->instanceOf (Textblock::CLASS_ID) &&
- // Exclude some cases where a textblock constitutes a new
- // container (see definition of float container in
- // Textblock::isContainingBlock).
- widget->getStyle()->display != core::style::DISPLAY_INLINE_BLOCK &&
- widget->getStyle()->overflow == core::style::OVERFLOW_VISIBLE)
+ // Exclude cases where a textblock constitutes a new floats
+ // container.
+ !isOOFContainer (widget, OOFM_FLOATS))
textblock = (Textblock*)widget;
-
- // (TODO: It would look nicer if there is one common place
- // for such definitions. Will be fixed in "dillo_grows", not
- // here.)
}
}