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

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

Issue 2584143003: Repeat footers in paginated context (Closed)
Patch Set: bug 656232 Created 3 years, 8 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/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_;

Powered by Google App Engine
This is Rietveld 408576698