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

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

Issue 2455733003: Provide a dedicated getter for the offset to a repeatable THEAD. (Closed)
Patch Set: code review Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTable.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutTable.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.h b/third_party/WebKit/Source/core/layout/LayoutTable.h
index ee2101638cb4a22199a855e3d15b9b5477e1fae5..adc7a6be3d99262fb577a9743930eba1a6a9ec7d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.h
@@ -414,6 +414,13 @@ class CORE_EXPORT LayoutTable final : public LayoutBlock {
bool isLogicalWidthAuto() const;
+ // When table headers are repeated, we need to know the offset from the block
+ // start of the fragmentation context to the first occurrence of the table
+ // header.
+ LayoutUnit blockOffsetToFirstRepeatableHeader() const {
+ return m_blockOffsetToFirstRepeatableHeader;
+ }
+
const char* name() const override { return "LayoutTable"; }
// Whether a table has opaque foreground depends on many factors, e.g. border
@@ -564,6 +571,8 @@ class CORE_EXPORT LayoutTable final : public LayoutBlock {
short m_vSpacing;
int m_borderStart;
int m_borderEnd;
+
+ LayoutUnit m_blockOffsetToFirstRepeatableHeader;
};
inline LayoutTableSection* LayoutTable::topSection() const {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698