Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutTableSection.h |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutTableSection.h b/third_party/WebKit/Source/core/layout/LayoutTableSection.h |
| index 8ff2023691d2d66cbccff14fe388ccd92f8bac9f..f834458d28a381cd4906c130c31beafbe2773ca1 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutTableSection.h |
| +++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.h |
| @@ -295,7 +295,7 @@ class CORE_EXPORT LayoutTableSection final : public LayoutTableBoxComponent { |
| TransformState&, |
| VisualRectFlags = kDefaultVisualRectFlags) const override; |
| - bool IsRepeatingHeaderGroup() const; |
| + bool IsRepeatingHeaderGroup() const { return is_repeating_header_group_; }; |
| void UpdateLayout() override; |
| @@ -304,6 +304,10 @@ class CORE_EXPORT LayoutTableSection final : public LayoutTableBoxComponent { |
| return CellSpan(0, Table()->NumEffectiveColumns()); |
| } |
| + void SetHeaderGroupShouldRepeat() { |
|
mstensho (USE GERRIT)
2017/05/22 10:40:44
DetermineIfHeaderGroupShouldRepeat()?
rhogan
2017/05/22 18:06:04
Done.
|
| + is_repeating_header_group_ = HeaderGroupShouldRepeat(); |
| + } |
| + |
| protected: |
| void StyleDidChange(StyleDifference, const ComputedStyle* old_style) override; |
| bool NodeAtPoint(HitTestResult&, |
| @@ -393,6 +397,8 @@ class CORE_EXPORT LayoutTableSection final : public LayoutTableBoxComponent { |
| bool PaintedOutputOfObjectHasNoEffectRegardlessOfSize() const override; |
| + bool HeaderGroupShouldRepeat() const; |
| + |
| struct TableGridRow { |
| DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| @@ -455,6 +461,9 @@ class CORE_EXPORT LayoutTableSection final : public LayoutTableBoxComponent { |
| // Whether any cell spans multiple rows or cols. |
| bool has_spanning_cells_; |
| + |
| + // Header group should be painted on every page. |
| + bool is_repeating_header_group_; |
| }; |
| DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, IsTableSection()); |