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 18 matching lines...) Expand all Loading... |
29 #include "core/rendering/ColumnInfo.h" | 29 #include "core/rendering/ColumnInfo.h" |
30 #include "platform/geometry/LayoutRect.h" | 30 #include "platform/geometry/LayoutRect.h" |
31 #include "wtf/HashMap.h" | 31 #include "wtf/HashMap.h" |
32 #include "wtf/Noncopyable.h" | 32 #include "wtf/Noncopyable.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 class ForceHorriblySlowRectMapping; | 36 class ForceHorriblySlowRectMapping; |
37 class RenderBox; | 37 class RenderBox; |
38 class RenderObject; | 38 class RenderObject; |
| 39 class RenderInline; |
39 class RenderView; | 40 class RenderView; |
40 | 41 |
41 class LayoutState { | 42 class LayoutState { |
42 WTF_MAKE_NONCOPYABLE(LayoutState); | 43 WTF_MAKE_NONCOPYABLE(LayoutState); |
43 public: | 44 public: |
44 // Constructor for root LayoutState created by RenderView | 45 // Constructor for root LayoutState created by RenderView |
45 LayoutState(LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged, Ren
derView&); | 46 LayoutState(LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged, Ren
derView&); |
46 // Constructor for sub-tree Layout and RenderTableSections | 47 // Constructor for sub-tree Layout and RenderTableSections |
47 explicit LayoutState(RenderObject& root); | 48 explicit LayoutState(RenderObject& root); |
48 | 49 |
49 LayoutState(RenderBox&, const LayoutSize& offset, LayoutUnit pageLogicalHeig
ht = 0, bool pageHeightLogicalChanged = false, ColumnInfo* = 0); | 50 LayoutState(RenderBox&, const LayoutSize& offset, LayoutUnit pageLogicalHeig
ht = 0, bool pageHeightLogicalChanged = false, ColumnInfo* = 0); |
| 51 LayoutState(RenderInline&); |
50 | 52 |
51 ~LayoutState(); | 53 ~LayoutState(); |
52 | 54 |
53 void clearPaginationInformation(); | 55 void clearPaginationInformation(); |
54 bool isPaginatingColumns() const { return m_columnInfo; } | 56 bool isPaginatingColumns() const { return m_columnInfo; } |
55 bool isPaginated() const { return m_isPaginated; } | 57 bool isPaginated() const { return m_isPaginated; } |
56 bool isClipped() const { return m_clipped; } | 58 bool isClipped() const { return m_clipped; } |
57 | 59 |
58 // The page logical offset is the object's offset from the top of the page i
n the page progression | 60 // The page logical offset is the object's offset from the top of the page i
n the page progression |
59 // direction (so an x-offset in vertical text and a y-offset for horizontal
text). | 61 // direction (so an x-offset in vertical text and a y-offset for horizontal
text). |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 LayoutUnit m_pageLogicalHeight; | 118 LayoutUnit m_pageLogicalHeight; |
117 // The offset of the start of the first page in the nearest enclosing pagina
tion model. | 119 // The offset of the start of the first page in the nearest enclosing pagina
tion model. |
118 LayoutSize m_pageOffset; | 120 LayoutSize m_pageOffset; |
119 | 121 |
120 RenderObject& m_renderer; | 122 RenderObject& m_renderer; |
121 }; | 123 }; |
122 | 124 |
123 } // namespace WebCore | 125 } // namespace WebCore |
124 | 126 |
125 #endif // LayoutState_h | 127 #endif // LayoutState_h |
OLD | NEW |