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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutState.h

Issue 2545243002: Don't repeat thead if the first row exceeds the height of the page (Closed)
Patch Set: bug 669690 Created 4 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 ~LayoutState(); 77 ~LayoutState();
78 78
79 bool isPaginated() const { return m_isPaginated; } 79 bool isPaginated() const { return m_isPaginated; }
80 80
81 // The page logical offset is the object's offset from the top of the page in 81 // The page logical offset is the object's offset from the top of the page in
82 // the page progression direction (so an x-offset in vertical text and a 82 // the page progression direction (so an x-offset in vertical text and a
83 // y-offset for horizontal text). 83 // y-offset for horizontal text).
84 LayoutUnit pageLogicalOffset(const LayoutBox&, 84 LayoutUnit pageLogicalOffset(const LayoutBox&,
85 const LayoutUnit& childLogicalOffset) const; 85 const LayoutUnit& childLogicalOffset) const;
86 86
87 LayoutUnit heightOffsetForTableHeaders() const {
88 return m_heightOffsetForTableHeaders;
89 };
90 void setHeightOffsetForTableHeaders(LayoutUnit offset) {
91 m_heightOffsetForTableHeaders = offset;
92 };
93
94 const LayoutSize& paginationOffset() const { return m_paginationOffset; } 87 const LayoutSize& paginationOffset() const { return m_paginationOffset; }
95 bool containingBlockLogicalWidthChanged() const { 88 bool containingBlockLogicalWidthChanged() const {
96 return m_containingBlockLogicalWidthChanged; 89 return m_containingBlockLogicalWidthChanged;
97 } 90 }
98 91
99 bool paginationStateChanged() const { return m_paginationStateChanged; } 92 bool paginationStateChanged() const { return m_paginationStateChanged; }
100 void setPaginationStateChanged() { m_paginationStateChanged = true; } 93 void setPaginationStateChanged() { m_paginationStateChanged = true; }
101 94
102 LayoutState* next() const { return m_next; } 95 LayoutState* next() const { return m_next; }
103 96
(...skipping 10 matching lines...) Expand all
114 bool m_paginationStateChanged : 1; 107 bool m_paginationStateChanged : 1;
115 108
116 LayoutFlowThread* m_flowThread; 109 LayoutFlowThread* m_flowThread;
117 110
118 LayoutState* m_next; 111 LayoutState* m_next;
119 112
120 // x/y offset from the logical top / start of the first page. Does not include 113 // x/y offset from the logical top / start of the first page. Does not include
121 // relative positioning or scroll offsets. 114 // relative positioning or scroll offsets.
122 LayoutSize m_paginationOffset; 115 LayoutSize m_paginationOffset;
123 116
124 // The height we need to make available for repeating table headers in
125 // paginated layout.
126 LayoutUnit m_heightOffsetForTableHeaders;
127
128 LayoutObject& m_layoutObject; 117 LayoutObject& m_layoutObject;
129 }; 118 };
130 119
131 } // namespace blink 120 } // namespace blink
132 121
133 #endif // LayoutState_h 122 #endif // LayoutState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698