Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(644)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutState.h

Issue 2079603002: Handle nested theads correctly when paginated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bug 620456 Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutState.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutState.h b/third_party/WebKit/Source/core/layout/LayoutState.h
index 8be94f2d8dcb946deebdfa3564c08241029ad4c1..2bdbe966bd6f60e268c2850dc9c43b68d90c6941 100644
--- a/third_party/WebKit/Source/core/layout/LayoutState.h
+++ b/third_party/WebKit/Source/core/layout/LayoutState.h
@@ -80,6 +80,9 @@ public:
// direction (so an x-offset in vertical text and a y-offset for horizontal text).
LayoutUnit pageLogicalOffset(const LayoutBox&, const LayoutUnit& childLogicalOffset) const;
+ LayoutUnit heightOffsetForTableHeaders() const { return m_heightOffsetForTableHeaders; };
+ void setHeightOffsetForTableHeaders(LayoutUnit offset) { m_heightOffsetForTableHeaders = offset; };
+
const LayoutSize& layoutOffset() const { return m_layoutOffset; }
const LayoutSize& pageOffset() const { return m_pageOffset; }
LayoutUnit pageLogicalHeight() const { return m_pageLogicalHeight; }
@@ -108,6 +111,10 @@ private:
// The current page height for the pagination model that encloses us.
LayoutUnit m_pageLogicalHeight;
+
+ // The height we need to make available for repeating table headers in paginated layout.
+ LayoutUnit m_heightOffsetForTableHeaders;
+
// The offset of the start of the first page in the nearest enclosing pagination model.
LayoutSize m_pageOffset;

Powered by Google App Engine
This is Rietveld 408576698