Bug 827161, part 2 - Implement HTML 5's ValidityState.badInput and implement the state for HTMLInputElement's number type. r=smaug

This commit is contained in:
Jonathan Watt
2014-01-30 12:54:12 +00:00
parent 80cc448589
commit 8401b5c5f8
18 changed files with 340 additions and 82 deletions

View File

@@ -595,6 +595,17 @@ nsNumberControlFrame::GetValueOfAnonTextControl(nsAString& aValue)
#endif
}
bool
nsNumberControlFrame::AnonTextControlIsEmpty()
{
if (!mTextField) {
return true;
}
nsAutoString value;
HTMLInputElement::FromContent(mTextField)->GetValue(value);
return value.IsEmpty();
}
Element*
nsNumberControlFrame::GetPseudoElement(nsCSSPseudoElements::Type aType)
{