summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/LayoutState.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-10-22 13:02:20 +0100
committerBen Murdoch <benm@google.com>2010-10-26 15:21:41 +0100
commita94275402997c11dd2e778633dacf4b7e630a35d (patch)
treee66f56c67e3b01f22c9c23cd932271ee9ac558ed /WebCore/rendering/LayoutState.h
parent09e26c78506587b3f5d930d7bc72a23287ffbec0 (diff)
downloadexternal_webkit-a94275402997c11dd2e778633dacf4b7e630a35d.zip
external_webkit-a94275402997c11dd2e778633dacf4b7e630a35d.tar.gz
external_webkit-a94275402997c11dd2e778633dacf4b7e630a35d.tar.bz2
Merge WebKit at r70209: Initial merge by Git
Change-Id: Id23a68efa36e9d1126bcce0b137872db00892c8e
Diffstat (limited to 'WebCore/rendering/LayoutState.h')
-rw-r--r--WebCore/rendering/LayoutState.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/WebCore/rendering/LayoutState.h b/WebCore/rendering/LayoutState.h
index ca4cbfb..cca3e42 100644
--- a/WebCore/rendering/LayoutState.h
+++ b/WebCore/rendering/LayoutState.h
@@ -42,6 +42,7 @@ public:
LayoutState()
: m_clipped(false)
, m_pageHeight(0)
+ , m_pageHeightChanged(false)
, m_columnInfo(0)
, m_next(0)
#ifndef NDEBUG
@@ -50,7 +51,7 @@ public:
{
}
- LayoutState(LayoutState*, RenderBox*, const IntSize& offset, int pageHeight, ColumnInfo*);
+ LayoutState(LayoutState*, RenderBox*, const IntSize& offset, int pageHeight, bool pageHeightChanged, ColumnInfo*);
LayoutState(RenderObject*);
void destroy(RenderArena*);
@@ -67,6 +68,9 @@ public:
int pageY(int childY) const;
void addForcedColumnBreak(int childY);
+ bool pageHeight() const { return m_pageHeight; }
+ bool pageHeightChanged() const { return m_pageHeightChanged; }
+
private:
// The normal operator new is disallowed.
void* operator new(size_t) throw();
@@ -81,6 +85,7 @@ public:
// This is a total delta accumulated from the root.
int m_pageHeight; // The current page height for the pagination model that encloses us.
+ bool m_pageHeightChanged; // If our page height has changed, this will force all blocks to relayout.
IntSize m_pageOffset; // The offset of the start of the first page in the nearest enclosing pagination model.
ColumnInfo* m_columnInfo; // If the enclosing pagination model is a column model, then this will store column information for easy retrieval/manipulation.