diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-10 19:10:20 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-10 19:10:20 +0200 |
commit | 284837daa07b29d6a63a748544a90b1f5842ac5c (patch) | |
tree | ecd258180bde91fe741e0cfd2638beb3c6da7e8e /Source/WebCore/rendering/RenderMultiColumnBlock.cpp | |
parent | 2e2ba8ff45915f40ed3e014101269c175f2a89a0 (diff) | |
download | qtwebkit-284837daa07b29d6a63a748544a90b1f5842ac5c.tar.gz |
Imported WebKit commit 68645295d2e3e09af2c942f092556f06aa5f8b0d (http://svn.webkit.org/repository/webkit/trunk@128073)
New snapshot
Diffstat (limited to 'Source/WebCore/rendering/RenderMultiColumnBlock.cpp')
-rw-r--r-- | Source/WebCore/rendering/RenderMultiColumnBlock.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Source/WebCore/rendering/RenderMultiColumnBlock.cpp b/Source/WebCore/rendering/RenderMultiColumnBlock.cpp index 9f6bdefb4..64271a329 100644 --- a/Source/WebCore/rendering/RenderMultiColumnBlock.cpp +++ b/Source/WebCore/rendering/RenderMultiColumnBlock.cpp @@ -78,23 +78,19 @@ bool RenderMultiColumnBlock::recomputeLogicalWidth() return relayoutChildren; } -void RenderMultiColumnBlock::checkForPaginationLogicalHeightChange(LayoutUnit& pageLogicalHeight, bool& pageLogicalHeightChanged, bool& hasSpecifiedPageLogicalHeight) +void RenderMultiColumnBlock::checkForPaginationLogicalHeightChange(LayoutUnit& /*pageLogicalHeight*/, bool& /*pageLogicalHeightChanged*/, bool& /*hasSpecifiedPageLogicalHeight*/) { - // We need to go ahead and set our explicit page height if one exists, so that we can - // avoid doing multiple layout passes. + // We don't actually update any of the variables. We just subclassed to adjust our column height. computeLogicalHeight(); LayoutUnit newContentLogicalHeight = contentLogicalHeight(); if (newContentLogicalHeight > ZERO_LAYOUT_UNIT) { - pageLogicalHeight = newContentLogicalHeight; - hasSpecifiedPageLogicalHeight = true; + // The regions will be invalidated when we lay them out and they change size to + // the new column height. + if (columnHeight() != newContentLogicalHeight) + setColumnHeight(newContentLogicalHeight); } setLogicalHeight(ZERO_LAYOUT_UNIT); - if (columnHeight() != pageLogicalHeight && everHadLayout()) { - setColumnHeight(pageLogicalHeight); - pageLogicalHeightChanged = true; - } - // Set up our column sets. ensureColumnSets(); } |