56 Commits

Author SHA1 Message Date
danm%netscape.com
f8f515a025 event handler holds weak reference to frame. fixes bug 14885. r:buster
git-svn-id: svn://10.0.0.236/trunk@49582 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 15:04:15 +00:00
rods%netscape.com
f6ec8c8015 ifdef'd out the new code that handles the computed size and ifdef'ed in the old code for Linux
git-svn-id: svn://10.0.0.236/trunk@49579 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 14:28:25 +00:00
rods%netscape.com
7ff8fc122b Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
and it now uses the cached L&F obj


git-svn-id: svn://10.0.0.236/trunk@49424 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:33:33 +00:00
peterl%netscape.com
4c0553554b manage view visibility better
git-svn-id: svn://10.0.0.236/trunk@49292 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:36:16 +00:00
buster%netscape.com
8805a9dc33 just removed some annoying printf's I left lying around
git-svn-id: svn://10.0.0.236/trunk@48748 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:47:47 +00:00
buster%netscape.com
4f3cf53954 just changed a comment to reflect reality, and removed some commented out code
git-svn-id: svn://10.0.0.236/trunk@48705 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:14:21 +00:00
buster%netscape.com
53d4be4b63 enabled event state manager to do it's thing with focus switching.
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
1999-09-22 01:04:37 +00:00
buster%netscape.com
2e2ab230d1 small performance improvement. weeded out some obsolete code that was
causing round trips through the editor unnecessarily.
thanks for pointing out the problem, akkana and bruce m.


git-svn-id: svn://10.0.0.236/trunk@48310 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 03:59:43 +00:00
pollmann%netscape.com
60d58f1ca0 Cache value updates that happen before initialization: fixes a bug in session history where text input/textarea/file inputs aren't restored.
git-svn-id: svn://10.0.0.236/trunk@48246 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 07:22:55 +00:00
buster%netscape.com
ebbfa93fe1 fixed bug 14039
bad copy-and-paste of some event propogation code.  the gfx text control
event listeners exist just to propogate the event from the embedded shell
to the content, and should not pass the event back to the frame itself, except
for keyPress (for default action).


git-svn-id: svn://10.0.0.236/trunk@47931 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 06:15:56 +00:00
shaver%netscape.com
b8e22a64c3 fix 12956, r,a=brade
git-svn-id: svn://10.0.0.236/trunk@47583 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 14:42:19 +00:00
pollmann%netscape.com
a44d5d7eae Nuke some warnings.
git-svn-id: svn://10.0.0.236/trunk@47246 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 01:15:33 +00:00
buster%netscape.com
28227a5fcb fixed an uninitialized variabled error. the result code in Reflow is
now initialized to NS_OK, because it's not used in all reflow paths.


git-svn-id: svn://10.0.0.236/trunk@47087 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 03:15:23 +00:00
buster%netscape.com
c0e7040977 workaround needed as a result of hyatt's change to frame construction code and attribute notification.
git-svn-id: svn://10.0.0.236/trunk@46606 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 19:45:32 +00:00
hyatt%netscape.com
1433b9452c Landing AttributeChanged alteration. AttributeChanged now fires even when the
style hint is REFLOW or VISUAL (and not just CONTENT).


git-svn-id: svn://10.0.0.236/trunk@46290 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-08 03:51:41 +00:00
rods%netscape.com
3de715c8ad Fills in background color webshell gets centered and the size is large then the minium
git-svn-id: svn://10.0.0.236/trunk@46004 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-04 13:34:40 +00:00
rods%netscape.com
fcf49d01c5 it now does its own reflow in Quirks mode and paint its own border in Quirks mode
(the size of the native border from look and feel)


git-svn-id: svn://10.0.0.236/trunk@45897 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 14:50:23 +00:00
buster%netscape.com
5055763304 fixed wrapping issues. dogfood bug 8984
git-svn-id: svn://10.0.0.236/trunk@45725 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-02 20:46:53 +00:00
kipp%netscape.com
eea3ab916a Updated SizeOf methods to not waste space when doing a non-debug build
git-svn-id: svn://10.0.0.236/trunk@45397 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 01:02:16 +00:00
buster%netscape.com
30737aca1f clean up: better error handling and minor performance fixes
git-svn-id: svn://10.0.0.236/trunk@45199 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-30 22:14:44 +00:00
rods%netscape.com
d3328c416d Changed the view's widget create so it doesn't register D&D
git-svn-id: svn://10.0.0.236/trunk@44841 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 14:40:14 +00:00
akkana%netscape.com
131d318ad4 Revise the doc encoder and content sink APIs yet again to make it easier
to add new flags (pass a flag in the constructor, rather than specific
booleans.  This in order to fix:
11249: Add flag to write only the body in html output.


git-svn-id: svn://10.0.0.236/trunk@44308 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:30:19 +00:00
buster%netscape.com
bc5e5ff015 better use of the editor wrapping APIs
better initial placement of the caret in text controls


git-svn-id: svn://10.0.0.236/trunk@44287 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 13:52:45 +00:00
buster%netscape.com
d73d1687de preliminary support for text area wrap
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
1999-08-23 06:46:08 +00:00
rods%netscape.com
2bb86ad135 Now takes into account suggested size in the size calculation
git-svn-id: svn://10.0.0.236/trunk@43597 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 14:07:05 +00:00
buster%netscape.com
4b7d68686a added the ability to set content in a readonly or disabled control via DOM.
fixed some error checking


git-svn-id: svn://10.0.0.236/trunk@43592 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-19 13:43:33 +00:00
buster%netscape.com
d74b7462e5 added KeyPress event propogation. This makes the editor image dialog work much better.
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
1999-08-10 02:58:07 +00:00
buster%netscape.com
4a03d700c6 enabled onSelect notifications
git-svn-id: svn://10.0.0.236/trunk@42795 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 20:10:59 +00:00
buster%netscape.com
89f5e5cec1 trivial fix to make sure we're storing an nsIHTMLEditor result in an
nsCOMPtr<nsIHTMLEditor> variable.


git-svn-id: svn://10.0.0.236/trunk@42785 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:37:18 +00:00
buster%netscape.com
38375a8918 brought init code up to date with recent editor API changes.
git-svn-id: svn://10.0.0.236/trunk@42761 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 17:41:55 +00:00
sfraser%netscape.com
22f74dda79 Synch up with editor API changes.
git-svn-id: svn://10.0.0.236/trunk@42727 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 01:43:00 +00:00
joki%netscape.com
25eb777ec4 Adding new onselect event. Also slight modification to ender text widget focus behavior
git-svn-id: svn://10.0.0.236/trunk@42676 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 23:18:35 +00:00
buster%netscape.com
76b2185c50 style now gets propogated from text control frame to embedded webshell more correctly
git-svn-id: svn://10.0.0.236/trunk@42645 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 05:42:13 +00:00
ramiro%netscape.com
070499ff84 Backout my last changes to fix the mac and window builds.
git-svn-id: svn://10.0.0.236/trunk@42426 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 08:21:41 +00:00
ramiro%netscape.com
5e908b8af2 Get the Inherited superclasses right. Suggested and reviewed by pierre.
git-svn-id: svn://10.0.0.236/trunk@42415 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:40:26 +00:00
ramiro%netscape.com
6537159c2b Fix gcc 2.7 bustage. It smells a lot like a bug in gcc. It was having
trouble dealing with the Inherited typedef in the class declaration.
I replaced |Inherited| with the real thing Inherited was aliasing and all is
ok.  Pierre code reviewed.


git-svn-id: svn://10.0.0.236/trunk@42413 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 07:14:43 +00:00
pierre%netscape.com
6a1d462764 breaking up gfx & native widgets
git-svn-id: svn://10.0.0.236/trunk@42404 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 05:11:39 +00:00
buster%netscape.com
feecb3623b events are now propogated from the editor out to the containing document, as per Javascript/DOM spec.
onSelect doesn't work yet, I'm not sending the right event message yet.


git-svn-id: svn://10.0.0.236/trunk@41822 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-02 14:00:41 +00:00
buster%netscape.com
e7c1159441 With this checkin, ender-based gfx rendered text controls now work properly both as HTML text controls and XUL text fields.
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
1999-07-25 18:04:51 +00:00
morse%netscape.com
05e0844b4a Remove wallet from layout
git-svn-id: svn://10.0.0.236/trunk@40944 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-24 01:39:58 +00:00
sfraser%netscape.com
1e6d3a3340 Fix for GFX ender text widgets; don't parent nsIWebShells that the text widget creates, because you don't want them to interfere with window.frames[].
git-svn-id: svn://10.0.0.236/trunk@40743 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 23:48:48 +00:00
pollmann%netscape.com
464c15169e Bug 5403: Release services properly
git-svn-id: svn://10.0.0.236/trunk@40670 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 18:10:10 +00:00
mjudge%netscape.com
329d39ba11 massive checkin for selection. adjusting nsIDOMSelection api and nsIFrameSelection. many "small" changes. this is not as bad as it looks. layout will not be affected other than "getter" calls for selection. and all consumers of selection should be in good shape.
git-svn-id: svn://10.0.0.236/trunk@39971 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-18 02:27:19 +00:00
mjudge%netscape.com
f9575d1f61 checkin for carpool for multiple seleciton/ime selection and api changes to nsIDOMselection
git-svn-id: svn://10.0.0.236/trunk@39541 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 18:19:03 +00:00
akkana%netscape.com
a878369d02 Restructure the editor output routines to allow passing in
a mime type and a flag argument.  Also fix the following bugs:
9746: get rid of bogus empty <style> in head.
8143: save wrap column in editor shell in case it's set before the
      editor is created.
9470, 9488: allow explicit specification of formatted output.


git-svn-id: svn://10.0.0.236/trunk@39332 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 18:54:29 +00:00
warren%netscape.com
f165677628 Added channel argument to nsIStreamObserver/nsIStreamListener/nsIProgressEventSink methods.
git-svn-id: svn://10.0.0.236/trunk@38659 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-07 08:08:40 +00:00
warren%netscape.com
8b1231e0ae Renamed OnStartBinding/OnStopBinding to OnStartRequest/OnStopRequest (removing the redundant ones from necko). Numerous necko fixes. Necko now using nsIPrompt interface instead of nsINetSupport.
git-svn-id: svn://10.0.0.236/trunk@37754 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 19:30:20 +00:00
sfraser%netscape.com
20ffc454a0 Call the Output routines with a new param for selection only.
git-svn-id: svn://10.0.0.236/trunk@37426 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 20:14:58 +00:00
buster%netscape.com
51fd5f2d7e GFX text controls now hanlde max length, and max length set via DOM
GFX text controls now handle readonly and disabled states set via DOM


git-svn-id: svn://10.0.0.236/trunk@37180 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-28 13:48:38 +00:00
warren%netscape.com
411f68d823 More necko changes.
git-svn-id: svn://10.0.0.236/trunk@36817 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-25 01:53:22 +00:00