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

Unified Diff: third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ Created 3 years, 9 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/css/CSSComputedStyleDeclaration.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp b/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp
index c4c837b671169bfb69275e7cf0c9a2cef2cd12ae..30cb96eb540c46f0b4160115b647d8b76f7f8346 100644
--- a/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp
+++ b/third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp
@@ -344,7 +344,7 @@ bool CSSComputedStyleDeclaration::isMonospaceFont() const {
}
const ComputedStyle* CSSComputedStyleDeclaration::computeComputedStyle() const {
Node* styledNode = this->styledNode();
- ASSERT(styledNode);
+ DCHECK(styledNode);
return styledNode->ensureComputedStyle(
styledNode->isPseudoElement() ? PseudoIdNone : m_pseudoElementSpecifier);
}
@@ -498,7 +498,7 @@ String CSSComputedStyleDeclaration::getPropertyValue(
return value->cssText();
return String();
}
- ASSERT(CSSPropertyMetadata::isEnabledProperty(propertyID));
+ DCHECK(CSSPropertyMetadata::isEnabledProperty(propertyID));
return getPropertyValue(propertyID);
}

Powered by Google App Engine
This is Rietveld 408576698