зеркало из https://github.com/mozilla/gecko-dev.git
Bug 597525 - Remove GetDefaultValueFromContent method; r=ehsan
This commit is contained in:
Родитель
3d28e162ef
Коммит
8610bb5e16
|
@ -593,9 +593,6 @@ nsHTMLTextAreaElement::SetValueChanged(PRBool aValueChanged)
|
||||||
PRBool previousValue = mValueChanged;
|
PRBool previousValue = mValueChanged;
|
||||||
|
|
||||||
mValueChanged = aValueChanged;
|
mValueChanged = aValueChanged;
|
||||||
if (!aValueChanged && !mState->IsEmpty()) {
|
|
||||||
mState->EmptyValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mValueChanged != previousValue) {
|
if (mValueChanged != previousValue) {
|
||||||
nsEventStates states = NS_EVENT_STATE_MOZ_UI_VALID |
|
nsEventStates states = NS_EVENT_STATE_MOZ_UI_VALID |
|
||||||
|
|
|
@ -1718,9 +1718,7 @@ nsTextEditorState::GetValue(nsAString& aValue, PRBool aIgnoreWrap) const
|
||||||
mCachedValue.Truncate();
|
mCachedValue.Truncate();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!mTextCtrlElement->ValueChanged() || !mValue) {
|
if (mValue) {
|
||||||
mTextCtrlElement->GetDefaultValueFromContent(aValue);
|
|
||||||
} else {
|
|
||||||
aValue = NS_ConvertUTF8toUTF16(*mValue);
|
aValue = NS_ConvertUTF8toUTF16(*mValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -158,8 +158,6 @@ public:
|
||||||
|
|
||||||
void SetValue(const nsAString& aValue, PRBool aUserInput);
|
void SetValue(const nsAString& aValue, PRBool aUserInput);
|
||||||
void GetValue(nsAString& aValue, PRBool aIgnoreWrap) const;
|
void GetValue(nsAString& aValue, PRBool aIgnoreWrap) const;
|
||||||
void EmptyValue() { if (mValue) mValue->Truncate(); }
|
|
||||||
PRBool IsEmpty() const { return mValue ? mValue->IsEmpty() : PR_TRUE; }
|
|
||||||
|
|
||||||
nsresult CreatePlaceholderNode();
|
nsresult CreatePlaceholderNode();
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче