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

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

Issue 2454083002: Need a deep layout pass when becoming (un)fragmented. (Closed)
Patch Set: Created 4 years, 1 month 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 }; 97 };
98 98
99 const LayoutSize& layoutOffset() const { return m_layoutOffset; } 99 const LayoutSize& layoutOffset() const { return m_layoutOffset; }
100 const LayoutSize& pageOffset() const { return m_pageOffset; } 100 const LayoutSize& pageOffset() const { return m_pageOffset; }
101 LayoutUnit pageLogicalHeight() const { return m_pageLogicalHeight; } 101 LayoutUnit pageLogicalHeight() const { return m_pageLogicalHeight; }
102 bool pageLogicalHeightChanged() const { return m_pageLogicalHeightChanged; } 102 bool pageLogicalHeightChanged() const { return m_pageLogicalHeightChanged; }
103 bool containingBlockLogicalWidthChanged() const { 103 bool containingBlockLogicalWidthChanged() const {
104 return m_containingBlockLogicalWidthChanged; 104 return m_containingBlockLogicalWidthChanged;
105 } 105 }
106 106
107 bool paginationStateChanged() const { return m_paginationStateChanged; }
108 void setPaginationStateChanged() { m_paginationStateChanged = true; }
109
107 LayoutState* next() const { return m_next; } 110 LayoutState* next() const { return m_next; }
108 111
109 LayoutFlowThread* flowThread() const { return m_flowThread; } 112 LayoutFlowThread* flowThread() const { return m_flowThread; }
110 113
111 LayoutObject& layoutObject() const { return m_layoutObject; } 114 LayoutObject& layoutObject() const { return m_layoutObject; }
112 115
113 private: 116 private:
114 // Do not add anything apart from bitfields until after m_flowThread. See 117 // Do not add anything apart from bitfields until after m_flowThread. See
115 // https://bugs.webkit.org/show_bug.cgi?id=100173 118 // https://bugs.webkit.org/show_bug.cgi?id=100173
116 bool m_isPaginated : 1; 119 bool m_isPaginated : 1;
117 // If our page height has changed, this will force all blocks to relayout. 120 // If our page height has changed, this will force all blocks to relayout.
118 bool m_pageLogicalHeightChanged : 1; 121 bool m_pageLogicalHeightChanged : 1;
119 bool m_containingBlockLogicalWidthChanged : 1; 122 bool m_containingBlockLogicalWidthChanged : 1;
123 bool m_paginationStateChanged : 1;
120 124
121 LayoutFlowThread* m_flowThread; 125 LayoutFlowThread* m_flowThread;
122 126
123 LayoutState* m_next; 127 LayoutState* m_next;
124 128
125 // x/y offset from container. Does not include relative positioning or scroll 129 // x/y offset from container. Does not include relative positioning or scroll
126 // offsets. 130 // offsets.
127 LayoutSize m_layoutOffset; 131 LayoutSize m_layoutOffset;
128 132
129 // The current page height for the pagination model that encloses us. 133 // The current page height for the pagination model that encloses us.
130 LayoutUnit m_pageLogicalHeight; 134 LayoutUnit m_pageLogicalHeight;
131 135
132 // The height we need to make available for repeating table headers in 136 // The height we need to make available for repeating table headers in
133 // paginated layout. 137 // paginated layout.
134 LayoutUnit m_heightOffsetForTableHeaders; 138 LayoutUnit m_heightOffsetForTableHeaders;
135 139
136 // The offset of the start of the first page in the nearest enclosing 140 // The offset of the start of the first page in the nearest enclosing
137 // pagination model. 141 // pagination model.
138 LayoutSize m_pageOffset; 142 LayoutSize m_pageOffset;
139 143
140 LayoutObject& m_layoutObject; 144 LayoutObject& m_layoutObject;
141 }; 145 };
142 146
143 } // namespace blink 147 } // namespace blink
144 148
145 #endif // LayoutState_h 149 #endif // LayoutState_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698