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

Unified Diff: third_party/WebKit/Source/core/css/MediaValuesCached.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, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/MediaValuesCached.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaValuesCached.cpp b/third_party/WebKit/Source/core/css/MediaValuesCached.cpp
index 604177d4fc76c2b81818d90c32f1e384397bfd99..4846765f41370e2167606e4577182a75e9d82450 100644
--- a/third_party/WebKit/Source/core/css/MediaValuesCached.cpp
+++ b/third_party/WebKit/Source/core/css/MediaValuesCached.cpp
@@ -35,12 +35,13 @@ MediaValuesCached::MediaValuesCachedData::MediaValuesCachedData()
MediaValuesCached::MediaValuesCachedData::MediaValuesCachedData(
Document& document)
: MediaValuesCached::MediaValuesCachedData() {
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
LocalFrame* frame = MediaValues::frameFrom(document);
// TODO(hiroshige): Clean up |frame->view()| conditions.
- ASSERT(!frame || frame->view());
+ DCHECK(!frame || frame->view());
if (frame && frame->view()) {
- ASSERT(frame->document() && !frame->document()->layoutViewItem().isNull());
+ DCHECK(frame->document());
+ DCHECK(!frame->document()->layoutViewItem().isNull());
// In case that frame is missing (e.g. for images that their document does
// not have a frame)
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaValues.cpp ('k') | third_party/WebKit/Source/core/css/MediaValuesDynamic.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698