r=rods@netscape.com
also did some associated performance work, factoring code and collapsing multiple listener
objects down to 1. This saves a few allocations and about 60 bytes per text control.
bug 11803 Need new event for text value changing
r=hyatt@netscape.com
not dogfood approved, but the fix has been sitting in my tree for 2 weeks
git-svn-id: svn://10.0.0.236/trunk@50825 18797224-902f-48f8-a5cc-f745e15eee43
this cleans up focus switching in general, and specifically enables tabbing
between single-line text controls and other html form elements.
git-svn-id: svn://10.0.0.236/trunk@48703 18797224-902f-48f8-a5cc-f745e15eee43
install text control's event listeners ahead of the editor's own default listeners.
git-svn-id: svn://10.0.0.236/trunk@44122 18797224-902f-48f8-a5cc-f745e15eee43
as part of this, I moved when I install event propogation listeners in the gfx text control frame. nobody will notice
the difference, except keyPress notifications will work correctly.
git-svn-id: svn://10.0.0.236/trunk@42899 18797224-902f-48f8-a5cc-f745e15eee43
GFX text controls are not enabled by default. The primary goal of the next few days is to stabilize the tree, so I thought it would be inappropriate to enable the new
feature by default. But you can still set your nglayout.widget.mode pref to enable them.
Here's what I did:
1) backed out a small part of Simon & Kin's fix to nsGFXTextControlFrame that was mistakenly setting up the text control's webshell as a frame. It still (correctly)
isn't doing that, but it does not set the webshell's prefs from the outer webshell.
2) for output, I now ask for format="text/plain" rather than "text/html", since (for now) these are all plain text edit controls. Soon, this will depend on the type of
edit control
3) fixed some ownership issues between the frame, the editor, and the subdocument being edited. This fixes an assertion on dialog destruction if the dialog included
a GFX-rendered text widget, and some memory leaks.
4) set up DOM key listeners on the editor to propogate events from the editor to the parent document, so things like form submission on Enter, and onKeyUp
handlers work. More work is needed here for other kinds of events.
git-svn-id: svn://10.0.0.236/trunk@41055 18797224-902f-48f8-a5cc-f745e15eee43
made nsTextControlFrame an abstract base class for nsGfxTextControlFrame and
nsNativeTextControlFrame
git-svn-id: svn://10.0.0.236/trunk@35041 18797224-902f-48f8-a5cc-f745e15eee43