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

Unified Diff: third_party/WebKit/Source/core/dom/FlexibleArrayBufferView.h

Issue 1854423002: ASSERT -> {DCHECK|DCHECK_XX}, ENABLE(ASSERT) -> DCHECK_IS_ON() in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark svg/as-image/svg-nested.html crash on win Created 4 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/core/dom/FlexibleArrayBufferView.h
diff --git a/third_party/WebKit/Source/core/dom/FlexibleArrayBufferView.h b/third_party/WebKit/Source/core/dom/FlexibleArrayBufferView.h
index 969ef50765a64125eadfa7ee9d860ec983cdaa78..7f09a29fe8bf284dfb3cc465a157df73e1f3732e 100644
--- a/third_party/WebKit/Source/core/dom/FlexibleArrayBufferView.h
+++ b/third_party/WebKit/Source/core/dom/FlexibleArrayBufferView.h
@@ -41,7 +41,7 @@ public:
DOMArrayBufferView* full() const
{
- ASSERT(isFull());
+ DCHECK(isFull());
return m_full.get();
}
@@ -50,19 +50,19 @@ public:
// FlexibleArrayBufferView object.
void* baseAddressMaybeOnStack() const
{
- ASSERT(!isEmpty());
+ DCHECK(!isEmpty());
return isFull() ? m_full->baseAddress() : m_smallData;
}
unsigned byteOffset() const
{
- ASSERT(!isEmpty());
+ DCHECK(!isEmpty());
return isFull() ? m_full->byteOffset() : 0;
}
unsigned byteLength() const
{
- ASSERT(!isEmpty());
+ DCHECK(!isEmpty());
return isFull() ? m_full->byteLength() : m_smallLength;
}

Powered by Google App Engine
This is Rietveld 408576698