Bug 901269 - Part a: Move HTMLOutputElement::GetValue out of line; r=dzbarsky

This commit is contained in:
Ms2ger 2013-08-14 08:55:11 +02:00
parent f5eab3d0da
commit 516babf1cb
2 changed files with 12 additions and 9 deletions

View File

@ -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)
{

View File

@ -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.