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

Unified Diff: third_party/WebKit/Source/core/html/FormAssociatedElement.cpp

Issue 2258033002: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. 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/html/FormAssociatedElement.cpp
diff --git a/third_party/WebKit/Source/core/html/FormAssociatedElement.cpp b/third_party/WebKit/Source/core/html/FormAssociatedElement.cpp
index e25869998c2011b520d63510a62b98cea8688e54..76fb98912630509da4b5480110a56d4189a35d4f 100644
--- a/third_party/WebKit/Source/core/html/FormAssociatedElement.cpp
+++ b/third_party/WebKit/Source/core/html/FormAssociatedElement.cpp
@@ -129,7 +129,7 @@ HTMLFormElement* FormAssociatedElement::findAssociatedForm(const HTMLElement* el
void FormAssociatedElement::formRemovedFromTree(const Node& formRoot)
{
- ASSERT(m_form);
+ DCHECK(m_form);
if (NodeTraversal::highestAncestorOrSelf(toHTMLElement(*this)) == formRoot)
return;
resetFormOwner();
@@ -315,7 +315,7 @@ const HTMLElement& toHTMLElement(const FormAssociatedElement& associatedElement)
const HTMLElement* toHTMLElement(const FormAssociatedElement* associatedElement)
{
- ASSERT(associatedElement);
+ DCHECK(associatedElement);
return &toHTMLElement(*associatedElement);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/DocumentNameCollection.h ('k') | third_party/WebKit/Source/core/html/FormData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698