зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1343037 part 8. Get rid of nsIDOMHTMLInputElement's selectionDirection attribute. r=ehsan
MozReview-Commit-ID: FNn4vVCM50s
This commit is contained in:
Родитель
be3f78fea8
Коммит
6bcfdbcff3
|
@ -6466,7 +6466,7 @@ HTMLInputElement::SetSelectionStart(const Nullable<int32_t>& aSelectionStart,
|
|||
}
|
||||
|
||||
nsAutoString direction;
|
||||
aRv = GetSelectionDirection(direction);
|
||||
GetSelectionDirection(direction, aRv);
|
||||
if (aRv.Failed()) {
|
||||
return;
|
||||
}
|
||||
|
@ -6529,7 +6529,7 @@ HTMLInputElement::SetSelectionEnd(const Nullable<int32_t>& aSelectionEnd,
|
|||
}
|
||||
|
||||
nsAutoString direction;
|
||||
aRv = GetSelectionDirection(direction);
|
||||
GetSelectionDirection(direction, aRv);
|
||||
if (aRv.Failed()) {
|
||||
return;
|
||||
}
|
||||
|
@ -6618,14 +6618,6 @@ HTMLInputElement::GetSelectionDirection(nsAString& aDirection, ErrorResult& aRv)
|
|||
aRv.Throw(rv);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLInputElement::GetSelectionDirection(nsAString& aDirection)
|
||||
{
|
||||
ErrorResult rv;
|
||||
GetSelectionDirection(aDirection, rv);
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
void
|
||||
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
|
||||
HTMLInputElement::GetPhonetic(nsAString& aPhonetic)
|
||||
{
|
||||
|
|
|
@ -85,8 +85,6 @@ interface nsIDOMHTMLInputElement : nsISupports
|
|||
|
||||
void select();
|
||||
void setSelectionRange(in long selectionStart, in long selectionEnd, [optional] in DOMString direction);
|
||||
attribute DOMString selectionDirection;
|
||||
|
||||
|
||||
attribute DOMString useMap;
|
||||
readonly attribute nsIControllers controllers;
|
||||
|
|
Загрузка…
Ссылка в новой задаче