Bug 1343037 part 8. Get rid of nsIDOMHTMLInputElement's selectionDirection attribute. r=ehsan

MozReview-Commit-ID: FNn4vVCM50s
This commit is contained in:
Boris Zbarsky 2017-03-09 14:44:04 -05:00
Родитель be3f78fea8
Коммит 6bcfdbcff3
2 изменённых файлов: 2 добавлений и 20 удалений

Просмотреть файл

@ -6466,7 +6466,7 @@ HTMLInputElement::SetSelectionStart(const Nullable<int32_t>& aSelectionStart,
} }
nsAutoString direction; nsAutoString direction;
aRv = GetSelectionDirection(direction); GetSelectionDirection(direction, aRv);
if (aRv.Failed()) { if (aRv.Failed()) {
return; return;
} }
@ -6529,7 +6529,7 @@ HTMLInputElement::SetSelectionEnd(const Nullable<int32_t>& aSelectionEnd,
} }
nsAutoString direction; nsAutoString direction;
aRv = GetSelectionDirection(direction); GetSelectionDirection(direction, aRv);
if (aRv.Failed()) { if (aRv.Failed()) {
return; return;
} }
@ -6618,14 +6618,6 @@ HTMLInputElement::GetSelectionDirection(nsAString& aDirection, ErrorResult& aRv)
aRv.Throw(rv); aRv.Throw(rv);
} }
NS_IMETHODIMP
HTMLInputElement::GetSelectionDirection(nsAString& aDirection)
{
ErrorResult rv;
GetSelectionDirection(aDirection, rv);
return rv.StealNSResult();
}
void void
HTMLInputElement::SetSelectionDirection(const nsAString& aDirection, ErrorResult& aRv) HTMLInputElement::SetSelectionDirection(const nsAString& aDirection, ErrorResult& aRv)
{ {
@ -6653,14 +6645,6 @@ HTMLInputElement::SetSelectionDirection(const nsAString& aDirection, ErrorResult
} }
} }
NS_IMETHODIMP
HTMLInputElement::SetSelectionDirection(const nsAString& aDirection)
{
ErrorResult rv;
SetSelectionDirection(aDirection, rv);
return rv.StealNSResult();
}
NS_IMETHODIMP NS_IMETHODIMP
HTMLInputElement::GetPhonetic(nsAString& aPhonetic) HTMLInputElement::GetPhonetic(nsAString& aPhonetic)
{ {

Просмотреть файл

@ -85,8 +85,6 @@ interface nsIDOMHTMLInputElement : nsISupports
void select(); void select();
void setSelectionRange(in long selectionStart, in long selectionEnd, [optional] in DOMString direction); void setSelectionRange(in long selectionStart, in long selectionEnd, [optional] in DOMString direction);
attribute DOMString selectionDirection;
attribute DOMString useMap; attribute DOMString useMap;
readonly attribute nsIControllers controllers; readonly attribute nsIControllers controllers;