OLD | NEW |
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 26 matching lines...) Expand all Loading... |
37 class RenderBox; | 37 class RenderBox; |
38 class RenderFlowThread; | 38 class RenderFlowThread; |
39 class RenderObject; | 39 class RenderObject; |
40 class RenderView; | 40 class RenderView; |
41 | 41 |
42 class LayoutState { | 42 class LayoutState { |
43 WTF_MAKE_NONCOPYABLE(LayoutState); | 43 WTF_MAKE_NONCOPYABLE(LayoutState); |
44 public: | 44 public: |
45 // Constructor for root LayoutState created by RenderView | 45 // Constructor for root LayoutState created by RenderView |
46 LayoutState(LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged, Ren
derView&); | 46 LayoutState(LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged, Ren
derView&); |
47 // Constructor for sub-tree Layout and RenderTableSections | 47 // Constructor for sub-tree layout |
48 explicit LayoutState(RenderObject& root); | 48 explicit LayoutState(RenderObject& root); |
49 | 49 |
50 LayoutState(RenderBox&, const LayoutSize& offset, LayoutUnit pageLogicalHeig
ht = 0, bool pageHeightLogicalChanged = false, ColumnInfo* = 0, bool containingB
lockLogicalWidthChanged = false); | 50 LayoutState(RenderBox&, const LayoutSize& offset, LayoutUnit pageLogicalHeig
ht = 0, bool pageHeightLogicalChanged = false, ColumnInfo* = 0, bool containingB
lockLogicalWidthChanged = false); |
51 | 51 |
52 ~LayoutState(); | 52 ~LayoutState(); |
53 | 53 |
54 void clearPaginationInformation(); | 54 void clearPaginationInformation(); |
55 bool isPaginatingColumns() const { return m_columnInfo; } | 55 bool isPaginatingColumns() const { return m_columnInfo; } |
56 bool isPaginated() const { return m_isPaginated; } | 56 bool isPaginated() const { return m_isPaginated; } |
57 | 57 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 LayoutUnit m_pageLogicalHeight; | 101 LayoutUnit m_pageLogicalHeight; |
102 // The offset of the start of the first page in the nearest enclosing pagina
tion model. | 102 // The offset of the start of the first page in the nearest enclosing pagina
tion model. |
103 LayoutSize m_pageOffset; | 103 LayoutSize m_pageOffset; |
104 | 104 |
105 RenderObject& m_renderer; | 105 RenderObject& m_renderer; |
106 }; | 106 }; |
107 | 107 |
108 } // namespace blink | 108 } // namespace blink |
109 | 109 |
110 #endif // LayoutState_h | 110 #endif // LayoutState_h |
OLD | NEW |