- Remove temporary call to SetInitialValue() in CreateAnonymousContent().
- Move all calls to SetInitialValue() out from under the 'if' statement
they were under. This will make sure that it gets called at least
once since there are times when GetPrefSize() and Reflow() are not
called during the initial reflow.
r=mjudge@netscape.com
git-svn-id: svn://10.0.0.236/trunk@79192 18797224-902f-48f8-a5cc-f745e15eee43
Replaced call to ScrollSelectionIntoView() in SetTextControlFrameState()
with a call to nsIScrollableView::ScrollTo() that resets the scroll position
of the text widget to (0,0) when the value is replaced.
r=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@78914 18797224-902f-48f8-a5cc-f745e15eee43
the problem where we can't retrieve the password value from the password
dialog. Breaks logging into IMAP.
r=blizzard@mozilla.orga=leaf@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@78516 18797224-902f-48f8-a5cc-f745e15eee43
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
Fix some CSS errors found with CSS parser error reporting, with Ben's approval.
git-svn-id: svn://10.0.0.236/trunk@78230 18797224-902f-48f8-a5cc-f745e15eee43
I had to put in an ifdef _WIN32 because no other platform implements the call in nsIFontMetrics
I will have to address this ifdef in the next release (Bug 50998), which means I will probably implement
GetAveCharWidth for all platforms that don't have a native call
Bug 44656 r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@78138 18797224-902f-48f8-a5cc-f745e15eee43
is (aveCharWidth * (sizeAttr+1))+padding+border
50280 - we need to set the mPrefSize width/height to -1 so the size of the text control gets recalculated
b=50280,44656,33312 r=kmclusk
git-svn-id: svn://10.0.0.236/trunk@77663 18797224-902f-48f8-a5cc-f745e15eee43
Fixed a couple of off by one errors
Fixed multiple selection with shift key
Fixed focus stealing problem (ifdef'ed out code that was put in to specifically fix this problem)
Fixed div by zero
b=50024,50442,48903
git-svn-id: svn://10.0.0.236/trunk@77475 18797224-902f-48f8-a5cc-f745e15eee43
This enabled the text field to shrink if necessary in some situations (i.e. table cell precentages)
b=40596 r=kmclusk
git-svn-id: svn://10.0.0.236/trunk@77203 18797224-902f-48f8-a5cc-f745e15eee43
moved up to GetPrimaryFrameFor doesn't get called with a null content
b=49993 r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@77201 18797224-902f-48f8-a5cc-f745e15eee43
fix for bug 45662 (updating range impl to dom spec)
fix for some edge case selection issues invloving multiple windows, no bug #
but saari knows about this.
r: sfraser, jfrancis, mjudge, saari
a: beppe
git-svn-id: svn://10.0.0.236/trunk@77040 18797224-902f-48f8-a5cc-f745e15eee43
nsFrame which calls HandleRelease. Without HandleRelease the EventStateManager
mMouseGrabber never gets cleared and it keeps thinking events need to go to the view.
b=48792 r=pollmann
git-svn-id: svn://10.0.0.236/trunk@76588 18797224-902f-48f8-a5cc-f745e15eee43
as does page up and page down
combobox - selecting a disabled option didn't clear the "mouse down" flag and it still thought it was selecting
combobox - selecting a disabled option clears mSelectedIndex, this side effect could be seen by selected
a disabled item then clicking on a link and then hit "back",
b=48903 r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@76583 18797224-902f-48f8-a5cc-f745e15eee43
having the the non-recounted frame add itself. It is now the same as GfxList
b=21629, r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@76280 18797224-902f-48f8-a5cc-f745e15eee43