3946 Commits

Author SHA1 Message Date
timeless%mozdev.org
bf2ecb1622 Bug 73748 Remove nsJSComponentManager.js and nsJSSupportsUtils.js
patch by doron@netscape.com r=timeless sr=rbs


git-svn-id: svn://10.0.0.236/trunk@141492 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-20 20:46:25 +00:00
leon.zhang%sun.com
d7f40ef4bd Bug 199412: optimize nsTypedSelection::ScrollIntoView r/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@141464 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-20 01:03:40 +00:00
brade%netscape.com
c404793fc8 handle utf8 font names bug 201233; patch by taka, r=brade, sr=jag
git-svn-id: svn://10.0.0.236/trunk@141379 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 13:12:13 +00:00
jaggernaut%netscape.com
c0c8702351 Bug 145243: warning should be presented if user attempts cancellation of publish. r=kaie, sr=hewitt, moa=brade
git-svn-id: svn://10.0.0.236/trunk@141378 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 12:59:52 +00:00
seawood%netscape.com
fd152f541a Implement mozcomps static build variant.
Remove unnecessary EXPORT_LIBRARY settings.
Bug #201602 r=bryner


git-svn-id: svn://10.0.0.236/trunk@141327 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 19:19:42 +00:00
kairo%kairo.at
81cde04677 bug 202312 - localeVersion update for 1.4b, r=rchen, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@141326 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 18:43:57 +00:00
alecf%netscape.com
c998443e25 fix for plaintext editor, fallout from bug 201982
sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@141323 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 18:28:35 +00:00
kin%netscape.com
733361e518 Fix for bugzilla 91131(Cannot spellcheck selection)
First pass implementation of spellcheck selection feature:

  editor/composer/src/nsEditorSpellCheck.cpp
  editor/idl/nsIEditorSpellCheck.idl
  editor/txtsvc/public/nsITextServicesDocument.h
  editor/txtsvc/src/Makefile.in
  editor/txtsvc/src/nsTextServicesDocument.cpp
  editor/txtsvc/src/nsTextServicesDocument.h
  editor/ui/composer/content/ComposerCommands.js
  editor/ui/dialogs/content/EdSpellCheck.js
  mailnews/compose/resources/content/MsgComposeCommands.js

r=jfrancis@netscape.com,brade@netscape.com  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@141315 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 14:29:08 +00:00
brade%netscape.com
672b3839a4 editor changes for drag/drop/copy/paste hooks (bug 197121) r=jfrancis, sr=smfr
git-svn-id: svn://10.0.0.236/trunk@141304 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 13:18:51 +00:00
jaggernaut%netscape.com
797cb9f849 Bug 198546: Format -> Font submenu doesn't deal with "unknown" font. r=glazou, r=Neil, sr=bryner, moa=brade.
git-svn-id: svn://10.0.0.236/trunk@141297 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 07:35:55 +00:00
alecf%netscape.com
272139fbdf fix for bug 201982 - r=brade, sr=smfr
nsIEditProperty was an interface with no methods and only static members - moved it to an entirely static class.


git-svn-id: svn://10.0.0.236/trunk@141290 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-17 05:42:33 +00:00
kaie%netscape.com
1306f85f65 b=201974 Caret partially/completely visible with initial <p> </p>
r=jfrancis sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@141255 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-16 20:18:41 +00:00
shliang%netscape.com
fa956386c7 bug 107877. default font prefs for msg compose. r=neil, brade, sr=sspitzer, jag.
git-svn-id: svn://10.0.0.236/trunk@141236 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-16 07:07:10 +00:00
suresh%netscape.com
fb529fcb19 fix for bug 202150 - Insert Menu lacking id attributes. r/sr-smfr.
git-svn-id: svn://10.0.0.236/trunk@141204 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 23:03:33 +00:00
kaie%netscape.com
7f3ff56e4b b=68767 extra blank space added when block level element (hr, table) is inserted at the end of a line, between two lines
r=jfrancis sr=kin


git-svn-id: svn://10.0.0.236/trunk@141196 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 20:53:15 +00:00
brade%netscape.com
7c86a6fce4 add insertion listener; bug 192567 (r=jfrancis, sr=kin)
git-svn-id: svn://10.0.0.236/trunk@141181 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 14:07:30 +00:00
brade%netscape.com
70e9b4c7dc updated insertHTML* methods; bug 192567 (r=jfrancis, sr=kin)
git-svn-id: svn://10.0.0.236/trunk@141180 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 14:00:08 +00:00
brade%netscape.com
0ceb7abab4 add new idl file; bug 192567 (r=jfrancis, sr=kin)
git-svn-id: svn://10.0.0.236/trunk@141179 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 13:57:38 +00:00
brade%netscape.com
02a7c94dcc new idl file for bug 192567 (r=jfrancis, sr=kin)
git-svn-id: svn://10.0.0.236/trunk@141178 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 13:56:53 +00:00
brade%netscape.com
d5e60c1601 add document commands for toggling image animation/plugins, clearing undo stack; r/sr=sfraser (patch in bug 195506)
git-svn-id: svn://10.0.0.236/trunk@141177 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 13:53:51 +00:00
bzbarsky%mit.edu
99037d7097 Make CreateContextualFragment know what document the fragment is destined for.
Fixes some issues with images and innerHTML.  Bugs 198486, 198989, 201865.
r=jfrancis, sr=jst


git-svn-id: svn://10.0.0.236/trunk@141144 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 01:09:09 +00:00
bzbarsky%mit.edu
ad025b22c0 MakeList is redundant with AppendList. Bug 179810, r=jfrancis, sr=kin
git-svn-id: svn://10.0.0.236/trunk@141084 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-13 04:30:16 +00:00
jaggernaut%netscape.com
528007a342 Bug 201609: Cancelling publish doesn't really cancel currently executing uploads
. r=ssu, sr=bryner, moa=brade. Note that this bug depends on bug 201610 being fi
xed.


git-svn-id: svn://10.0.0.236/trunk@141026 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 13:20:20 +00:00
alecf%netscape.com
2795f737e2 fix for bug 199170 - convert editor over to using nsStaticAtoms
r=brade, sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@141003 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 21:04:07 +00:00
sfraser%netscape.com
cca394e9cb Appease the Windows __stdcall gods. Bug 201257.
git-svn-id: svn://10.0.0.236/trunk@141000 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 20:45:17 +00:00
sfraser%netscape.com
4a0df27c9c Fix bug 201257 -- clean up use of nsIControllerCommandManager by editor:
Renaming nsIControllerCommandManager to nsIControllerCommandTable to reduce confusion.
Moving the immutability flag from the nsBaseCommandController to the nsControllerCommandTable.
Renaming the 'refcon' on nsIControllerContext to 'context', and giving nsIControllerContext an Init() method that optionally takes a command table.
Fixing the editor and composer module code to create pre-filled nsIControllerCommandTables as services, and the controller constructors to create singleton command tables with do_GetService.
r=brade, sr=alecf.


git-svn-id: svn://10.0.0.236/trunk@140988 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 18:44:03 +00:00
kin%netscape.com
dcb54fbdfe Fix for bug 199490: A crash occurs after clicking in (HTML tags )document - Trunk [@
nsHTMLEditor::SetFinalSize]

  - A one line fix in HideResizers() which prevents the
    reported crash by setting mIsResizing to false. I assume
    we can't be resizing if the resize handles are being hidden.
    The assertion and null check in SetFinalSize() are just because
    I'm paranoid, but they should never be triggered if HideResizers()
    is called first.

  - The changes in StartResizing() makes it so that we don't create
    a new mouse motion listener if we already have one. We were
    creating a new listener each time we clicked on the handles, and
    never unregistering the old one ... this meant that the old
    listeners could be triggered if the editor were ever destroyed
    and the document left in tact ... allowing us to crash because the
    listeners keep an un-addref'd pointer to the HTMLEditor. Note that
    this crash is not likely to be hit in Mozilla since we always
    destroy the document and editor in Composer and MailCompose, but
    it can happen in an embedding context.

r=glazman@netscape.com  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@140921 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-09 21:10:58 +00:00
kin%netscape.com
85050dbdbe Fix for bug 200549:Double click selects just the image in a -moz-user-select:all
subtree


mozilla/editor/libeditor/html/nsHTMLEditor.cpp
    - jfrancis' fix for netscape bug 615240 (applying mozilla patch
      on branch. Fixing problems of improper handling of del and
      backspace keys with file attachments.) which was originally
      landed in revision 1.445.6.3. This patch is necessary to make
      the fix for bug 200549 work properly.

r=sfraser@netscape.com  sr=kin@netscape.com


mozilla/editor/libeditor/html/nsHTMLEditorMouseListener.cpp
mozilla/editor/libeditor/html/nsHTMLEditorMouseListener.h

    - Modified nsHTMLEditorMouseListener::MouseDown() to
      call FindUserSelectAllNode() so that the root of a
      -moz-user-select:all subtree gets selected during
      a double or context click.

    - Modified nsHTMLEditorMouseListener so that it stores an nsHTMLEditor*
      instead of an nsIEditor* so we could have access to FindUserSelectAllNode().

r=brade@netscape.com  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@140807 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-07 14:32:23 +00:00
kin%netscape.com
811daa38c7 Fix for bug 42046: One click select and drag for images, hrs, and -moz-user-select:all
subtrees


mozilla/layout/html/base/src/nsFrame.cpp

  - Added utility method ContentContainsPoint()
  - Modified HandlePress() to allow selection of images, hrs and
    -moz-user-select:all subtrees, and then disable selection
    processing of drag events.


mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp

    - Modified InsertFromDrop() so that it prevents a drop from
      happening in a -moz-user-select:all subtree. (Temporary
      workaround to avoid bug 195957 and bug 195959)

r=mjudge@netscape.com  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@140805 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-07 14:28:51 +00:00
neil%parkwaycc.co.uk
f0130ad5f8 Bug 193712 Text and highlight colours don't translate rgb in css mode r=glazman sr=kin
git-svn-id: svn://10.0.0.236/trunk@140794 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-07 08:11:21 +00:00
neil%parkwaycc.co.uk
05843488ba Bug 192084 cannot assign multiple classes to elements r=glazman sr=kin
git-svn-id: svn://10.0.0.236/trunk@140793 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-07 08:09:56 +00:00
kin%netscape.com
fd1509505d Fix for bug # :Hiding resize handles triggers assertion in ~nsGenericHTMLElement()
Modfied DeleteRefToAnonymousNode() so that it set the content node's document and parent to nsnull.

r=brade@netscape.com  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@140710 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 20:51:36 +00:00
kin%netscape.com
d43528516f Fixes for bug 192569 (allow foreign transactions to be added to the queue)
mozilla/editor/idl/nsIEditor.idl
mozilla/editor/libeditor/base/nsEditor.cpp
mozilla/editor/libeditor/base/PlaceholderTxn.cpp
mozilla/editor/libeditor/html/nsHTMLCSSUtils.cpp
mozilla/editor/libeditor/html/nsHTMLEditor.cpp
mozilla/editor/libeditor/text/nsTextEditRules.cpp

  - Renamed nsIEditor::Do() to nsIEditor::DoTransaction() so that it
    can be called from JavaScript.

  - Cleaned up nsEditor::Begin/EndUpdateViewBatch() so that
    nothing happens outside the check of mUpdateCount.

  - Modified PlaceholderTxn.cpp so that it checks to see
    if a merged transaction implements nsPIEditorTransaction
    before attempting to cast it to (EditorTxn*).

mozilla/editor/ui/composer/content/EditorCommandsDebug.js
mozilla/editor/ui/composer/content/editorOverlay.xul
mozilla/editor/ui/composer/locale/en-US/editorOverlay.dtd

  - Added debug menu items to test execution of foreign transactions
    via the txnmgr and editor.

r=jfrancis@netscape.com  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@140707 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 20:50:25 +00:00
kin%netscape.com
a2cc97e02b Fix for bug #195959: Drop causes image in -moz-user-select:all subtree to be duplicated
Prevent nsHTMLEditRules::CreateStyleForInsertText() from trying to split non-container nodes.


r=jfrancis@netscape.com  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@140698 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 15:29:59 +00:00
jaggernaut%netscape.com
e3a8911663 Add defined(XP_MACOSX) to bail early when !mInIMEMode. r=brade, sr=lumpy
git-svn-id: svn://10.0.0.236/trunk@140694 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 13:26:12 +00:00
jaggernaut%netscape.com
1d7b08a381 Bug 200638: fix drag copy modifier key on Mac OS X. r=Neil, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@140691 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 12:48:23 +00:00
sfraser%netscape.com
3bb2704dcc Remove nsIIndpendentSelection, moving its one method onto nsISelectionPrivate. Bug 192827. r/sr=kin.
git-svn-id: svn://10.0.0.236/trunk@140665 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 01:45:06 +00:00
neil%parkwaycc.co.uk
e9c650e124 Bug 198878 Preferences>Composer>Toolbars says Preview while Composer's toolbar says Browse r=brade sr=dmose
git-svn-id: svn://10.0.0.236/trunk@140636 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-03 09:08:57 +00:00
brade%netscape.com
0c8c6bf3da require all users of htmleditor to have EditorOverride.css so resizing will work
; bug 196075; r=jfrancis, sr=bryner


git-svn-id: svn://10.0.0.236/trunk@140634 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-03 08:05:23 +00:00
brade%netscape.com
9cd643298a make EditorOverride.css a resource; fix bug 196075; r=jfrancis, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@140633 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-03 08:01:49 +00:00
seawood%netscape.com
5921049139 Purge XP_PC.
Bug #56767 r=mkaply sr=alecf


git-svn-id: svn://10.0.0.236/trunk@140602 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 22:45:08 +00:00
henry.jia%sun.com
365360b6e3 Patch for bug 35296: SetCaretEnabled() takes too long
Patch by Leon.Zhang@sun.com
r=sfraser, sr=kin


git-svn-id: svn://10.0.0.236/trunk@140561 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 05:48:09 +00:00
bryner%netscape.com
fe5689ff22 Oops, removing ^M characters. Fixing IRIX bustage.
git-svn-id: svn://10.0.0.236/trunk@140557 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 04:52:53 +00:00
bryner%netscape.com
cf55de1ca0 Fix ctrl+enter in the mail compose window by getting rid of editor's key listeners in the client event pass entirely (everything now happens in the system event pass). r=brade, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@140541 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 03:31:18 +00:00
dbaron%dbaron.org
83ccf5d878 Remove unused file. b=198627 r+sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@140497 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 19:32:59 +00:00
brade%netscape.com
dd70a96507 correct some API changes; add a few more commands; still incomplete (NOT PART OF BUILD)
git-svn-id: svn://10.0.0.236/trunk@140480 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 09:54:28 +00:00
jkeiser%netscape.com
4fda0c90df Fix .originalTarget problems in editor (bug 193689), r=brade@netscape.com, sr=jst@netscape.com, a=asa
git-svn-id: svn://10.0.0.236/trunk@140478 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 06:12:51 +00:00
sfraser%netscape.com
2d3415b2be Fix for bug 199320 -- random composer crashes. Remove code that set the editor as a refCon on a controller which was created in JS, because it's unnecessary, and because the JS has no callbacks that allow it to null out the refCon when that editor is destroyed, leading to stale references which crash XPConnect. r=brade, sr=kin, a=asa.
git-svn-id: svn://10.0.0.236/trunk@140456 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-31 19:08:00 +00:00
alecf%netscape.com
f24ccb3da0 landing attempt #2 for 195262 - support for static atoms, and converting atoms over to UTF8 to reduce bloat - now without performance regressions!
sr=darin, r=dbaron


git-svn-id: svn://10.0.0.236/trunk@140260 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 18:55:59 +00:00
kin%netscape.com
4746a8bd68 Fix for bug 199133: mfc embed drag&drop doesn't work within same editor
Make DragOver() consume the drag event so that the default browser drag listener that is present during embedding, isn't triggered.

r=brade@netscape.com sr=dbaron@dbaron.org


git-svn-id: svn://10.0.0.236/trunk@140252 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 15:38:17 +00:00