From b5336af0468865100aaeb0cdd83bf8382073c6b2 Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Sat, 5 Jul 2014 12:34:53 +0200 Subject: Applied new RTFL macros (ENTER, LEAVE) to layout.cc. --- dw/layout.cc | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'dw/layout.cc') diff --git a/dw/layout.cc b/dw/layout.cc index 3cc13980..8bd255c6 100644 --- a/dw/layout.cc +++ b/dw/layout.cc @@ -848,8 +848,7 @@ void Layout::setBgImage (style::StyleImage *bgImage, void Layout::resizeIdle () { - DBG_OBJ_MSG ("resize", 0, "resizeIdle"); - DBG_OBJ_MSG_START (); + DBG_OBJ_ENTER0 ("resize", 0, "resizeIdle"); enterResizeIdle (); @@ -941,7 +940,7 @@ void Layout::resizeIdle () DBG_OBJ_MSGF ("resize", 1, "after resizeIdle: resizeIdleId = %d", resizeIdleId); - DBG_OBJ_MSG_END (); + DBG_OBJ_LEAVE (); leaveResizeIdle (); } @@ -984,9 +983,8 @@ void Layout::queueDrawExcept (int x, int y, int width, int height, void Layout::queueResize (bool extremesChanged) { - DBG_OBJ_MSGF ("resize", 0, "queueResize (%s)", - extremesChanged ? "true" : "false"); - DBG_OBJ_MSG_START (); + DBG_OBJ_ENTER ("resize", 0, "queueResize", "%s", + extremesChanged ? "true" : "false"); if (resizeIdleId == -1) { view->cancelQueueDraw (); @@ -997,7 +995,7 @@ void Layout::queueResize (bool extremesChanged) emitter.emitResizeQueued (extremesChanged); - DBG_OBJ_MSG_END (); + DBG_OBJ_LEAVE (); } @@ -1268,9 +1266,8 @@ void Layout::scrollPosChanged (View *view, int x, int y) */ void Layout::viewportSizeChanged (View *view, int width, int height) { - DBG_OBJ_MSGF ("resize", 0, "viewportSizeChanged (%p, %d, %d)", + DBG_OBJ_ENTER ("resize", 0, "viewportSizeChanged", "%p, %d, %d", view, width, height); - DBG_OBJ_MSG_START (); /* If the width has become higher, we test again, whether the vertical * scrollbar (so to speak) can be hidden again. */ @@ -1298,20 +1295,19 @@ void Layout::viewportSizeChanged (View *view, int width, int height) containerSizeChanged (); - DBG_OBJ_MSG_END (); + DBG_OBJ_LEAVE (); } void Layout::containerSizeChanged () { - DBG_OBJ_MSG ("resize", 0, "containerSizeChanged ()"); - DBG_OBJ_MSG_START (); + DBG_OBJ_ENTER0 ("resize", 0, "containerSizeChanged"); if (topLevel) { topLevel->containerSizeChanged (); queueResize (true); } - DBG_OBJ_MSG_END (); + DBG_OBJ_LEAVE (); } } // namespace core -- cgit v1.2.3