Bug 1351860 - Move mType from HTMLInputElement to nsIFormControl and make GetType non-virtual inlined, r=jessica
This commit is contained in:
@@ -94,7 +94,7 @@ nsGfxButtonControlFrame::GetDefaultLabel(nsXPIDLString& aString) const
|
||||
nsCOMPtr<nsIFormControl> form = do_QueryInterface(mContent);
|
||||
NS_ENSURE_TRUE(form, NS_ERROR_UNEXPECTED);
|
||||
|
||||
int32_t type = form->GetType();
|
||||
int32_t type = form->ControlType();
|
||||
const char *prop;
|
||||
if (type == NS_FORM_INPUT_RESET) {
|
||||
prop = "Reset";
|
||||
|
||||
Reference in New Issue
Block a user