687 Commits

Author SHA1 Message Date
rods%netscape.com
94117fe06b Added methods for getting a frame's current font and
for calculating the nsIFormControlFrame's NavQuirks size
Added two methods for getting the "wrap" property and andded a new enum
for for testing against instead of a string
Added a method for calculating the size when in NavQuirks modes, this currently
duplicates the algorithms for for input text and textareas
r=kmcclusk, Bug #3040,11285


git-svn-id: svn://10.0.0.236/trunk@51128 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 11:58:50 +00:00
rods%netscape.com
4df3a52095 Removed old commented out code and unused comments. r=kmcclusk, (no bug)
git-svn-id: svn://10.0.0.236/trunk@51127 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 11:35:17 +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
pollmann%netscape.com
806e3f40cd Bugs 16450, 11979, 16576: Add back a CRLF I took out of the form post headers; r=harishd
git-svn-id: svn://10.0.0.236/trunk@50729 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:47:08 +00:00
kmcclusk%netscape.com
440593ffd1 When submitting a form using a "get" method only add the ? if the href does not end in a ?.
bug #16137 r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50725 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:45:02 +00:00
kmcclusk%netscape.com
9827b1d455 Return the value of the option element value attribute if it is present otherwise return
the content of the option. bug #16158. r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50724 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:41:40 +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
pollmann%netscape.com
c41e517028 Bug 15180: Don't add a Referer line to the HTTP post data, as Necko already adds one. r=harishd
git-svn-id: svn://10.0.0.236/trunk@50533 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:54:47 +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
288ad892dc Backing out changes made while tree was closed.
git-svn-id: svn://10.0.0.236/trunk@50480 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:01:49 +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
pollmann%netscape.com
419cb327c4 Bug 15841: Don't default to selecting item 0 of a listbox
Bug 15769: Default select item 0 when adding or removing opt to combo
r=harishd


git-svn-id: svn://10.0.0.236/trunk@50444 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 08:47:29 +00:00
pollmann%netscape.com
7860787b10 Bug 15769: Default select item 0 when adding or removing opt to combo
r=harishd


git-svn-id: svn://10.0.0.236/trunk@50443 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 08:47:22 +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
db039d9432 ifdef'ed out a static counter for debugging. r=kmcclusk b=15637
git-svn-id: svn://10.0.0.236/trunk@50217 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 12:24:11 +00:00
rods%netscape.com
3848b18fe7 Added the COMPAre macro for comparing sizes with NavQuirks
r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@50149 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:46:31 +00:00
rods%netscape.com
32093a83c6 Changed the way the list figures out how high a single item is, it now subtracts out the padding & border instead of just the border
r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@50146 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:39:50 +00:00
rods%netscape.com
f291b097d5 Removed code where standard mode was incorrectly subtracting border size
r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@50145 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:37:02 +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
rods%netscape.com
e6f28ca7ba Added macro to help in figuring Nav Quirks default size for all
controls ifdef for just me r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@50142 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:07:38 +00:00
rods%netscape.com
e414c28907 Added macro to help in figuring Nav Quirks default size for all controls r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@50141 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:04:52 +00:00
kmcclusk%netscape.com
15925c0587 bug=15184 Made <input type=password> a form submitter. Hitting return in a password field
will now submit the form. r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50132 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:54:42 +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
pavlov%netscape.com
743ccfad5b ifdef out the call to CaptureMouse since it is no longer needed r=rods
git-svn-id: svn://10.0.0.236/trunk@49973 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 13:36:39 +00:00
pollmann%netscape.com
1c6394c2d0 Bug 15170: Implement onchange notification for list boxes
git-svn-id: svn://10.0.0.236/trunk@49888 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:43:06 +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
peterl%netscape.com
07e158b4cf removing dead style change code and refereneces to dead style change code
r=troy


git-svn-id: svn://10.0.0.236/trunk@49650 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 04:23:48 +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
8da5559e0f Added new method to tell the listcontrolframe it is about to be rolled up by the combobox
this enables it to unset any temporary selections and restore the actual selection


git-svn-id: svn://10.0.0.236/trunk@49580 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 14:30:33 +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
f896ef768d ifdef out a debug statement
git-svn-id: svn://10.0.0.236/trunk@49578 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 14:26:40 +00:00
rods%netscape.com
457fc28670 removed noisy printf
git-svn-id: svn://10.0.0.236/trunk@49577 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 14:20:45 +00:00
pollmann%netscape.com
644b57b0a4 Bug 13997, Reviewed by HarishD. This fixes the crash during file upload caused by a spurious NS_RELEASE, correctly calculates content-length, and fixes a few post syntax errors. Also fixes a memory leak and uses nsSpecialSystemDirectory, nsFileSpec, and other good things instead of the hacks that were needed before this existed.
git-svn-id: svn://10.0.0.236/trunk@49526 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 02:42:32 +00:00
rods%netscape.com
5b32db8a61 Added ConsumeEvents parameter to CaptureRollupEvents
git-svn-id: svn://10.0.0.236/trunk@49440 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 14:36:17 +00:00
rods%netscape.com
1a85c4c72e Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
added some key support made it so it sets the focus back to the main webshell window when the drop down is closed


git-svn-id: svn://10.0.0.236/trunk@49428 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:37:58 +00:00
rods%netscape.com
040fb8ebb9 Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
git-svn-id: svn://10.0.0.236/trunk@49427 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:36:44 +00:00
rods%netscape.com
b98dd90f9a Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
Removed focus listener and ForcedRedraws


git-svn-id: svn://10.0.0.236/trunk@49426 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:36:32 +00:00
rods%netscape.com
1d03e9205f Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
It also measures W & w for the the chars width in NavQuirks mode to get more accurate measurement of the width and height


git-svn-id: svn://10.0.0.236/trunk@49425 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:34:32 +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
rods%netscape.com
7ccaf3a617 Removed L&F static IID & CID
git-svn-id: svn://10.0.0.236/trunk@49423 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:32:54 +00:00
rods%netscape.com
685bd93c22 Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
git-svn-id: svn://10.0.0.236/trunk@49422 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:31:40 +00:00
rods%netscape.com
4ed34567a9 Changed getVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
git-svn-id: svn://10.0.0.236/trunk@49421 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:30:04 +00:00
rods%netscape.com
ba11316019 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@49420 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:26:29 +00:00