Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG
This commit is contained in:
@@ -91,10 +91,10 @@ NS_INTERFACE_TABLE_TAIL_INHERITING(nsGenericHTMLFormElementWithState)
|
||||
NS_IMPL_NSICONSTRAINTVALIDATION_EXCEPT_SETCUSTOMVALIDITY(HTMLButtonElement)
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLButtonElement::SetCustomValidity(const nsAString& aError)
|
||||
HTMLButtonElement::SetCustomValidity(const nsAString& aError)
|
||||
{
|
||||
nsIConstraintValidation::SetCustomValidity(aError);
|
||||
|
||||
|
||||
UpdateState(true);
|
||||
|
||||
return NS_OK;
|
||||
@@ -156,7 +156,7 @@ HTMLButtonElement::IsHTMLFocusable(bool aWithMouse, bool *aIsFocusable, int32_t
|
||||
return true;
|
||||
}
|
||||
|
||||
*aIsFocusable =
|
||||
*aIsFocusable =
|
||||
#ifdef XP_MACOSX
|
||||
(!aWithMouse || nsFocusManager::sMouseFocusesFormControl) &&
|
||||
#endif
|
||||
@@ -456,7 +456,7 @@ HTMLButtonElement::SaveState()
|
||||
if (!mDisabledChanged) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
nsPresState* state = GetPrimaryPresState();
|
||||
if (state) {
|
||||
// We do not want to save the real disabled state but the disabled
|
||||
@@ -481,7 +481,7 @@ EventStates
|
||||
HTMLButtonElement::IntrinsicState() const
|
||||
{
|
||||
EventStates state = nsGenericHTMLFormElementWithState::IntrinsicState();
|
||||
|
||||
|
||||
if (IsCandidateForConstraintValidation()) {
|
||||
if (IsValid()) {
|
||||
state |= NS_EVENT_STATE_VALID;
|
||||
|
||||
Reference in New Issue
Block a user