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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: All windows error are Resolved now. 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/css/resolver/TransformBuilder.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 /* 1 /*
2 * Copyright (C) 2012-2013 Intel Corporation. All rights reserved. 2 * Copyright (C) 2012-2013 Intel Corporation. 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 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 NOTREACHED(); 250 NOTREACHED();
251 break; 251 break;
252 } 252 }
253 } 253 }
254 254
255 NOTREACHED(); 255 NOTREACHED();
256 return defaultValue; 256 return defaultValue;
257 } 257 }
258 258
259 Length ViewportStyleResolver::viewportLengthValue(CSSPropertyID id) { 259 Length ViewportStyleResolver::viewportLengthValue(CSSPropertyID id) {
260 ASSERT(id == CSSPropertyMaxHeight || id == CSSPropertyMinHeight || 260 DCHECK(id == CSSPropertyMaxHeight || id == CSSPropertyMinHeight ||
261 id == CSSPropertyMaxWidth || id == CSSPropertyMinWidth); 261 id == CSSPropertyMaxWidth || id == CSSPropertyMinWidth);
262 262
263 const CSSValue* value = m_propertySet->getPropertyCSSValue(id); 263 const CSSValue* value = m_propertySet->getPropertyCSSValue(id);
264 if (!value || !(value->isPrimitiveValue() || value->isIdentifierValue())) 264 if (!value || !(value->isPrimitiveValue() || value->isIdentifierValue()))
265 return Length(); // auto 265 return Length(); // auto
266 266
267 if (value->isIdentifierValue()) { 267 if (value->isIdentifierValue()) {
268 CSSValueID valueID = toCSSIdentifierValue(value)->getValueID(); 268 CSSValueID valueID = toCSSIdentifierValue(value)->getValueID();
269 if (valueID == CSSValueInternalExtendToZoom) 269 if (valueID == CSSValueInternalExtendToZoom)
270 return Length(ExtendToZoom); 270 return Length(ExtendToZoom);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 DEFINE_TRACE(ViewportStyleResolver) { 337 DEFINE_TRACE(ViewportStyleResolver) {
338 visitor->trace(m_document); 338 visitor->trace(m_document);
339 visitor->trace(m_propertySet); 339 visitor->trace(m_propertySet);
340 visitor->trace(m_initialViewportMedium); 340 visitor->trace(m_initialViewportMedium);
341 visitor->trace(m_viewportDependentMediaQueryResults); 341 visitor->trace(m_viewportDependentMediaQueryResults);
342 visitor->trace(m_deviceDependentMediaQueryResults); 342 visitor->trace(m_deviceDependentMediaQueryResults);
343 } 343 }
344 344
345 } // namespace blink 345 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/TransformBuilder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698