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

Unified Diff: third_party/WebKit/Source/core/xml/DocumentXSLT.cpp

Issue 2274573004: Replace ASSERT*() with DCHECK*() in core/xml/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/xml/DocumentXSLT.cpp
diff --git a/third_party/WebKit/Source/core/xml/DocumentXSLT.cpp b/third_party/WebKit/Source/core/xml/DocumentXSLT.cpp
index 0d1d1facb6c0c854465c0c376e2f43acd9554afe..409e7348fcb2f38ed21cdb27157b6e5f6b33a47c 100644
--- a/third_party/WebKit/Source/core/xml/DocumentXSLT.cpp
+++ b/third_party/WebKit/Source/core/xml/DocumentXSLT.cpp
@@ -35,12 +35,12 @@ public:
virtual void handleEvent(ScriptState* scriptState, Event* event)
{
- ASSERT(RuntimeEnabledFeatures::xsltEnabled());
- ASSERT(event->type() == "DOMContentLoaded");
+ DCHECK(RuntimeEnabledFeatures::xsltEnabled());
+ DCHECK_EQ(event->type(), "DOMContentLoaded");
ScriptState::Scope scope(scriptState);
Document& document = *toDocument(scriptState->getExecutionContext());
- ASSERT(!document.parsing());
+ DCHECK(!document.parsing());
// Processing instruction (XML documents only).
// We don't support linking to embedded CSS stylesheets,
@@ -81,7 +81,7 @@ private:
virtual v8::Local<v8::Value> callListenerFunction(ScriptState*, v8::Local<v8::Value>, Event*)
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return v8::Local<v8::Value>();
}
@@ -98,7 +98,7 @@ DocumentXSLT::DocumentXSLT()
void DocumentXSLT::applyXSLTransform(Document& document, ProcessingInstruction* pi)
{
- ASSERT(!pi->isLoading());
+ DCHECK(!pi->isLoading());
UseCounter::count(document, UseCounter::XSLProcessingInstruction);
XSLTProcessor* processor = XSLTProcessor::create(document);
processor->setXSLStyleSheet(toXSLStyleSheet(pi->sheet()));
@@ -143,7 +143,7 @@ bool DocumentXSLT::processingInstructionInsertedIntoDocument(Document& document,
return false;
DOMContentLoadedListener* listener = DOMContentLoadedListener::create(scriptState, pi);
document.addEventListener(EventTypeNames::DOMContentLoaded, listener, false);
- ASSERT(!pi->eventListenerForXSLT());
+ DCHECK(!pi->eventListenerForXSLT());
pi->setEventListenerForXSLT(listener);
return true;
}
@@ -156,7 +156,7 @@ bool DocumentXSLT::processingInstructionRemovedFromDocument(Document& document,
if (!pi->eventListenerForXSLT())
return true;
- ASSERT(RuntimeEnabledFeatures::xsltEnabled());
+ DCHECK(RuntimeEnabledFeatures::xsltEnabled());
document.removeEventListener(EventTypeNames::DOMContentLoaded, pi->eventListenerForXSLT(), false);
pi->clearEventListenerForXSLT();
return true;
« no previous file with comments | « third_party/WebKit/Source/core/xml/DocumentXSLT.h ('k') | third_party/WebKit/Source/core/xml/XMLSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698