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

Unified Diff: third_party/WebKit/Source/core/html/HTMLOptionElement.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/HTMLOptionElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp b/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
index 36f6e5c6a763dbf5e2b6aff3cccaf82c549dfa3f..8579ebb7a9d36d0aed8949160d8e348b8b7bd91e 100644
--- a/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
@@ -92,7 +92,7 @@ void HTMLOptionElement::attachLayoutTree(const AttachContext& context)
{
AttachContext optionContext(context);
if (context.resolvedStyle) {
- ASSERT(!m_style || m_style == context.resolvedStyle);
+ DCHECK(!m_style || m_style == context.resolvedStyle);
m_style = context.resolvedStyle;
} else if (parentComputedStyle()) {
updateNonComputedStyle();
@@ -464,7 +464,7 @@ bool HTMLOptionElement::isDisplayNone() const
// display:none doesn't override children's display properties in
// ComputedStyle.
Element* parent = parentElement();
- ASSERT(parent);
+ DCHECK(parent);
if (isHTMLOptGroupElement(*parent)) {
const ComputedStyle* parentStyle = parent->computedStyle() ? parent->computedStyle() : parent->ensureComputedStyle();
return !parentStyle || parentStyle->display() == NONE;

Powered by Google App Engine
This is Rietveld 408576698