diff --git a/content/html/content/src/HTMLOutputElement.cpp b/content/html/content/src/HTMLOutputElement.cpp
index cf5f4116aab8..fd5465fd2fba 100644
--- a/content/html/content/src/HTMLOutputElement.cpp
+++ b/content/html/content/src/HTMLOutputElement.cpp
@@ -5,12 +5,13 @@
#include "mozilla/dom/HTMLOutputElement.h"
-#include "mozilla/dom/HTMLOutputElementBinding.h"
-#include "nsFormSubmission.h"
-#include "nsDOMSettableTokenList.h"
-#include "nsEventStates.h"
#include "mozAutoDocUpdate.h"
#include "mozilla/dom/HTMLFormElement.h"
+#include "mozilla/dom/HTMLOutputElementBinding.h"
+#include "nsContentUtils.h"
+#include "nsDOMSettableTokenList.h"
+#include "nsEventStates.h"
+#include "nsFormSubmission.h"
NS_IMPL_NS_NEW_HTML_ELEMENT(Output)
@@ -140,6 +141,12 @@ HTMLOutputElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
return rv;
}
+void
+HTMLOutputElement::GetValue(nsAString& aValue)
+{
+ nsContentUtils::GetNodeTextContent(this, true, aValue);
+}
+
void
HTMLOutputElement::SetValue(const nsAString& aValue, ErrorResult& aRv)
{
diff --git a/content/html/content/src/HTMLOutputElement.h b/content/html/content/src/HTMLOutputElement.h
index fa7bb7e655b0..ced83667b928 100644
--- a/content/html/content/src/HTMLOutputElement.h
+++ b/content/html/content/src/HTMLOutputElement.h
@@ -86,11 +86,7 @@ public:
void SetDefaultValue(const nsAString& aDefaultValue, ErrorResult& aRv);
- void GetValue(nsAString& aValue)
- {
- nsContentUtils::GetNodeTextContent(this, true, aValue);
- }
-
+ void GetValue(nsAString& aValue);
void SetValue(const nsAString& aValue, ErrorResult& aRv);
// nsIConstraintValidation::WillValidate is fine.