Chromium Code Reviews| 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..c9e0f6a03850dfbdd04a88535d24af5b331d1c71 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 offsetToFirstRepeatableHeader() const { |
|
eae
2016/10/27 17:05:10
How about blockOffsetToFirstRepeatableHeader to ma
mstensho (USE GERRIT)
2016/10/27 20:25:47
Done.
|
| + return m_offsetToFirstRepeatableHeader; |
| + } |
| + |
| 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_offsetToFirstRepeatableHeader; |
| }; |
| inline LayoutTableSection* LayoutTable::topSection() const { |