diff options
author | Steve Block <steveblock@google.com> | 2009-10-12 10:46:08 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2009-10-20 00:45:10 +0100 |
commit | e0d453637f1bc58e518a60882c1bdd04ae41d353 (patch) | |
tree | ea61f1813bc8a92c69bc70293f1a3edb03e9c3a3 /WebCore/rendering | |
parent | 79d347c0fd069f65f8193cc0a1c041b39441c044 (diff) | |
download | external_webkit-e0d453637f1bc58e518a60882c1bdd04ae41d353.zip external_webkit-e0d453637f1bc58e518a60882c1bdd04ae41d353.tar.gz external_webkit-e0d453637f1bc58e518a60882c1bdd04ae41d353.tar.bz2 |
Merge webkit.org at R49305 : Update rendering to use new overflow methods.
See http://trac.webkit.org/changeset?new=47440
Change-Id: I140b6be130c1fb175c653f5ba2ba19fdc323bbc9
Diffstat (limited to 'WebCore/rendering')
-rw-r--r-- | WebCore/rendering/RenderBlockLineLayout.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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); + } } } } |