From e0d453637f1bc58e518a60882c1bdd04ae41d353 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Mon, 12 Oct 2009 10:46:08 +0100 Subject: Merge webkit.org at R49305 : Update rendering to use new overflow methods. See http://trac.webkit.org/changeset?new=47440 Change-Id: I140b6be130c1fb175c653f5ba2ba19fdc323bbc9 --- WebCore/rendering/RenderBlockLineLayout.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'WebCore/rendering/RenderBlockLineLayout.cpp') diff --git a/WebCore/rendering/RenderBlockLineLayout.cpp b/WebCore/rendering/RenderBlockLineLayout.cpp index 538225d..b2b14cd 100644 --- a/WebCore/rendering/RenderBlockLineLayout.cpp +++ b/WebCore/rendering/RenderBlockLineLayout.cpp @@ -970,7 +970,13 @@ void RenderBlock::layoutInlineChildren(bool relayoutChildren, int& repaintTop, i setWidth(min(width(), maxWidth)); m_minPrefWidth = min(m_minPrefWidth, maxWidth); m_maxPrefWidth = min(m_maxPrefWidth, maxWidth); - m_overflowWidth = min(m_overflowWidth, maxWidth); + + IntRect overflow = layoutOverflowRect(); + if (overflow.width() > maxWidth) { + overflow.setWidth(maxWidth); + clearLayoutOverflow(); + addLayoutOverflow(overflow); + } } } } -- cgit v1.1