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

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

Issue 2882043002: Update our treatment of repeating headers in tables (Closed)
Patch Set: bug 720620 Created 3 years, 7 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 dbf781f6daacd605a597521c0978d7364f3f0fb0..c6047804fa10697e4e1634c1a960f2b1de3c0b13 100644
--- a/third_party/WebKit/Source/core/layout/LayoutState.h
+++ b/third_party/WebKit/Source/core/layout/LayoutState.h
@@ -83,6 +83,13 @@ class LayoutState {
LayoutUnit PageLogicalOffset(const LayoutBox&,
const LayoutUnit& child_logical_offset) const;
+ LayoutUnit HeightOffsetForTableHeaders() const {
+ return height_offset_for_table_headers_;
+ };
mstensho (USE GERRIT) 2017/05/22 10:40:44 Drop the semicolon here, perhaps?
rhogan 2017/05/22 18:06:04 Done.
+ void SetHeightOffsetForTableHeaders(LayoutUnit offset) {
+ height_offset_for_table_headers_ = offset;
+ };
mstensho (USE GERRIT) 2017/05/22 10:40:44 And here
rhogan 2017/05/22 18:06:04 Done.
+
const LayoutSize& PaginationOffset() const { return pagination_offset_; }
bool ContainingBlockLogicalWidthChanged() const {
return containing_block_logical_width_changed_;
@@ -113,6 +120,10 @@ class LayoutState {
// relative positioning or scroll offsets.
LayoutSize pagination_offset_;
+ // The height we need to make available for repeating table headers in
+ // paginated layout.
+ LayoutUnit height_offset_for_table_headers_;
+
LayoutObject& layout_object_;
};

Powered by Google App Engine
This is Rietveld 408576698