Bug 774038 - remove unused field. r=roc.

This commit is contained in:
Rafael Ávila de Espíndola 2012-07-15 00:18:01 -04:00
parent 56cc1f3585
commit e08eb35a64
2 changed files with 3 additions and 7 deletions

View File

@ -1767,7 +1767,7 @@ nsTextEditorState::SetValue(const nsAString& aValue, bool aUserInput,
// this is necessary to avoid infinite recursion
if (!currentValue.Equals(aValue))
{
nsTextControlFrame::ValueSetter valueSetter(mBoundFrame, mEditor);
nsTextControlFrame::ValueSetter valueSetter(mEditor);
// \r is an illegal character in the dom, but people use them,
// so convert windows and mac platform linebreaks to \n:

View File

@ -181,13 +181,10 @@ public: //for methods who access nsTextControlFrame directly
NS_STACK_CLASS class ValueSetter {
public:
ValueSetter(nsTextControlFrame* aFrame,
nsIEditor* aEditor)
: mFrame(aFrame)
, mEditor(aEditor)
ValueSetter(nsIEditor* aEditor)
: mEditor(aEditor)
, mCanceled(false)
{
MOZ_ASSERT(aFrame);
MOZ_ASSERT(aEditor);
// To protect against a reentrant call to SetValue, we check whether
@ -210,7 +207,6 @@ public: //for methods who access nsTextControlFrame directly
}
private:
nsTextControlFrame* mFrame;
nsCOMPtr<nsIEditor> mEditor;
bool mOuterTransaction;
bool mCanceled;