Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h

Issue 2807923002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/graphics (Closed)
Patch Set: fix typo Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h b/third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h
index dbc401f26a21ae80bcbc51b1b5b9f856dfb71228..986047d18463ab0e7e02c2d4d712b25ab1c56783 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h
@@ -54,7 +54,7 @@ class PLATFORM_EXPORT GraphicsContextStateSaver final {
}
void Save() {
- ASSERT(!save_and_restore_);
+ DCHECK(!save_and_restore_);
context_.Save();
save_and_restore_ = true;
}
@@ -66,7 +66,7 @@ class PLATFORM_EXPORT GraphicsContextStateSaver final {
}
void Restore() {
- ASSERT(save_and_restore_);
+ DCHECK(save_and_restore_);
context_.Restore();
save_and_restore_ = false;
}

Powered by Google App Engine