aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2016-06-20 21:44:36 +0200
committerSebastian Geerken <devnull@localhost>2016-06-20 21:44:36 +0200
commit94c2d21c5c035fa056481ea6e6743f83ea651e78 (patch)
treebf04218bbe467fb81d265093e1469365f084d5ec /dw/textblock.cc
parent1d4da1af1d51e2b2de907c46666e05ef866a9300 (diff)
Incremental resizing for OOFFloatsMgr.
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r--dw/textblock.cc13
1 files changed, 1 insertions, 12 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 700c748b..f0bfb3d8 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -3035,18 +3035,7 @@ void Textblock::queueDrawRange (int index1, int index2)
void Textblock::updateReference (int ref)
{
- // The condition "(lines->size () > 0)" prevents CPU hogging in some cases,
- // see devdoc/dw-miscellaneous.doc, "Relation between
- // dw::core::Widget::markSizeChange and dw::core::Widget::queueResize".
- //
- // This condition is safe, since an implementation of
- // dw::oof::OOFAwareWidget::updateReference should only affect content in
- // flow, not widgets out of flow, like floats.
-
- if (lines->size () > 0)
- queueResize (ref, false);
-
- // TODO: "if (words->size () > 0)" has to be considered.
+ queueResize (ref, false);
}
void Textblock::widgetRefSizeChanged (int externalIndex)