Fix for bug #46396: select after input confuses session history
Moved code that set initial value of text control via the editor from CreateAnonymousContent() to a new method called SetInitialValue(). SetInitialValue() is now called during the frame's first reflow. Added mUseEditor to indicate when it is safe to use the editor to get and set values. r=mjudge@netscape.com git-svn-id: svn://10.0.0.236/trunk@78409 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -152,6 +152,7 @@ public: //for methods who access nsGfxTextControlFrame2 directly
|
||||
NS_IMETHOD InternalContentChanged();//notify that we have some kind of change.
|
||||
NS_IMETHOD CallOnChange();
|
||||
protected:
|
||||
nsresult SetInitialValue();
|
||||
nsString *GetCachedString();
|
||||
virtual PRIntn GetSkipSides() const;
|
||||
void RemoveNewlines(nsString &aString);
|
||||
@@ -243,6 +244,7 @@ private:
|
||||
nscoord mSuggestedHeight;
|
||||
nsSize mSize;
|
||||
|
||||
PRPackedBool mUseEditor;
|
||||
PRPackedBool mIsProcessing;
|
||||
PRPackedBool mNotifyOnInput;//default this to off to stop any notifications until setup is complete
|
||||
|
||||
|
||||
Reference in New Issue
Block a user