| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 const MultiColumnFragmentainerGroup& lastFragmentainerGroup() const { return
m_fragmentainerGroups.last(); } | 66 const MultiColumnFragmentainerGroup& lastFragmentainerGroup() const { return
m_fragmentainerGroups.last(); } |
| 67 MultiColumnFragmentainerGroup& fragmentainerGroupAtFlowThreadOffset(LayoutUn
it); | 67 MultiColumnFragmentainerGroup& fragmentainerGroupAtFlowThreadOffset(LayoutUn
it); |
| 68 const MultiColumnFragmentainerGroup& fragmentainerGroupAtFlowThreadOffset(La
youtUnit) const; | 68 const MultiColumnFragmentainerGroup& fragmentainerGroupAtFlowThreadOffset(La
youtUnit) const; |
| 69 const MultiColumnFragmentainerGroup& fragmentainerGroupAtVisualPoint(const L
ayoutPoint&) const; | 69 const MultiColumnFragmentainerGroup& fragmentainerGroupAtVisualPoint(const L
ayoutPoint&) const; |
| 70 | 70 |
| 71 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectLayoutMultiColumnSet || LayoutBlockFlow::isOfType(type); } | 71 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectLayoutMultiColumnSet || LayoutBlockFlow::isOfType(type); } |
| 72 bool canHaveChildren() const final { return false; } | 72 bool canHaveChildren() const final { return false; } |
| 73 | 73 |
| 74 // Return the width and height of a single column or page in the set. | 74 // Return the width and height of a single column or page in the set. |
| 75 LayoutUnit pageLogicalWidth() const { return flowThread()->logicalWidth(); } | 75 LayoutUnit pageLogicalWidth() const { return flowThread()->logicalWidth(); } |
| 76 LayoutUnit pageLogicalHeight() const; | 76 LayoutUnit pageLogicalHeightForOffset(LayoutUnit) const; |
| 77 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule)
const; |
| 78 bool isPageLogicalHeightKnown() const; |
| 77 | 79 |
| 78 LayoutFlowThread* flowThread() const { return m_flowThread; } | 80 LayoutFlowThread* flowThread() const { return m_flowThread; } |
| 79 | 81 |
| 80 LayoutBlockFlow* multiColumnBlockFlow() const { return toLayoutBlockFlow(par
ent()); } | 82 LayoutBlockFlow* multiColumnBlockFlow() const { return toLayoutBlockFlow(par
ent()); } |
| 81 LayoutMultiColumnFlowThread* multiColumnFlowThread() const | 83 LayoutMultiColumnFlowThread* multiColumnFlowThread() const |
| 82 { | 84 { |
| 83 ASSERT_WITH_SECURITY_IMPLICATION(!flowThread() || flowThread()->isLayout
MultiColumnFlowThread()); | 85 ASSERT_WITH_SECURITY_IMPLICATION(!flowThread() || flowThread()->isLayout
MultiColumnFlowThread()); |
| 84 return static_cast<LayoutMultiColumnFlowThread*>(flowThread()); | 86 return static_cast<LayoutMultiColumnFlowThread*>(flowThread()); |
| 85 } | 87 } |
| 86 | 88 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 MultiColumnFragmentainerGroupList m_fragmentainerGroups; | 175 MultiColumnFragmentainerGroupList m_fragmentainerGroups; |
| 174 LayoutFlowThread* m_flowThread; | 176 LayoutFlowThread* m_flowThread; |
| 175 }; | 177 }; |
| 176 | 178 |
| 177 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); | 179 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); |
| 178 | 180 |
| 179 } // namespace blink | 181 } // namespace blink |
| 180 | 182 |
| 181 #endif // LayoutMultiColumnSet_h | 183 #endif // LayoutMultiColumnSet_h |
| 182 | 184 |
| OLD | NEW |