| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 const MultiColumnFragmentainerGroup& fragmentainerGroupAtVisualPoint( | 92 const MultiColumnFragmentainerGroup& fragmentainerGroupAtVisualPoint( |
| 93 const LayoutPoint&) const; | 93 const LayoutPoint&) const; |
| 94 const MultiColumnFragmentainerGroupList& fragmentainerGroups() const { | 94 const MultiColumnFragmentainerGroupList& fragmentainerGroups() const { |
| 95 return m_fragmentainerGroups; | 95 return m_fragmentainerGroups; |
| 96 } | 96 } |
| 97 | 97 |
| 98 bool isOfType(LayoutObjectType type) const override { | 98 bool isOfType(LayoutObjectType type) const override { |
| 99 return type == LayoutObjectLayoutMultiColumnSet || | 99 return type == LayoutObjectLayoutMultiColumnSet || |
| 100 LayoutBlockFlow::isOfType(type); | 100 LayoutBlockFlow::isOfType(type); |
| 101 } | 101 } |
| 102 char objectSize() const override { return sizeof(this); } |
| 103 |
| 102 bool canHaveChildren() const final { return false; } | 104 bool canHaveChildren() const final { return false; } |
| 103 | 105 |
| 104 // Return the width and height of a single column or page in the set. | 106 // Return the width and height of a single column or page in the set. |
| 105 LayoutUnit pageLogicalWidth() const { return flowThread()->logicalWidth(); } | 107 LayoutUnit pageLogicalWidth() const { return flowThread()->logicalWidth(); } |
| 106 LayoutUnit pageLogicalHeightForOffset(LayoutUnit) const; | 108 LayoutUnit pageLogicalHeightForOffset(LayoutUnit) const; |
| 107 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, | 109 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, |
| 108 PageBoundaryRule) const; | 110 PageBoundaryRule) const; |
| 109 bool isPageLogicalHeightKnown() const; | 111 bool isPageLogicalHeightKnown() const; |
| 110 | 112 |
| 111 // Return true if there's nothing with the current state of column balancing | 113 // Return true if there's nothing with the current state of column balancing |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 LayoutUnit m_oldLogicalTop; | 273 LayoutUnit m_oldLogicalTop; |
| 272 | 274 |
| 273 bool m_initialHeightCalculated; | 275 bool m_initialHeightCalculated; |
| 274 }; | 276 }; |
| 275 | 277 |
| 276 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); | 278 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); |
| 277 | 279 |
| 278 } // namespace blink | 280 } // namespace blink |
| 279 | 281 |
| 280 #endif // LayoutMultiColumnSet_h | 282 #endif // LayoutMultiColumnSet_h |
| OLD | NEW |