diff --git a/dom/html/HTMLTextAreaElement.cpp b/dom/html/HTMLTextAreaElement.cpp
index 97fb5d7ab92d..32e255a1079f 100644
--- a/dom/html/HTMLTextAreaElement.cpp
+++ b/dom/html/HTMLTextAreaElement.cpp
@@ -690,21 +690,6 @@ HTMLTextAreaElement::GetTextLength(int32_t *aTextLength)
return NS_OK;
}
-NS_IMETHODIMP
-HTMLTextAreaElement::GetSelectionStart(int32_t *aSelectionStart)
-{
- NS_ENSURE_ARG_POINTER(aSelectionStart);
-
- ErrorResult error;
- Nullable selStart(GetSelectionStart(error));
- if (error.Failed()) {
- return error.StealNSResult();
- }
-
- *aSelectionStart = int32_t(selStart.Value());
- return error.StealNSResult();
-}
-
Nullable
HTMLTextAreaElement::GetSelectionStart(ErrorResult& aError)
{
@@ -720,15 +705,6 @@ HTMLTextAreaElement::GetSelectionStart(ErrorResult& aError)
return Nullable(selStart);
}
-NS_IMETHODIMP
-HTMLTextAreaElement::SetSelectionStart(int32_t aSelectionStart)
-{
- ErrorResult error;
- Nullable selStart(aSelectionStart);
- SetSelectionStart(selStart, error);
- return error.StealNSResult();
-}
-
void
HTMLTextAreaElement::SetSelectionStart(const Nullable& aSelectionStart,
ErrorResult& aError)
@@ -765,21 +741,6 @@ HTMLTextAreaElement::SetSelectionStart(const Nullable& aSelectionStart
}
}
-NS_IMETHODIMP
-HTMLTextAreaElement::GetSelectionEnd(int32_t *aSelectionEnd)
-{
- NS_ENSURE_ARG_POINTER(aSelectionEnd);
-
- ErrorResult error;
- Nullable selEnd(GetSelectionEnd(error));
- if (error.Failed()) {
- return error.StealNSResult();
- }
-
- *aSelectionEnd = int32_t(selEnd.Value());
- return NS_OK;
-}
-
Nullable
HTMLTextAreaElement::GetSelectionEnd(ErrorResult& aError)
{
@@ -795,15 +756,6 @@ HTMLTextAreaElement::GetSelectionEnd(ErrorResult& aError)
return Nullable(selEnd);
}
-NS_IMETHODIMP
-HTMLTextAreaElement::SetSelectionEnd(int32_t aSelectionEnd)
-{
- ErrorResult error;
- Nullable selEnd(aSelectionEnd);
- SetSelectionEnd(selEnd, error);
- return error.StealNSResult();
-}
-
void
HTMLTextAreaElement::SetSelectionEnd(const Nullable& aSelectionEnd,
ErrorResult& aError)
diff --git a/dom/interfaces/html/nsIDOMHTMLTextAreaElement.idl b/dom/interfaces/html/nsIDOMHTMLTextAreaElement.idl
index 509b0c916edf..6e1d324bd672 100644
--- a/dom/interfaces/html/nsIDOMHTMLTextAreaElement.idl
+++ b/dom/interfaces/html/nsIDOMHTMLTextAreaElement.idl
@@ -54,8 +54,6 @@ interface nsIDOMHTMLTextAreaElement : nsISupports
void setCustomValidity(in DOMString error);
void select();
- attribute long selectionStart;
- attribute long selectionEnd;
void setSelectionRange(in long selectionStart, in long selectionEnd, [optional] in DOMString direction);
attribute DOMString selectionDirection;