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

Unified Diff: third_party/WebKit/Source/core/dom/UserActionElementSet.cpp

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/UserActionElementSet.cpp
diff --git a/third_party/WebKit/Source/core/dom/UserActionElementSet.cpp b/third_party/WebKit/Source/core/dom/UserActionElementSet.cpp
index 67873b942f1a3ca1363efef089717dd5b811fd95..96334cef261e95337619d0194d59db543a1e8d49 100644
--- a/third_party/WebKit/Source/core/dom/UserActionElementSet.cpp
+++ b/third_party/WebKit/Source/core/dom/UserActionElementSet.cpp
@@ -41,7 +41,7 @@ UserActionElementSet::~UserActionElementSet()
void UserActionElementSet::didDetach(Element& element)
{
- ASSERT(element.isUserActionElement());
+ DCHECK(element.isUserActionElement());
clearFlags(&element, IsActiveFlag | InActiveChainFlag | IsHoveredFlag);
}
@@ -54,7 +54,7 @@ void UserActionElementSet::documentDidRemoveLastRef()
bool UserActionElementSet::hasFlags(const Node* node, unsigned flags) const
{
- ASSERT(node->isUserActionElement() && node->isElementNode());
+ DCHECK(node->isUserActionElement() && node->isElementNode());
return hasFlags(toElement(node), flags);
}
@@ -74,7 +74,7 @@ void UserActionElementSet::clearFlags(Node* node, unsigned flags)
inline bool UserActionElementSet::hasFlags(const Element* element, unsigned flags) const
{
- ASSERT(element->isUserActionElement());
+ DCHECK(element->isUserActionElement());
ElementFlagMap::const_iterator found = m_elements.find(const_cast<Element*>(element));
if (found == m_elements.end())
return false;
@@ -84,7 +84,7 @@ inline bool UserActionElementSet::hasFlags(const Element* element, unsigned flag
inline void UserActionElementSet::clearFlags(Element* element, unsigned flags)
{
if (!element->isUserActionElement()) {
- ASSERT(m_elements.end() == m_elements.find(element));
+ DCHECK(m_elements.end() == m_elements.find(element));
return;
}
@@ -108,7 +108,7 @@ inline void UserActionElementSet::setFlags(Element* element, unsigned flags)
{
ElementFlagMap::iterator result = m_elements.find(element);
if (result != m_elements.end()) {
- ASSERT(element->isUserActionElement());
+ DCHECK(element->isUserActionElement());
result->value |= flags;
return;
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/URLSearchParams.cpp ('k') | third_party/WebKit/Source/core/dom/VisitedLinkState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698