85 Commits

Author SHA1 Message Date
joki%netscape.com
c79e9c67d2 Changes to DOM events to accomodate the new breakdown of events into mouse and key events. This fixes a couple of bug, though the main one is 13406. Involves changes to multiple DOM generated file as well as fixing up usage of DOM event api usage in editor, rdf, and xul. r:vidur
git-svn-id: svn://10.0.0.236/trunk@52691 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 07:11:45 +00:00
buster%netscape.com
1115c0f4da fixed bug 17792 (text set via DOM displays in HTL password control)
r=myself, I'll take the heat if this goes bad.  It's a very simple change.
The text control optimization was turned on for single line text controls,
and turned off for text areas.  With this change, the optimization is also
turned off for password fields.  This shouldn't effect performance in any
noticable way, because there are very rarely more than one or two password
controls on a single page.  The optimization in the case of password fields
isn't worth the extra code and complexity for dealing with replacing
characters with '*'


git-svn-id: svn://10.0.0.236/trunk@52688 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 06:53:07 +00:00
kmcclusk%netscape.com
a09d34ccd1 Fixed places where SetProperty and Reset were missing the nsIPresContext argument.
This fixed 6 warnings and cases where reset and set property where not working properly for
all form elements. r = rods@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@52619 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 00:01:13 +00:00
buster%netscape.com
2bbfb06080 bug 17727 ([dogfood] Password not showing stars for default values unless we click inside the field.)
r=brade

change is in nsGfxTextControl.cpp.  I used to just blindly set the text of the underlying text frame.
Now I check if it's a password field, and replace the display text with '*' if it is.


git-svn-id: svn://10.0.0.236/trunk@52546 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 15:12:47 +00:00
troy%netscape.com
3513334988 Moved a bunch of stuff out to a nsIFrameDebug interface
git-svn-id: svn://10.0.0.236/trunk@52427 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 22:12:45 +00:00
jband%netscape.com
9a6507c902 fix typo that was causing bustage on some compilers
git-svn-id: svn://10.0.0.236/trunk@52356 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 03:02:43 +00:00
buster%netscape.com
33e56d70f4 huge performance work for text controls
we now display the content of a single line text control using a child pseudo frame
until the text control first gets focus.  at that time, a webshell and editor are created on the fly.
fixed bug bug 14727
r=rods


git-svn-id: svn://10.0.0.236/trunk@52330 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 16:33:00 +00:00
rods%netscape.com
d8ca5cd972 removed an unused variable and an extra decl and call to remove two warnings
r=none


git-svn-id: svn://10.0.0.236/trunk@51914 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 23:28:51 +00:00
troy%netscape.com
bd46e7911f Changed SetView/GetView to take an additional argument which is the
pres context


git-svn-id: svn://10.0.0.236/trunk@51822 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 04:44:41 +00:00
rods%netscape.com
3c48aa841c minor changes to previous checkin to handle css sizing like NavQuirks
b=6695,r=none


git-svn-id: svn://10.0.0.236/trunk@51820 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 04:29:20 +00:00
rods%netscape.com
8aef13e868 Completely rewrote the the Reflow for gfx text controls, factored out separate
reflow paths for NavQuirks and Standard mode. Also, Standard mode reflow now obeys
cols rows etc. Although there may be a little code bloat, this will make maintaining
the input text and textarea much much easier.
r=kmcclusk, b=6695,7461


git-svn-id: svn://10.0.0.236/trunk@51818 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 03:46:18 +00:00
pollmann%netscape.com
e0757a21ca Bug 15729: Fall back to content when getting text value; r=vidur
git-svn-id: svn://10.0.0.236/trunk@51216 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:43:58 +00:00
rods%netscape.com
15f62c11c2 cleaned up warning, result hidding another, r=kmcclusk, (no bug)
git-svn-id: svn://10.0.0.236/trunk@51164 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:59:06 +00:00
rods%netscape.com
d3a58b07b8 Changed the sizing comparison for NavQuirks in debug mode to get the font family and size
for the input text  and textarea, I also changed the border calc for only when the
the size is explicitly set.
r=kmcclusk, Bug #3040,11285


git-svn-id: svn://10.0.0.236/trunk@51130 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 11:59:01 +00:00
peterl%netscape.com
bba68903df Added namespace ID to the AttributeChanged notification
Part fo the fix for Bug 15153
r=troy


git-svn-id: svn://10.0.0.236/trunk@50888 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:16:45 +00:00
buster%netscape.com
34185693a8 bug 12221 [Dogfood] Gfx text controls need to notify on mouse events
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
1999-10-15 13:38:29 +00:00
ftang%netscape.com
2d2a382150 landing keyEvent_19991004_BRANCH
bugs # see the log of the check in into branch
author/reviewer:
mozilla/layout/base/src/nsRangeList.cpp brade/mjudge
mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp brade/ftang
mozilla/layout/events/src/nsDOMEvent.cpp brade/joki
mozilla/layout/events/src/nsEventStateManager.cpp brade/joki
mozilla/widget/public/nsGUIEvent.h akkana/ftang
mozilla/widget/src/windows/nsWindow.cpp ftang/mjudge
mozilla/widget/src/windows/nsWindow.h ftang/mjudge
mozilla/widget/src/mac/nsTextAreaWidget.cpp brade/ftang
mozilla/widget/src/mac/nsMacEventHandler.cpp brade/simon
mozilla/widget/src/xpwidgets/nsKeyBindMgr.cpp brade/ftang
mozilla/widget/src/gtk/nsGtkEventHandler.cpp akkana/?
mozilla/widget/src/gtk/nsWidget.cpp erik/ftang
mozilla/layout/xul/base/src/nsTreeCellFrame.cpp brade/ftang
mozilla/editor/base/nsEditorEventListeners.cpp brade/akkana
mozilla/editor/base/nsHTMLEditor.cpp brade/akkana
mozilla/rdf/content/src/nsXULKeyListener.cpp ftang/saari
fix the master bug- 15693
fix at least, but not limited to, the following bugs
10158,11956,6053,9333,10901,14348,6449,11845,13016,14410,15657,15307,15842,13856


git-svn-id: svn://10.0.0.236/trunk@50688 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 18:27:01 +00:00
pollmann%netscape.com
5c5ba7aa15 Bug 16126: Check for a cached state when reading value or submitting Gfx text frame (before initialize); r=joki
git-svn-id: svn://10.0.0.236/trunk@50545 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 02:49:42 +00:00
pinkerton%netscape.com
93aed372f7 pulled mac-specific patches to the tip in order to allow typing in the url bar in navigator to work w/out firing cmd-keybindings. (r=saari, no explicit bug number).
git-svn-id: svn://10.0.0.236/trunk@50528 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:44:43 +00:00
kmcclusk%netscape.com
afe30290c8 Set state of checkbox and Radio button on MouseUp instead of MouseDown so JavaScript onclick
event handlers can retreive the correct state of the form element. bug 15366; r=rods@netscape.com

Submit the form when a text field is clicked on only if the JavaScript event handler
has not consumed the event. bug 15949; r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50488 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:44:23 +00:00
kmcclusk%netscape.com
1f838ed9cc Backing out change made while tree was closed
git-svn-id: svn://10.0.0.236/trunk@50481 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:07:24 +00:00
kmcclusk%netscape.com
3ed94d5f1f Set state of checkbox and Radio button on MouseUp instead of MouseDown so JavaScript onclick
event handlers can retreive the correct state of the form element. bug 15366; r=rods@netscape.com

Submit the form when a text field is clicked on only if the JavaScript event handler
has not consumed the event. bug 15949; r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50478 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 21:42:31 +00:00
kipp%netscape.com
e18af2d0ee Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage
git-svn-id: svn://10.0.0.236/trunk@50239 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:41:19 +00:00
rods%netscape.com
d66d5defc6 Added macro to help in figuring Nav Quirks default size for all
controls ifdef for just me. Renamed aMetrics to aDesiredSize
Did some clean. Nav Quirks obeys padding and not border.
Reworked how computed size is used r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@50143 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:09:47 +00:00
kipp%netscape.com
51e85831e8 r=peterl; fixed a regression that I regrettably caused; had the test for success backwards
git-svn-id: svn://10.0.0.236/trunk@50075 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 01:44:16 +00:00
kipp%netscape.com
b87e5bb00d Don't forget to remove the observer when dtor is running (fixes a sometimes crash in viewer); also fixed a memory leak of a style context
git-svn-id: svn://10.0.0.236/trunk@50062 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:30:20 +00:00
kipp%netscape.com
8fdcb733f6 Removed static ctors
git-svn-id: svn://10.0.0.236/trunk@49834 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:51:56 +00:00
rpotts%netscape.com
fa598b6cae bug #15341 and bug #15344. Use the documentloader observer instead of a stream observer.
git-svn-id: svn://10.0.0.236/trunk@49795 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 04:04:16 +00:00
rods%netscape.com
ff1ff17b9d fixes bug #15265, changes reviewed by kmcclusk. Changes in the way it used the computed values
git-svn-id: svn://10.0.0.236/trunk@49718 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 13:49:00 +00:00
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