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

Unified Diff: third_party/WebKit/Source/platform/text/TextRun.h

Issue 2811453002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/text (Closed)
Patch Set: fix 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/text/TextRun.h
diff --git a/third_party/WebKit/Source/platform/text/TextRun.h b/third_party/WebKit/Source/platform/text/TextRun.h
index 9a77db939e8108c1a14dbe38e72d1e09ff632fbe..2fe7e4e1a0a150886c0bc311652fab4f419bad70 100644
--- a/third_party/WebKit/Source/platform/text/TextRun.h
+++ b/third_party/WebKit/Source/platform/text/TextRun.h
@@ -144,7 +144,7 @@ class PLATFORM_EXPORT TextRun final {
}
TextRun SubRun(unsigned start_offset, unsigned length) const {
- ASSERT(start_offset < len_);
+ DCHECK_LT(start_offset, len_);
TextRun result = *this;
@@ -162,21 +162,21 @@ class PLATFORM_EXPORT TextRun final {
}
const LChar* Data8(unsigned i) const {
SECURITY_DCHECK(i < len_);
- ASSERT(Is8Bit());
+ DCHECK(Is8Bit());
return &data_.characters8[i];
}
const UChar* Data16(unsigned i) const {
SECURITY_DCHECK(i < len_);
- ASSERT(!Is8Bit());
+ DCHECK(!Is8Bit());
return &data_.characters16[i];
}
const LChar* Characters8() const {
- ASSERT(Is8Bit());
+ DCHECK(Is8Bit());
return data_.characters8;
}
const UChar* Characters16() const {
- ASSERT(!Is8Bit());
+ DCHECK(!Is8Bit());
return data_.characters16;
}

Powered by Google App Engine
This is Rietveld 408576698