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

Unified Diff: third_party/WebKit/Source/core/html/HTMLObjectElement.h

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/HTMLObjectElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLObjectElement.h b/third_party/WebKit/Source/core/html/HTMLObjectElement.h
index 6721fc9cac52584aa516ff93dab8ba3d0737e202..4b592e1ce07b5c7cf43d28427da1e9dc21ae4db9 100644
--- a/third_party/WebKit/Source/core/html/HTMLObjectElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLObjectElement.h
@@ -117,21 +117,21 @@ template<typename T> inline const T* toElement(const FormAssociatedElement*);
// Make toHTMLObjectElement() accept a FormAssociatedElement as input instead of a Node.
template<> inline const HTMLObjectElement* toElement<HTMLObjectElement>(const FormAssociatedElement* element)
{
- ASSERT_WITH_SECURITY_IMPLICATION(!element || !element->isFormControlElement());
+ SECURITY_DCHECK(!element || !element->isFormControlElement());
const HTMLObjectElement* objectElement = static_cast<const HTMLObjectElement*>(element);
// We need to assert after the cast because FormAssociatedElement doesn't
// have hasTagName.
- ASSERT_WITH_SECURITY_IMPLICATION(!objectElement || objectElement->hasTagName(HTMLNames::objectTag));
+ SECURITY_DCHECK(!objectElement || objectElement->hasTagName(HTMLNames::objectTag));
return objectElement;
}
template<> inline const HTMLObjectElement& toElement<HTMLObjectElement>(const FormAssociatedElement& element)
{
- ASSERT_WITH_SECURITY_IMPLICATION(!element.isFormControlElement());
+ SECURITY_DCHECK(!element.isFormControlElement());
const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement&>(element);
// We need to assert after the cast because FormAssociatedElement doesn't
// have hasTagName.
- ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectTag));
+ SECURITY_DCHECK(objectElement.hasTagName(HTMLNames::objectTag));
return objectElement;
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLNameCollection.cpp ('k') | third_party/WebKit/Source/core/html/HTMLObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698