Chromium Code Reviews| Index: third_party/WebKit/Source/core/loader/DocumentWriter.cpp |
| diff --git a/third_party/WebKit/Source/core/loader/DocumentWriter.cpp b/third_party/WebKit/Source/core/loader/DocumentWriter.cpp |
| index 7d1ae8257b156824af8f9b49229373375660c0fc..2fc35336d55e361d5ddec8e9d123594ec6d40ec4 100644 |
| --- a/third_party/WebKit/Source/core/loader/DocumentWriter.cpp |
| +++ b/third_party/WebKit/Source/core/loader/DocumentWriter.cpp |
| @@ -84,7 +84,7 @@ void DocumentWriter::appendReplacingData(const String& source) |
| void DocumentWriter::addData(const char* bytes, size_t length) |
| { |
| - ASSERT(m_parser); |
| + DCHECK(m_parser); |
| if (m_parser->needsDecoder() && 0 < length) { |
| std::unique_ptr<TextResourceDecoder> decoder = m_decoderBuilder.buildFor(m_document); |
| m_parser->setDecoder(std::move(decoder)); |
| @@ -95,7 +95,7 @@ void DocumentWriter::addData(const char* bytes, size_t length) |
| void DocumentWriter::end() |
| { |
| - ASSERT(m_document); |
| + DCHECK(m_document); |
| if (!m_parser) |
| return; |
| @@ -112,7 +112,7 @@ void DocumentWriter::end() |
| void DocumentWriter::setDocumentWasLoadedAsPartOfNavigation() |
| { |
| - ASSERT(m_parser && !m_parser->isStopped()); |
| + DCHECK(m_parser && !m_parser->isStopped()); |
|
tkent
2016/09/13 08:52:09
Split it to two DCHECKs
hiroshige
2016/09/13 09:30:51
Done.
|
| m_parser->setDocumentWasLoadedAsPartOfNavigation(); |
| } |