mjudge%netscape.com
33abd5ded1
bug fix for 48064. rtm++ r=simon a=brendan. pdt=ok. fixes check for valid frame after callonchange. (callonchange may actually destroy the frame underneath us.) also we need to update the focusedvalue when enter/submit is hit. this will save 2 onchange from being fired. one from enter, second from blur.
...
git-svn-id: svn://10.0.0.236/trunk@81684 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 22:08:44 +00:00
sfraser%netscape.com
8379325c00
Fix for 52808 -- standardized nsEditorShell creation and destruction across components, to fix editor observer notification timing. r=kin,ducarroz,jelwell, sr=hyatt.
...
git-svn-id: svn://10.0.0.236/trunk@80787 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 01:45:46 +00:00
waterson%netscape.com
1e7a248bab
Bug 53969. Move anonymous content storage to pres shell; remove obsolete methods from nsIAnonymousContentCreator. r=dbaron, a=hyatt
...
git-svn-id: svn://10.0.0.236/trunk@80717 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 03:08:41 +00:00
mjudge%netscape.com
c28fcc88a1
r=sfrasier a=pdt fixed submitting not sending an on-change event before submit event.
...
git-svn-id: svn://10.0.0.236/trunk@79790 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 00:43:16 +00:00
heikki%netscape.com
82a70c8b59
Fixed bug 52526, the cause was that image load event was bubbling even though the specs say it should not. Previously we were not even sending the load event on image load. I also fixed bug 50478 by fixing the logic in GetBubbles and GetCancelable of the DOMEvent. This helps in testing the first bug. I also fixed several cases where we had wrong combination of event class and event struct type. a=waterson, r=joki,rods.
...
git-svn-id: svn://10.0.0.236/trunk@79545 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 21:47:04 +00:00
kin%netscape.com
a2daff930d
Fix for bug #46396 : select after input confuses session history
...
- 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
2000-09-14 22:39:19 +00:00
mjudge%netscape.com
2fc6190bef
small but pervasive change to make nsIDOMSelection an xpidl interface. also broke it into 2 interfaces, nsISelection and nsISelectionPrivate. moved nsIDOMSelectionListener also to xpidl. these new idl files live in layout/base/public. r=sfraser, r=anthonyd bug 48575
...
git-svn-id: svn://10.0.0.236/trunk@79118 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 11:45:01 +00:00
rayw%netscape.com
d9228441a4
Bug 37275, Changing value of all progids, and changing everywhere a progid
...
is mentioned to mention a contractid, including in identifiers.
r=warren
git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
kin%netscape.com
ab2cde5355
49339 "Saving File" dialog doesn't initially show complete filename
...
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
2000-09-12 22:14:06 +00:00
heikki%netscape.com
648ff744fc
Forgot to check that we fire the select event with Select All. Also fix event.target. Part of bug 46085. r=mjudge.
...
git-svn-id: svn://10.0.0.236/trunk@78900 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 20:54:41 +00:00
mjudge%netscape.com
6f627f4eb5
36130 beta3 bug. 1 line change to scroll selection
...
into view when value is set on text field/area.
git-svn-id: svn://10.0.0.236/trunk@78854 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 06:35:54 +00:00
rods%netscape.com
2c4b4f2915
fixed twips rounding error in calculation
...
b=52135 r=buster
git-svn-id: svn://10.0.0.236/trunk@78767 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 21:22:43 +00:00
kin%netscape.com
9b8fc58349
Added call temporary call to SetInitialValue() in CreateAnonymousContent() to fix
...
the problem where we can't retrieve the password value from the password
dialog. Breaks logging into IMAP.
r=blizzard@mozilla.org a=leaf@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@78516 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 14:55:49 +00:00
pollmann%netscape.com
f972f867ca
Bug 51124: Tabbing into text control now again scrolls it into view if offscreen, also adding additional bulletproofing per code review; r=jst@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@78494 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 05:53:28 +00:00
heikki%netscape.com
6f651fdbf2
Got delayed with changed files, here is the second patch... Fixed bug 22710, load and error events were not firing for images. I also changed the select event firing to use nsEvent instead of nsGUIEvent. r=joki.
...
git-svn-id: svn://10.0.0.236/trunk@78420 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-07 21:03:26 +00:00
kin%netscape.com
a78dd6b7d3
Fix for bug #46396 : select after input confuses session history
...
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
2000-09-07 19:11:23 +00:00
akkana%netscape.com
383539d22b
50821: don't force a bogus 3.2 doctype, and eliminate OutputNoDoctype flag. r=cmanske
...
git-svn-id: svn://10.0.0.236/trunk@78401 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-07 18:40:14 +00:00
sfraser%netscape.com
fb865adb8e
Fix bugs 45881 and 46850 -- general caret cruft. Ensure that caret is clipped to the scrolling view, and fix things so that the caret is properly hidden on scrolling. r=beard
...
git-svn-id: svn://10.0.0.236/trunk@78343 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-07 05:26:25 +00:00
dbaron%fas.harvard.edu
e52da02292
Change uses of CSS properties not part of the CSS2 spec to use -moz- prefix. b=3935
...
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
2000-09-06 02:17:26 +00:00
buster%netscape.com
be5d5e02df
bug 40596 (input type=text form controls with width:auto are not rendering correctly in table cells)
...
r=rods
git-svn-id: svn://10.0.0.236/trunk@78169 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-05 21:22:55 +00:00
rods%netscape.com
72efd65ccb
Changed resizing code to use ave char width for calculating the width of a text field in strict/standard mode
...
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
2000-09-05 13:43:13 +00:00
vidur%netscape.com
b10d4adc57
Fix for bug 46861. nsIDOMWindow is now split into two interfaces: a public interface (still called nsIDOMWindow) for embedders and an internal interface (nsIDOMWindowInternal) for internal use. The union of the two interfaces is still visible from JavaScript. r=jst@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@77828 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 01:54:35 +00:00
anthonyd%netscape.com
294024ffbd
fix for bug# 50847 (regression)
...
r=kin
git-svn-id: svn://10.0.0.236/trunk@77676 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 23:38:26 +00:00
rods%netscape.com
b05e5126c3
backed out changes, for build
...
git-svn-id: svn://10.0.0.236/trunk@77666 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 22:45:59 +00:00
rods%netscape.com
4150f081f1
44656,33312 - We will now size very closely to IE when in Standard mode, the sizing algorithm
...
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
2000-08-30 22:11:05 +00:00
anthonyd%netscape.com
74d7b222e6
fix for bug# 49957 (this is really mjudge checking in)
...
r: anthonyd
git-svn-id: svn://10.0.0.236/trunk@77581 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 04:13:50 +00:00
hyatt%netscape.com
8e0776ee66
Putting fix for 42492 back in. r=ben
...
git-svn-id: svn://10.0.0.236/trunk@77515 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 00:05:59 +00:00
rods%netscape.com
1961c76b08
Backing out Hyatt's changes to fix breakage.
...
git-svn-id: svn://10.0.0.236/trunk@77476 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-29 13:39:18 +00:00
hyatt%netscape.com
b768397018
Fix for 42492. r=ben
...
git-svn-id: svn://10.0.0.236/trunk@77469 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-29 08:36:50 +00:00
heikki%netscape.com
19052f5fb1
Fixed bug 46085. We were not firing the select event. This is the second half of the checkin... had some problems with CVS. jst is watching this checkin. r=mjudge.
...
git-svn-id: svn://10.0.0.236/trunk@77435 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-29 01:47:05 +00:00
rods%netscape.com
332051d33f
New arg passes whether the default size is being used or whether it is explicitly set.
...
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
2000-08-25 13:29:24 +00:00
anthonyd%netscape.com
f4c17f81ff
fix for bug 48624 (hidden selection issues with plain text widgets)
...
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
2000-08-24 03:54:30 +00:00
sfraser%netscape.com
34ede77ed5
Fix UMR bug 49567 by initting a member variable. Also use NS_LITERAL_STRING in one place. r=jfrancis.
...
git-svn-id: svn://10.0.0.236/trunk@77022 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 01:27:48 +00:00
jst%netscape.com
7e0575bfee
DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc
...
git-svn-id: svn://10.0.0.236/trunk@76967 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 17:27:06 +00:00
dbaron%fas.harvard.edu
3b9c9e465a
Fix leak on hovering over a scrollbar and re-fix similar leak for text inputs (bug 42895) by adding a "general" method for unrooting anonymous content created through nsIAnonymousContentCreator, plus a hack to deal with the scrollbars on the root element. Some of the other SetDocumentForAnonymousContent methods *may* need to be implemented. Chris Waterson helped significantly with this patch. r=waterson,hyatt b=45676 (nsbeta3+)
...
git-svn-id: svn://10.0.0.236/trunk@75882 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 12:51:05 +00:00
sfraser%netscape.com
7726da891c
Fix for bug 25161 -- allow editor to handle pages with forms by implementing user-select and user-input for form controls. r=rods, pierre, mjudge.
...
git-svn-id: svn://10.0.0.236/trunk@75830 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:38:00 +00:00
rods%netscape.com
b5b27bd2c4
minor fix for max-element-size. The minsize needs to be calc and cached during the regular reflow
...
there is too much state to be remember to calc the min size for when ever it is asked for it.
(see also fix nsBoxFramae.cpp)
b=40596 r=evaughan
git-svn-id: svn://10.0.0.236/trunk@75787 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 14:27:36 +00:00
pollmann%netscape.com
7db58c7c36
Bug 42662: Values of disabled form elements should not be submitted; r=kmcclusk
...
git-svn-id: svn://10.0.0.236/trunk@75557 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 23:32:02 +00:00
rods%netscape.com
a7f8784c75
if the size attr is ever evaled less than 1 then it is set to 1
...
b=46224, r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@75433 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 22:47:55 +00:00
cmanske%netscape.com
2023ba127b
Fixed crashing bug 42195: Added method to nsIFrameSelection so frame can get limiting content node for parent node searches in text edit fields. r=mjudge
...
git-svn-id: svn://10.0.0.236/trunk@75377 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 01:47:55 +00:00
anthonyd%netscape.com
1355a05c4e
bug fixes:
...
39529 - caret width not correct for single/muti line textfields, which relied on:
46445 - nsLookAndFeel needs to be a service.
r: mjudge@netscape.com , kin@netscape.com
a:beppe
git-svn-id: svn://10.0.0.236/trunk@75084 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 22:12:45 +00:00
kin%netscape.com
b200b0dc2d
Fix for bug #46657 : an Undo past default text value in a TextWidget
...
Modified CreateAnonymousContent() to disable editor undo before
setting the default value, and then reenable it afterwards.
r=brade@netscape.com
git-svn-id: svn://10.0.0.236/trunk@75066 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 13:53:26 +00:00
sfraser%netscape.com
2706e7255d
Fix typo, bug 46260. r=pinkerton.
...
git-svn-id: svn://10.0.0.236/trunk@74987 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 00:56:37 +00:00
mjudge%netscape.com
04f7c7cd04
46209 one of the last beta 2 blockers. adding ability to frames to tell if part of them is visible. idl change to allow nsISelectionController to give CheckVisibility. PresShell actually has the code for nsGfxTextControlFrame to call.
...
git-svn-id: svn://10.0.0.236/trunk@74807 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-26 11:31:12 +00:00
ducarroz%netscape.com
62d3778d9e
Fix for bug 46152. Checkin fix for kin. Partially backup Rods' last change because the reflow function won't be called when the text control is nested into a box (textfield). R=ducarroz
...
git-svn-id: svn://10.0.0.236/trunk@74720 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-25 00:32:35 +00:00
rods%netscape.com
41db943a7f
moved form registration code to Reflow instead of GetPrefSize, it wasn't being called correctly when wi/h was being set via style
...
b=45846 r=kin
git-svn-id: svn://10.0.0.236/trunk@74551 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 21:17:03 +00:00
jfrancis%netscape.com
6d22c9ff81
making the text frame use nsIEditorObserver (instead of nsIDocumentObserver). this is for bug 42329: autocompletion firing in the middle of uncommitted ime entry. r=fm
...
git-svn-id: svn://10.0.0.236/trunk@74300 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-16 06:43:34 +00:00
sfraser%netscape.com
90b67a19b8
Fix for nsbeta2+ bug 31134 -- paste in edit menu not enabled correctly. Add a new command set for clipboard-related menu items, and fire it on Copy. Also ensure that Undo/Redo commands are updated correctly, and avoid bogus command updating in plain text compose (since that caused JS errors). r=kin,jfrancis.
...
git-svn-id: svn://10.0.0.236/trunk@74262 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 21:58:50 +00:00
kin%netscape.com
19eb078c58
Fix for bug #45002 : Password displayed in clear text.
...
layout/html/forms/src/nsGfxTextControlFrame2.cpp
- Modified CreateAnonymousContent() to disable forced
refreshes and reflows in the editor, and call
SetTextControlFrameState() to set the intial value
of the text widget.
- Fixed leak in SetTextControlFrameState().
editor/public/nsIHTMLEditor.h
- Added DisableForcedUpdates and DisableForcedRefreshes flags.
editor/base/nsEditor.cpp
- Modified EndUpdateViewBatch() so that it uses the new
DisableForcedUpdates and DisableForcedRefreshes flags.
- We now also close the reflow batch before we close the
update batch.
r=brade@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74257 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 20:26:09 +00:00
mjudge%netscape.com
d6fdcca880
storing the factory as a weak reference. speeding up ender-lite. r= anthonyd, r= jfrancis
...
git-svn-id: svn://10.0.0.236/trunk@74203 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:20:15 +00:00