aboutsummaryrefslogtreecommitdiff
path: root/dw
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-11-17 20:25:01 +0100
committerSebastian Geerken <devnull@localhost>2014-11-17 20:25:01 +0100
commitf83977c78fb00b0c1d57235e4e9784af822d39ba (patch)
tree950d92a4f8c6ee791f3ea581366438edb2407b26 /dw
parent474dc2e3c3f0a9443a86766067f021db08bfc741 (diff)
RTFL messages.
Diffstat (limited to 'dw')
-rw-r--r--dw/outofflowmgr.cc2
-rw-r--r--dw/textblock.cc1
-rw-r--r--dw/textblock_linebreaking.cc7
-rw-r--r--dw/widget.cc9
4 files changed, 7 insertions, 12 deletions
diff --git a/dw/outofflowmgr.cc b/dw/outofflowmgr.cc
index 11b88ae0..cd42a9a5 100644
--- a/dw/outofflowmgr.cc
+++ b/dw/outofflowmgr.cc
@@ -1356,6 +1356,7 @@ void OutOfFlowMgr::addWidgetOOF (Widget *widget, Textblock *generatingBlock,
"widget", vloat->getWidget ());
widget->parentRef = createRefLeftFloat (leftFloatsAll->size() - 1);
+ DBG_OBJ_SET_NUM_O (widget, "parentRef", widget->parentRef);
tbInfo->leftFloatsGB->put (vloat);
if (wasAllocated (generatingBlock)) {
@@ -1384,6 +1385,7 @@ void OutOfFlowMgr::addWidgetOOF (Widget *widget, Textblock *generatingBlock,
"widget", vloat->getWidget ());
widget->parentRef = createRefRightFloat (rightFloatsAll->size() - 1);
+ DBG_OBJ_SET_NUM_O (widget, "parentRef", widget->parentRef);
tbInfo->rightFloatsGB->put (vloat);
if (wasAllocated (generatingBlock)) {
diff --git a/dw/textblock.cc b/dw/textblock.cc
index dd0aa100..8c2accb4 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -2352,6 +2352,7 @@ void Textblock::addWidget (core::Widget *widget, core::style::Style *style)
* (parent_ref is actually undefined, but likely has the value 0.) At the,
* end of this function, the correct value is assigned. */
widget->parentRef = -1;
+ DBG_OBJ_SET_NUM_O (widget, "parentRef", widget->parentRef);
widget->setStyle (style);
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc
index 9a2a1a7c..4b181152 100644
--- a/dw/textblock_linebreaking.cc
+++ b/dw/textblock_linebreaking.cc
@@ -842,9 +842,8 @@ int Textblock::wrapWordInFlow (int wordIndex, bool wrapAll)
if (wordIndex >= firstWordWithoutLine) {
word->content.widget->parentRef =
OutOfFlowMgr::createRefNormalFlow (lines->size ());
- PRINTF ("The %s %p is assigned parentRef = %d.\n",
- word->content.widget->getClassName(), word->content.widget,
- word->content.widget->parentRef);
+ DBG_OBJ_SET_NUM_O (word->content.widget, "parentRef",
+ word->content.widget->parentRef);
}
}
@@ -1509,6 +1508,8 @@ void Textblock::accumulateWordForLine (int lineIndex, int wordIndex)
word->content.widget->parentRef =
OutOfFlowMgr::createRefNormalFlow (lineIndex);
+ DBG_OBJ_SET_NUM_O (word->content.widget, "parentRef",
+ word->content.widget->parentRef);
} else {
borderAscent = marginAscent = word->size.ascent;
borderDescent = marginDescent = word->size.descent;
diff --git a/dw/widget.cc b/dw/widget.cc
index 1e7a05d1..ccded039 100644
--- a/dw/widget.cc
+++ b/dw/widget.cc
@@ -480,12 +480,6 @@ void Widget::sizeRequest (Requisition *requisition)
enterSizeRequest ();
- //printf ("The %stop-level %s %p with parentRef = %d: needsResize: %s, "
- // "resizeQueued = %s\n",
- // parent ? "non-" : "", getClassName(), this, parentRef,
- // needsResize () ? "true" : "false",
- // resizeQueued () ? "true" : "false");
-
if (resizeQueued ()) {
// This method is called outside of Layout::resizeIdle.
setFlags (NEEDS_RESIZE);
@@ -507,9 +501,6 @@ void Widget::sizeRequest (Requisition *requisition)
} else
*requisition = this->requisition;
- //printf (" ==> Result: %d x (%d + %d)\n",
- // requisition->width, requisition->ascent, requisition->descent);
-
leaveSizeRequest ();
DBG_OBJ_LEAVE ();