| 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;
|
|
|