Bug 1343037 part 8. Get rid of nsIDOMHTMLInputElement's selectionDirection attribute. r=ehsan
MozReview-Commit-ID: FNn4vVCM50s
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user