300 Commits

Author SHA1 Message Date
jfrancis%netscape.com
84db5fa624 fixes bugs 46782,50161,48643,49266,49265,46395;
groundwork for bugs 47931,49952;
r=fm


git-svn-id: svn://10.0.0.236/trunk@77257 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-26 04:03:50 +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
53a5ee47bc Fixes for 48474 (JS errors typing in plain text compose), 44684 (make align buttons reflect state), 49155 (UMR in editor code). r=anthonyd
git-svn-id: svn://10.0.0.236/trunk@77021 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 01:20:29 +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
scc%mozilla.org
9e28a8b643 fixing code that relied on implicit string construction; note that |NS_LITERAL_STRING| does not produce an |nsString|, it produces something that is a |nsAReadableString|. Many functions still take |nsString&| arguments, and so |NS_LITERAL_STRING| is not appropriate in calling them, yet.
git-svn-id: svn://10.0.0.236/trunk@76734 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-20 00:34:08 +00:00
jfrancis%netscape.com
693d1707a2 fix for 48132: editor observer list maintainance was even less safe than i would have guessed...
git-svn-id: svn://10.0.0.236/trunk@76537 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 04:50:04 +00:00
jfrancis%netscape.com
0b49f3bca3 fix for 48297: ome edit operations not scroling selection into view; r=fm
git-svn-id: svn://10.0.0.236/trunk@76262 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 02:39:37 +00:00
ducarroz%netscape.com
3e01b25fda Part of fix for bug 36480. I check in this fix for jfrancis. The function EndOfDocument which wasn't used yet was setting the selection on the wrong node. R=ducarroz
git-svn-id: svn://10.0.0.236/trunk@75759 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 04:05:26 +00:00
shanjian%netscape.com
309c493895 #14022 IME98 Reconversion does not work in HTML Editor
r = jfrancis
a = ftang
fix proposed by m_kato@ga2.so-net.ne.jp

New events are added to support reconversion. As a result, many files
are affected. They are:
editor:
  nsEditor.h nsEditor.cpp nsEditorEventListeners.cpp nsEditorEventListeners.h
  nsHTMLEditor.h nsHTMLEditor.cpp nsIEditorIMESupport.h
dom and layout:
  nsIPrivateCompositionEvent.h nsDOMEvent.h nsDOMEvnet.cpp nsEventListenerManager.cpp
  nsIDOMCompositionListener.h
widget:
  nsGUIEvent.h nsWindow.h nsWindow.cpp


git-svn-id: svn://10.0.0.236/trunk@75606 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 21:43:29 +00:00
kin%netscape.com
ed8c32d80b Fix for bug #42263: Unable to invoke IME in the receipient and subject field on plain text mail composer
Replaced GetDeepestWidget() with new function GetEditorContentWindow().
Modified ForceCompositionEnd() to call GetEditorContentWindow().

r=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@74395 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 22:11:31 +00:00
jfrancis%netscape.com
b583093ee1 adding in support for nsIEditorObserver. 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@74299 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-16 06:36:27 +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
anthonyd%netscape.com
57bfacee97 fix for regression, bug#45477
cant insert hrules, images, etc...
r=brade, a=granrose


git-svn-id: svn://10.0.0.236/trunk@74254 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 18:38:24 +00:00
mjudge%netscape.com
1f23cf0495 anthonyd: r=mjudge bug 39919 letting DOM level 2 stuff work for the editor. eliminating createelementNS and using the factory instead.
git-svn-id: svn://10.0.0.236/trunk@74199 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:15:41 +00:00
jfrancis%netscape.com
6ca6c35a74 fix for 43366; r=kin
git-svn-id: svn://10.0.0.236/trunk@74016 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 19:51:36 +00:00
cmanske%netscape.com
d916040dae Table editing work. b=20973, r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@73607 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 00:37:12 +00:00
jfrancis%netscape.com
6e3a97f5c5 fix for undo in ender-lite (text fields, url bar, etc)
git-svn-id: svn://10.0.0.236/trunk@73575 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 04:58:34 +00:00
jfrancis%netscape.com
aa3d7d7f48 bug fixes:
41744 - editor shouldnt be quite as loosy goosy about html 4.0 as CnavDTD is;

41746 - editor ui state (paragraph format feedback) wrong if a <br> is embedded inside the current block;

41971 - using alignment inside table cells gives unexpected results.


git-svn-id: svn://10.0.0.236/trunk@73515 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 09:23:41 +00:00
mjudge%netscape.com
eac23d41e2 wrong ifdef. 25% increase in editor typing on windows r=ftang
git-svn-id: svn://10.0.0.236/trunk@73373 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 03:41:32 +00:00
mjudge%netscape.com
57f0cefd69 fix for 42188, r=akkana 42347. use selection controller to tell the doc if it should display non-text-selection.
git-svn-id: svn://10.0.0.236/trunk@73023 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:00:45 +00:00
cmanske%netscape.com
290fb40fb7 Implement switching betweeen TH and TD elements for table editing. b=20973, r=jfrancis, akkana
git-svn-id: svn://10.0.0.236/trunk@72891 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:39:54 +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
dbaron%fas.harvard.edu
7f52a2baa5 Fix leaks of nsHTMLHeadElement. r=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@72271 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-15 02:14:16 +00:00
cmanske%netscape.com
bc2671681c Fixed problem in nsEditor::CloneAttributes where undo system used when it shouldn't. b=41862. r=sfraser. a=beppe
git-svn-id: svn://10.0.0.236/trunk@72168 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 01:32:27 +00:00
mjudge%netscape.com
9ac751705d bug=34896 changing use of CreateElement to CreateElementNS. this was necessary outside of ender-lite also. good change. r=jfrancis a=beppe
git-svn-id: svn://10.0.0.236/trunk@71679 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 01:18:12 +00:00
mjudge%netscape.com
3161e04a02 fixing caret usages. hiding caret now is done by giving the stack destructor a caret * not a presshell
git-svn-id: svn://10.0.0.236/trunk@71231 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 02:38:13 +00:00
jfrancis%netscape.com
ed99ef899d fixes:
14753, 29843, 39864, 40141, 
40139, 36679, 39542, 34729, 
34855, 37216, 39292, 26447

r=sfraser,cmanske,fm; a=beppe


git-svn-id: svn://10.0.0.236/trunk@70759 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 23:00:24 +00:00
mjudge%netscape.com
78cd7564f7 no point in turning off the link handler if we are allready in text only mode.
git-svn-id: svn://10.0.0.236/trunk@69746 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-15 05:18:45 +00:00
mjudge%netscape.com
fee885fd3f changes to add hidden attribute on selection. also to make setcaret go through the selection controller
git-svn-id: svn://10.0.0.236/trunk@69174 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-11 04:22:32 +00:00
jfrancis%netscape.com
994d0de6a6 editor embedding work; fixing bug with making lists
git-svn-id: svn://10.0.0.236/trunk@68883 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-09 21:06:49 +00:00
mjudge%netscape.com
f2fb0e21c6 we get selection controller not from pres shell. we get it from GetSelectionController
git-svn-id: svn://10.0.0.236/trunk@68629 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-08 04:01:26 +00:00
jfrancis%netscape.com
ce54ba7bc9 fixing bugs with paste; making paste not inherit local inline stlyes
git-svn-id: svn://10.0.0.236/trunk@68414 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-05 20:42:36 +00:00
mjudge%netscape.com
f7f4dc1659 merge error. my fault. fix
git-svn-id: svn://10.0.0.236/trunk@68221 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 09:32:40 +00:00
mjudge%netscape.com
447ac72532 massive change to prepare for ender-lite. should be a no-op for current implementation
git-svn-id: svn://10.0.0.236/trunk@68218 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 08:33:48 +00:00
jfrancis%netscape.com
c1c92a17d8 implementing list behavior spec, plus a few bug fixes
git-svn-id: svn://10.0.0.236/trunk@67974 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-03 00:14:28 +00:00
mjudge%netscape.com
aacbb20c68 massive change to stop the editor fromknowing about nsIPresShell or nsIDocument
git-svn-id: svn://10.0.0.236/trunk@67485 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 06:20:36 +00:00
mjudge%netscape.com
24b8f29c46 ender lite checkin.
git-svn-id: svn://10.0.0.236/trunk@67387 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 07:37:12 +00:00
akkana%netscape.com
b2aefd93c7 Change Save File APIs in layout and editor to eliminate the specific
references to text and html and make them more general (take a mime type).
In the editor, prettyprint all output if editor.prettyprint_html is set.


git-svn-id: svn://10.0.0.236/trunk@67155 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:00:50 +00:00
jfrancis%netscape.com
612bfa299f lots of improvements to block transformations:
1) looks inside inlines for breaks;
2) fixes the "extra break when unlisting" bug
3) changing paragraph style to normal consistently gets breaks
4) any splitting needed occurs when blocks inserted
plus a lot of small bug fixes


git-svn-id: svn://10.0.0.236/trunk@66975 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 11:51:12 +00:00
scc%netscape.com
4f0c5e3591 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66273 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 07:44:58 +00:00
nisheeth%netscape.com
68adc31658 Fix for bug 30958: Reflow commands are now processed asynchronously all the time. The semantics of the API for queuing and processing reflow commands has changed. Now, AppendReflowCommand() initiates an asynchronous reflow event and all reflow command processing happens when that event fires. It is no longer possible for consumers outside the presentation shell to call ProcessReflowCommands() synchronously. Because of this change, reflow locks are no longer needed and have been removed.
git-svn-id: svn://10.0.0.236/trunk@66183 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 07:13:57 +00:00
cmanske%netscape.com
d2540f15c6 Lots and lots of bug fixes and XUL widget conversions. Work in progress, but must checkin to allow XPFE to fix bugs
git-svn-id: svn://10.0.0.236/trunk@65942 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 03:19:31 +00:00
jfrancis%netscape.com
86d514b5e7 Wrote RemoveAllInlineProperties() to deal with clearing out inline style, and also fixed a bunch of IME bugs.
git-svn-id: svn://10.0.0.236/trunk@65879 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:50:19 +00:00
jfrancis%netscape.com
973e5a251c making editor hip to inline style changes on collapsed selections. plus lots of removal of unused code.
git-svn-id: svn://10.0.0.236/trunk@64489 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 12:53:23 +00:00
scc%netscape.com
99d2180703 small changes to clients of string converting APIs
git-svn-id: svn://10.0.0.236/trunk@64174 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-26 11:39:08 +00:00
akkana%netscape.com
f3ae59e0dc 33208: Fix problem of editor not initializing on pages with JS. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@64093 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-25 02:27:57 +00:00
jfrancis%netscape.com
386e43e682 improved paste performance in editor (WIP) (bug 28783)
set/remove inline stlye rewrite (lots of bug #s)


git-svn-id: svn://10.0.0.236/trunk@63948 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 00:26:47 +00:00
dbaron%fas.harvard.edu
f5d497db18 Fix miscellaneous editor leaks. r=jfrancis@netscape.com
git-svn-id: svn://10.0.0.236/trunk@63807 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 01:14:49 +00:00
cmanske%netscape.com
f86529f366 Finished implementation of menu-driven table selection. Implemented detection of row or column selection. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@63551 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-21 06:05:24 +00:00
ftang%netscape.com
e5a9c3ab53 fix crashing bug 30120. check in for tajima@eng.sun.com since the crash is
verified and test on my machine. r=ftang, a=bobj. Will check into the beta
branch also.


git-svn-id: svn://10.0.0.236/trunk@62749 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-13 02:33:19 +00:00