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

Unified Diff: third_party/WebKit/Source/core/dom/VisitedLinkState.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/VisitedLinkState.cpp
diff --git a/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp b/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp
index 55b67aba638666538bc6c9896b62bdcf55b47304..4d7876030bcff6497ae96219ea37906a14d862b9 100644
--- a/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp
+++ b/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp
@@ -38,16 +38,16 @@ namespace blink {
static inline const AtomicString& linkAttribute(const Element& element)
{
- ASSERT(element.isLink());
+ DCHECK(element.isLink());
if (element.isHTMLElement())
return element.fastGetAttribute(HTMLNames::hrefAttr);
- ASSERT(element.isSVGElement());
+ DCHECK(element.isSVGElement());
return SVGURIReference::legacyHrefString(toSVGElement(element));
}
static inline LinkHash linkHashForElement(const Element& element, const AtomicString& attribute = AtomicString())
{
- ASSERT(attribute.isNull() || linkAttribute(element) == attribute);
+ DCHECK(attribute.isNull() || linkAttribute(element) == attribute);
if (isHTMLAnchorElement(element))
return toHTMLAnchorElement(element).visitedLinkHash();
return visitedLinkHash(element.document().baseURL(), attribute.isNull() ? linkAttribute(element) : attribute);
@@ -88,9 +88,9 @@ void VisitedLinkState::invalidateStyleForLink(LinkHash linkHash)
EInsideLink VisitedLinkState::determineLinkStateSlowCase(const Element& element)
{
- ASSERT(element.isLink());
- ASSERT(document().isActive());
- ASSERT(document() == element.document());
+ DCHECK(element.isLink());
+ DCHECK(document().isActive());
+ DCHECK(document() == element.document());
const AtomicString& attribute = linkAttribute(element);
« no previous file with comments | « third_party/WebKit/Source/core/dom/UserActionElementSet.cpp ('k') | third_party/WebKit/Source/core/dom/WeakIdentifierMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698