Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: third_party/WebKit/Source/core/layout/FragmentainerIterator.cpp

Issue 2770203002: Replace DCHECK with DCHECK_op and split some DCHECKs wherever necessary (Closed)
Patch Set: Add few more Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/Grid.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/Grid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698