diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2013-09-13 12:51:20 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-19 20:50:05 +0200 |
commit | d441d6f39bb846989d95bcf5caf387b42414718d (patch) | |
tree | e367e64a75991c554930278175d403c072de6bb8 /Source/WebCore/rendering/RenderMultiColumnBlock.h | |
parent | 0060b2994c07842f4c59de64b5e3e430525c4b90 (diff) | |
download | qtwebkit-d441d6f39bb846989d95bcf5caf387b42414718d.tar.gz |
Import Qt5x2 branch of QtWebkit for Qt 5.2
Importing a new snapshot of webkit.
Change-Id: I2d01ad12cdc8af8cb015387641120a9d7ea5f10c
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/WebCore/rendering/RenderMultiColumnBlock.h')
-rw-r--r-- | Source/WebCore/rendering/RenderMultiColumnBlock.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/Source/WebCore/rendering/RenderMultiColumnBlock.h b/Source/WebCore/rendering/RenderMultiColumnBlock.h index 58850c334..f4408ae98 100644 --- a/Source/WebCore/rendering/RenderMultiColumnBlock.h +++ b/Source/WebCore/rendering/RenderMultiColumnBlock.h @@ -35,21 +35,26 @@ class RenderMultiColumnFlowThread; class RenderMultiColumnBlock : public RenderBlock { public: - RenderMultiColumnBlock(Node*); - - LayoutUnit columnHeight() const { return m_columnHeight; } - void setColumnHeight(LayoutUnit columnHeight) { m_columnHeight = columnHeight; } + RenderMultiColumnBlock(Element*); + + LayoutUnit columnHeightAvailable() const { return m_columnHeightAvailable; } LayoutUnit columnWidth() const { return m_columnWidth; } unsigned columnCount() const { return m_columnCount; } RenderMultiColumnFlowThread* flowThread() const { return m_flowThread; } + bool requiresBalancing() const { return !m_columnHeightAvailable; } + private: virtual bool isRenderMultiColumnBlock() const { return true; } virtual const char* renderName() const; + virtual RenderObject* layoutSpecialExcludedChild(bool relayoutChildren) OVERRIDE; + + virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE; + virtual bool updateLogicalWidthAndColumnWidth() OVERRIDE; virtual void checkForPaginationLogicalHeightChange(LayoutUnit& pageLogicalHeight, bool& pageLogicalHeightChanged, bool& hasSpecifiedPageLogicalHeight) OVERRIDE; virtual bool relayoutForPagination(bool hasSpecifiedPageLogicalHeight, LayoutUnit pageLogicalHeight, LayoutStateMaintainer&) OVERRIDE; @@ -64,18 +69,19 @@ private: unsigned m_columnCount; // The default column count/width that are based off our containing block width. These values represent only the default, LayoutUnit m_columnWidth; // since a multi-column block that is split across variable width pages or regions will have different column counts and widths in each. // These values will be cached (eventually) for multi-column blocks. - LayoutUnit m_columnHeight; // The current column height. + LayoutUnit m_columnHeightAvailable; // Total height available to columns, or 0 if auto. + bool m_inBalancingPass; // Set when relayouting for column balancing. }; inline RenderMultiColumnBlock* toRenderMultiColumnBlock(RenderObject* object) { - ASSERT(!object || object->isRenderMultiColumnBlock()); + ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderMultiColumnBlock()); return static_cast<RenderMultiColumnBlock*>(object); } inline const RenderMultiColumnBlock* toRenderMultiColumnBlock(const RenderObject* object) { - ASSERT(!object || object->isRenderMultiColumnBlock()); + ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderMultiColumnBlock()); return static_cast<const RenderMultiColumnBlock*>(object); } |