Bug 1365402 - part 2: Remove trailing spaces in dom/html/HTMLTextAreaElement.cpp, r=baku
MozReview-Commit-ID: 1au3YwRK3ZS
This commit is contained in:
@@ -225,14 +225,14 @@ NS_IMPL_BOOL_ATTR(HTMLTextAreaElement, Required, required)
|
||||
NS_IMPL_UINT_ATTR_NON_ZERO_DEFAULT_VALUE(HTMLTextAreaElement, Rows, rows, DEFAULT_ROWS_TEXTAREA)
|
||||
NS_IMPL_STRING_ATTR(HTMLTextAreaElement, Wrap, wrap)
|
||||
NS_IMPL_STRING_ATTR(HTMLTextAreaElement, Placeholder, placeholder)
|
||||
|
||||
|
||||
int32_t
|
||||
HTMLTextAreaElement::TabIndexDefault()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
NS_IMETHODIMP
|
||||
HTMLTextAreaElement::GetType(nsAString& aType)
|
||||
{
|
||||
aType.AssignLiteral("textarea");
|
||||
@@ -240,7 +240,7 @@ HTMLTextAreaElement::GetType(nsAString& aType)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
NS_IMETHODIMP
|
||||
HTMLTextAreaElement::GetValue(nsAString& aValue)
|
||||
{
|
||||
nsAutoString value;
|
||||
@@ -396,7 +396,7 @@ HTMLTextAreaElement::SetValueInternal(const nsAString& aValue,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
NS_IMETHODIMP
|
||||
HTMLTextAreaElement::SetValue(const nsAString& aValue)
|
||||
{
|
||||
// If the value has been set by a script, we basically want to keep the
|
||||
@@ -423,7 +423,7 @@ HTMLTextAreaElement::SetValue(const nsAString& aValue)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
NS_IMETHODIMP
|
||||
HTMLTextAreaElement::SetUserInput(const nsAString& aValue)
|
||||
{
|
||||
return SetValueInternal(aValue,
|
||||
@@ -456,7 +456,7 @@ HTMLTextAreaElement::GetDefaultValue(nsAString& aDefaultValue)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
HTMLTextAreaElement::SetDefaultValue(const nsAString& aDefaultValue)
|
||||
@@ -585,7 +585,7 @@ HTMLTextAreaElement::GetEventTargetParent(EventChainPreVisitor& aVisitor)
|
||||
}
|
||||
|
||||
// If noContentDispatch is true we will not allow content to handle
|
||||
// this event. But to allow middle mouse button paste to work we must allow
|
||||
// this event. But to allow middle mouse button paste to work we must allow
|
||||
// middle clicks to go to text fields anyway.
|
||||
if (aVisitor.mEvent->mFlags.mNoContentDispatch) {
|
||||
aVisitor.mItemFlags |= NS_NO_CONTENT_DISPATCH;
|
||||
@@ -942,7 +942,7 @@ HTMLTextAreaElement::RestoreState(nsPresState* aState)
|
||||
{
|
||||
nsCOMPtr<nsISupportsString> state
|
||||
(do_QueryInterface(aState->GetStateProperty()));
|
||||
|
||||
|
||||
if (state) {
|
||||
nsAutoString data;
|
||||
state->GetData(data);
|
||||
|
||||
Reference in New Issue
Block a user