| Index: third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
|
| index 15ef8c2b7a7b15a0a89f63eff0d9b7c614d74207..2d79e50931fd8a2699b4b7b4d5028106276ecfe9 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
|
| @@ -449,7 +449,7 @@ bool HTMLFormControlElement::willValidate() const
|
| // If the following assertion fails, setNeedsWillValidateCheck() is not
|
| // called correctly when something which changes recalcWillValidate() result
|
| // is updated.
|
| - ASSERT(m_willValidate == recalcWillValidate());
|
| + DCHECK_EQ(m_willValidate, recalcWillValidate());
|
| }
|
| return m_willValidate;
|
| }
|
| @@ -564,8 +564,8 @@ bool HTMLFormControlElement::reportValidity()
|
| bool isValid = checkValidity(&unhandledInvalidControls, CheckValidityDispatchInvalidEvent);
|
| if (isValid || unhandledInvalidControls.isEmpty())
|
| return isValid;
|
| - ASSERT(unhandledInvalidControls.size() == 1);
|
| - ASSERT(unhandledInvalidControls[0].get() == this);
|
| + DCHECK_EQ(unhandledInvalidControls.size(), 1u);
|
| + DCHECK_EQ(unhandledInvalidControls[0].get(), this);
|
| // Update layout now before calling isFocusable(), which has
|
| // !layoutObject()->needsLayout() assertion.
|
| document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| @@ -594,7 +594,7 @@ bool HTMLFormControlElement::isValidElement()
|
| } else {
|
| // If the following assertion fails, setNeedsValidityCheck() is not
|
| // called correctly when something which changes validity is updated.
|
| - ASSERT(m_isValid == (!willValidate() || valid()));
|
| + DCHECK_EQ(m_isValid, (!willValidate() || valid()));
|
| }
|
| return m_isValid;
|
| }
|
|
|