68 Commits

Author SHA1 Message Date
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
kin%netscape.com
d848b855b4 Fix for bug #43208: readonly text fields are not readonly
Modified CreateAnonymousContent() and AttributeChanged()
to set the editor's readonly and disabled flags.
r=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@74165 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 13:51:37 +00:00
akkana%netscape.com
84c9d71b9a 38232 (nsbeta2+): Make line break character configurable in the
output system, and use \n (the DOM linebreak character) when getting
output from text controls.  Also fix some warnings.  r=kin.


git-svn-id: svn://10.0.0.236/trunk@73925 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 19:46:59 +00:00
cmanske%netscape.com
ec6be6cf62 Fixed setting value on multiline textarea - get value from content node instead of frame. Fixed by kin, b=42646, r=mjudge, a=beppe
git-svn-id: svn://10.0.0.236/trunk@73707 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 23:38:26 +00:00
kin%netscape.com
682a69e783 Backout passing of PR_FALSE to GetText() in CreateAnonymousContent(). That
was a debug change in my tree that I accidentally included in my previous
checkin.


git-svn-id: svn://10.0.0.236/trunk@73690 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 21:23:35 +00:00
kin%netscape.com
b1c5d5cd44 Fix for bug #43679: lose sender when scrolling in the addressing pane
Modified CreateAnonymousContent() to use mCachedState if it exists.

r=ducarroz@netscape.com


git-svn-id: svn://10.0.0.236/trunk@73688 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 20:51:08 +00:00
kin%netscape.com
f65d1b5fba Fix for bug #42178 Back causes data corruption
Modified CreateAnonymousContent() so that if the text widget has
a default value, it adds it as a text node under the div after it
is created. Add better error checking to avoid possible problems.
Removed calls to SetTextControlState() that were used
to initialize the text widget contents from GetPrefSize() because
it was causing a reflow within a reflow and the editor to be re-entered.
Added missing call to GetText() in Reset().

r=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@73592 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 14:51:58 +00:00
jfrancis%netscape.com
890c0d5e35 fixing max text length initialization for text fields. 43275
git-svn-id: svn://10.0.0.236/trunk@73576 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 05:51:34 +00:00
sfraser%netscape.com
3ace47ff12 Fix for 44118 and nsbeta2+ bug 42625, r=kin. Update selection-based commands (e.g. cut/copy) when the selection changes from collapsed to non-collapsed and vice versa, not just when it is uncollapsed.
git-svn-id: svn://10.0.0.236/trunk@73554 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:36:10 +00:00
mjudge%netscape.com
e40b754d98 oninput and on change now firing. this should be working completely now. bug 42045 uncommenting out lines that I had commented out for someone on accident. also this fixes listeners not firing for textareas and only for text inputs. pdt+dogfood+ ect.
git-svn-id: svn://10.0.0.236/trunk@73508 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 05:17:58 +00:00
mjudge%netscape.com
a8730b8081 removing observer. put in on accident. editor will handle oninput changes. if not i can un comment this
git-svn-id: svn://10.0.0.236/trunk@73381 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 04:16:44 +00:00
mjudge%netscape.com
771787b6c1 r=jfrancis,r=hyatt 42045 beta2+ 42675 beta2+ hitting return on text area not putting new line. onchange,oninput.
git-svn-id: svn://10.0.0.236/trunk@73374 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 04:00:12 +00:00
ducarroz%netscape.com
af2a45c882 Fix for bug 43575. Back out a line that Rods accidently change while checkin rev 1.40 R=hyatt
git-svn-id: svn://10.0.0.236/trunk@73289 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 05:26:28 +00:00
rods%netscape.com
26ec507dd2 Better fix for printf spewage.
git-svn-id: svn://10.0.0.236/trunk@73056 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 13:19:50 +00:00
vidur%netscape.com
91fa351b69 Getting rid of debug spewage left in by one of the last couple of checkins
git-svn-id: svn://10.0.0.236/trunk@73045 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 05:51:07 +00:00
mjudge%netscape.com
88b03321ef fix for 42188,42347 r=akkana . use selection controller to tell the doc if it should display non-text-selection.
git-svn-id: svn://10.0.0.236/trunk@73024 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:01:19 +00:00
rods%netscape.com
6601b1f95f It wasn't call the NavQuirks sizing code when in NavQuirks mode.
Bug 42521,41629 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@73018 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 02:30:38 +00:00
dbaron%fas.harvard.edu
e01c1a7a60 Fix leak of nsInputDimensionSpec. r=waterson
git-svn-id: svn://10.0.0.236/trunk@72973 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:49:02 +00:00
hyatt%netscape.com
fd933e0e96 Turning on the new tree widget. Bug#30511, r=evaughan
git-svn-id: svn://10.0.0.236/trunk@72552 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-19 22:57:39 +00:00
sfraser%netscape.com
f5dc32b34c Fix bug 42145 -- need to clear the editor out of the editor controller when the text frame is going away (like when its content is hidden in a popup window). r=kin
git-svn-id: svn://10.0.0.236/trunk@72348 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-16 06:09:33 +00:00
rbs%maths.uq.edu.au
de23cc3486 Change invalid REC-html40 to correct XHTML namespace. b:7834. a:ekrock@netscape.com
git-svn-id: svn://10.0.0.236/trunk@72300 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-15 09:54:41 +00:00
mjudge%netscape.com
6e990f8280 handling of on input. adding selection change notifications to commands. we must tell the document when selection happens in the input fields. regriession from 34986, r=saari a=pdt+
git-svn-id: svn://10.0.0.236/trunk@72177 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 03:01:31 +00:00
mjudge%netscape.com
1b7d75c3db didnt implement selection. bug=34896. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@71923 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-09 21:55:50 +00:00
mjudge%netscape.com
6209ff4eb0 form elements now accept a nsIFormFrame instead of the implementation as the parameter to allow others that inheirit from nsIFormFrame to call "CanSubmit". bug=34896 ender-lite, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@71882 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-09 07:16:20 +00:00
mjudge%netscape.com
8fa1c2f4b0 not in build, bug 34896
git-svn-id: svn://10.0.0.236/trunk@71877 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-09 05:13:32 +00:00
mjudge%netscape.com
8e98182161 bug=34896 setting up initial text to work after evaughns box changes to ender-lite. a=beppe, r=evaughn,r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@71682 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 01:21:03 +00:00
evaughan%netscape.com
3640c7b6b3 Fixed for ender-lite painting problems. bug #34896
-r mjudge


git-svn-id: svn://10.0.0.236/trunk@71573 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-06 01:25:03 +00:00
brade%netscape.com
7d358cfcd5 #ifdef appropriately for ENDER_LITE (especially Macintosh); blocking Macintosh development; bug #41323; a=beppe; r=kin; a/r=mjudge
git-svn-id: svn://10.0.0.236/trunk@71384 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 20:57:10 +00:00
rods%netscape.com
0d2a64ae4e now checks to see if an explicit width or height is being set and then set the maxElementSize properly
it already did this for NavQuirks, this is for Standard mode
Bug 40621 r=dcone


git-svn-id: svn://10.0.0.236/trunk@71370 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 14:37:27 +00:00
mjudge%netscape.com
26495f08d9 bug = 34896. changing caret use to not demand a presshell. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@71232 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 02:39:52 +00:00
kin%netscape.com
d7bccacbfb Part 1 of fix for bug #39821: Drag and Drop interferes with selection.
layout/base/public/nsIFrameSelection.h
  layout/base/src/nsSelection.cpp
  layout/events/src/nsEventStateManager.cpp
  layout/html/base/src/nsFrame.cpp
  layout/html/forms/src/nsGfxTextControlFrame2.cpp
  xpfe/browser/resources/content/navigatorDD.js

r=brade@netscape.com,cmanske@netscape.com a=beppe@netscape.com,waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@70855 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-25 20:04:02 +00:00
mjudge%netscape.com
39916df945 not in build yet. when switch is thrown I will get a code review/approval
git-svn-id: svn://10.0.0.236/trunk@70507 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-19 07:07:23 +00:00
mjudge%netscape.com
9b9fe9f731 not in build yet. when i turn on ender-lite i will get a huge approval/review
git-svn-id: svn://10.0.0.236/trunk@70490 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-19 00:12:14 +00:00
mjudge%netscape.com
b8ec5ab39a oops left in debugging header
git-svn-id: svn://10.0.0.236/trunk@70192 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 00:07:34 +00:00
mjudge%netscape.com
5a98fd8081 not in build yet...
git-svn-id: svn://10.0.0.236/trunk@70180 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 23:45:42 +00:00
mjudge%netscape.com
11cb811217 more ender-lite enhancements
git-svn-id: svn://10.0.0.236/trunk@70129 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 22:42:00 +00:00
mjudge%netscape.com
d852583364 fixes for RegUnRegAccessKey
git-svn-id: svn://10.0.0.236/trunk@70033 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 12:18:36 +00:00
mjudge%netscape.com
5c9fccf9c2 not in build yet. default text now works..
git-svn-id: svn://10.0.0.236/trunk@69961 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 03:38:26 +00:00