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

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

Issue 2770123003: Replace ASSERT with DCHECK in core/layout/ excluding subdirs (Closed)
Patch Set: Split some DCHECKs and add DCHECK_ops wherever possible 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 | « third_party/WebKit/Source/core/layout/TextRunConstructor.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/ViewFragmentationContext.h" 5 #include "core/layout/ViewFragmentationContext.h"
6 6
7 #include "core/layout/LayoutView.h" 7 #include "core/layout/LayoutView.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
11 bool ViewFragmentationContext::isFragmentainerLogicalHeightKnown() { 11 bool ViewFragmentationContext::isFragmentainerLogicalHeightKnown() {
12 ASSERT(m_view.pageLogicalHeight()); 12 DCHECK(m_view.pageLogicalHeight());
13 return true; 13 return true;
14 } 14 }
15 15
16 LayoutUnit ViewFragmentationContext::fragmentainerLogicalHeightAt(LayoutUnit) { 16 LayoutUnit ViewFragmentationContext::fragmentainerLogicalHeightAt(LayoutUnit) {
17 ASSERT(m_view.pageLogicalHeight()); 17 DCHECK(m_view.pageLogicalHeight());
18 return m_view.pageLogicalHeight(); 18 return m_view.pageLogicalHeight();
19 } 19 }
20 20
21 LayoutUnit ViewFragmentationContext::remainingLogicalHeightAt( 21 LayoutUnit ViewFragmentationContext::remainingLogicalHeightAt(
22 LayoutUnit blockOffset) { 22 LayoutUnit blockOffset) {
23 LayoutUnit pageLogicalHeight = m_view.pageLogicalHeight(); 23 LayoutUnit pageLogicalHeight = m_view.pageLogicalHeight();
24 return pageLogicalHeight - intMod(blockOffset, pageLogicalHeight); 24 return pageLogicalHeight - intMod(blockOffset, pageLogicalHeight);
25 } 25 }
26 26
27 } // namespace blink 27 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/TextRunConstructor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698