Bug 778654 - Implement and move tabIndex functions to Element class to avoid duplicate work.r=peterv,heycam
MozReview-Commit-ID: uetkJztNcn
This commit is contained in:
@@ -2582,34 +2582,6 @@ nsGenericHTMLFormElement::IsLabelable() const
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
void
|
||||
nsGenericHTMLElement::Blur(mozilla::ErrorResult& aError)
|
||||
{
|
||||
if (!ShouldBlur(this)) {
|
||||
return;
|
||||
}
|
||||
|
||||
nsIDocument* doc = GetComposedDoc();
|
||||
if (!doc) {
|
||||
return;
|
||||
}
|
||||
|
||||
nsPIDOMWindowOuter* win = doc->GetWindow();
|
||||
nsIFocusManager* fm = nsFocusManager::GetFocusManager();
|
||||
if (win && fm) {
|
||||
aError = fm->ClearFocus(win);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsGenericHTMLElement::Focus(ErrorResult& aError)
|
||||
{
|
||||
nsIFocusManager* fm = nsFocusManager::GetFocusManager();
|
||||
if (fm) {
|
||||
aError = fm->SetFocus(this, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsGenericHTMLElement::Click()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user