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

Side by Side Diff: third_party/WebKit/Source/core/dom/ViewportDescription.cpp

Issue 2401523002: Replace ASSERT family with DCHECK and so on in core/dom/. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights
7 * reserved. 7 * reserved.
8 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 if (length.type() == Percent && direction == Vertical) 72 if (length.type() == Percent && direction == Vertical)
73 return initialViewportSize.height() * length.getFloatValue() / 100.0f; 73 return initialViewportSize.height() * length.getFloatValue() / 100.0f;
74 74
75 if (length.type() == DeviceWidth) 75 if (length.type() == DeviceWidth)
76 return initialViewportSize.width(); 76 return initialViewportSize.width();
77 77
78 if (length.type() == DeviceHeight) 78 if (length.type() == DeviceHeight)
79 return initialViewportSize.height(); 79 return initialViewportSize.height();
80 80
81 ASSERT_NOT_REACHED(); 81 NOTREACHED();
82 return ViewportDescription::ValueAuto; 82 return ViewportDescription::ValueAuto;
83 } 83 }
84 84
85 PageScaleConstraints ViewportDescription::resolve( 85 PageScaleConstraints ViewportDescription::resolve(
86 const FloatSize& initialViewportSize, 86 const FloatSize& initialViewportSize,
87 Length legacyFallbackWidth) const { 87 Length legacyFallbackWidth) const {
88 float resultWidth = ValueAuto; 88 float resultWidth = ValueAuto;
89 89
90 Length copyMaxWidth = maxWidth; 90 Length copyMaxWidth = maxWidth;
91 Length copyMinWidth = minWidth; 91 Length copyMinWidth = minWidth;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 metaTagTypeHistogram.count(MobileOptimizedMeta); 292 metaTagTypeHistogram.count(MobileOptimizedMeta);
293 } 293 }
294 #endif 294 #endif
295 } 295 }
296 296
297 bool ViewportDescription::matchesHeuristicsForGpuRasterization() const { 297 bool ViewportDescription::matchesHeuristicsForGpuRasterization() const {
298 return isSpecifiedByAuthor(); 298 return isSpecifiedByAuthor();
299 } 299 }
300 300
301 } // namespace blink 301 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/URLSearchParams.cpp ('k') | third_party/WebKit/Source/core/dom/custom/V0CustomElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698