OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/layout/FragmentainerIterator.h" | 5 #include "core/layout/FragmentainerIterator.h" |
6 | 6 |
7 #include "core/layout/LayoutMultiColumnSet.h" | 7 #include "core/layout/LayoutMultiColumnSet.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // If the two fragmentainer intervals are disjoint, there's nothing of | 142 // If the two fragmentainer intervals are disjoint, there's nothing of |
143 // interest in this fragmentainer group. | 143 // interest in this fragmentainer group. |
144 if (firstFragmentainerInClipRect > m_endFragmentainerIndex || | 144 if (firstFragmentainerInClipRect > m_endFragmentainerIndex || |
145 lastFragmentainerInClipRect < m_currentFragmentainerIndex) | 145 lastFragmentainerInClipRect < m_currentFragmentainerIndex) |
146 return false; | 146 return false; |
147 if (m_currentFragmentainerIndex < firstFragmentainerInClipRect) | 147 if (m_currentFragmentainerIndex < firstFragmentainerInClipRect) |
148 m_currentFragmentainerIndex = firstFragmentainerInClipRect; | 148 m_currentFragmentainerIndex = firstFragmentainerInClipRect; |
149 if (m_endFragmentainerIndex > lastFragmentainerInClipRect) | 149 if (m_endFragmentainerIndex > lastFragmentainerInClipRect) |
150 m_endFragmentainerIndex = lastFragmentainerInClipRect; | 150 m_endFragmentainerIndex = lastFragmentainerInClipRect; |
151 } | 151 } |
152 DCHECK(m_endFragmentainerIndex >= m_currentFragmentainerIndex); | 152 DCHECK_GE(m_endFragmentainerIndex, m_currentFragmentainerIndex); |
153 return true; | 153 return true; |
154 } | 154 } |
155 | 155 |
156 } // namespace blink | 156 } // namespace blink |
OLD | NEW |