summaryrefslogtreecommitdiffstats
path: root/khtml/rendering/render_flow.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-02 18:38:22 -0500
committerSlávek Banko <slavek.banko@axis.cz>2015-12-23 02:22:50 +0100
commitf3635faf14a7521e7e9263f197d071a98bdda171 (patch)
tree2b4fc2f411b813c3fbd03ac51dc091220ea580d3 /khtml/rendering/render_flow.cpp
parente25c6429ea1c1578452eb329a7a03457d57948f0 (diff)
downloadtdelibs-f3635faf14a7521e7e9263f197d071a98bdda171.tar.gz
tdelibs-f3635faf14a7521e7e9263f197d071a98bdda171.zip
Don't use insane (negative) layout values if layout engine does not allocate sufficient space for a text string
This resolves Bug 1950 Make most debugging statements work again Add new debugging statements Fix several annoying build warnings (cherry picked from commit cc5fd88be313142d3996c81f8bdfc1290485858c)
Diffstat (limited to 'khtml/rendering/render_flow.cpp')
-rw-r--r--khtml/rendering/render_flow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/khtml/rendering/render_flow.cpp b/khtml/rendering/render_flow.cpp
index ae579bd46..6fda24bb4 100644
--- a/khtml/rendering/render_flow.cpp
+++ b/khtml/rendering/render_flow.cpp
@@ -358,6 +358,9 @@ int RenderFlow::rightmostPosition(bool includeOverflowInterior, bool includeSelf
relativePositionOffset(right, y);
}
+#ifdef DEBUG_LAYOUT
+ kdDebug(6040) << renderName() << "(RenderFlow)::rightmostPosition(" << includeOverflowInterior << "," << includeSelf << ") Rightmost position: " << right << endl;
+#endif
return right;
}