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 7d0ffa078a7cbd2a620cd2a3d3a513cbc42e709f..2083590b13609e0f09b0c7b8628529262f64a5e0 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTable.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.h |
@@ -253,6 +253,18 @@ class CORE_EXPORT LayoutTable final : public LayoutBlock { |
effective_column_positions_[index] = position; |
} |
+ void SetPositionOfRepeatingFooterGroupOnPage(unsigned page, |
+ LayoutUnit position) const { |
mstensho (USE GERRIT)
2017/04/24 11:57:16
Doesn't really look like a const method to me.
|
+ position_of_repeating_footer_group_on_page_.Grow(page + 1); |
+ position_of_repeating_footer_group_on_page_[page] = position; |
+ } |
+ const LayoutUnit GetPositionOfRepeatingFooterGroupOnPage(int page) const { |
mstensho (USE GERRIT)
2017/04/24 11:57:16
The previous method uses unsigned. This one uses i
|
+ return position_of_repeating_footer_group_on_page_[page]; |
+ } |
+ const Vector<LayoutUnit>& PositionOfRepeatingFooterGroupOnPage() const { |
+ return position_of_repeating_footer_group_on_page_; |
+ } |
+ |
LayoutTableSection* Header() const { |
// TODO(mstensho): We should ideally DCHECK(!needsSectionRecalc()) here, but |
// we currently cannot, due to crbug.com/693212 |
@@ -441,7 +453,7 @@ class CORE_EXPORT LayoutTable final : public LayoutBlock { |
return collapsed_borders_; |
} |
- void SubtractCaptionRect(LayoutRect&) const; |
+ void SubtractCaptionRect(LayoutRect&, bool after_only = false) const; |
bool IsLogicalWidthAuto() const; |
@@ -551,6 +563,8 @@ class CORE_EXPORT LayoutTable final : public LayoutBlock { |
// numEffectiveColumns() + 1. |
mutable Vector<int> effective_column_positions_; |
+ mutable Vector<LayoutUnit> position_of_repeating_footer_group_on_page_; |
+ |
// The captions associated with this object. |
mutable Vector<LayoutTableCaption*> captions_; |