Граф коммитов

1773 Коммитов

Автор SHA1 Сообщение Дата
brade%netscape.com 8795f96966 cleanup transferable hooks in editor; defer selection manipulation in plain text; ensure hooks are properly positioned (bug 203062) r=kaie, kin; sr=smfr 2003-04-25 21:05:32 +00:00
brade%netscape.com a8b6dc06df move docshell here to support hook utility methods (bug 203062; r=kin/kaie, sr=smfr) 2003-04-25 21:03:15 +00:00
brade%netscape.com 2e6c9d5ea4 missing hook from bug 192171 (r=brian johnson, sr=sfraser) 2003-04-22 20:32:59 +00:00
sfraser%netscape.com 352be220ed Fix bug 196704: implement commands to get the selected text, and insert text, to allow for embedders (like Camino) to use them, e.g. for the Mac OS X services menu. Also fix image copy. r=brade, sr=kin. 2003-04-22 18:11:12 +00:00
leon.zhang%sun.com 526c0515e9 Bug 199412: optimize nsTypedSelection::ScrollIntoView r/sr=sfraser 2003-04-20 01:03:40 +00:00
alecf%netscape.com 6d56e591d2 fix for plaintext editor, fallout from bug 201982
sr=sfraser
2003-04-17 18:28:35 +00:00
brade%netscape.com 87edb79af7 editor changes for drag/drop/copy/paste hooks (bug 197121) r=jfrancis, sr=smfr 2003-04-17 13:18:51 +00:00
jaggernaut%netscape.com 769b846b52 Bug 198546: Format -> Font submenu doesn't deal with "unknown" font. r=glazou, r=Neil, sr=bryner, moa=brade. 2003-04-17 07:35:55 +00:00
alecf%netscape.com f364fe0cc0 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.
2003-04-17 05:42:33 +00:00
kaie%netscape.com 20a1398f5c b=201974 Caret partially/completely visible with initial <p> </p>
r=jfrancis sr=sfraser
2003-04-16 20:18:41 +00:00
kaie%netscape.com 4c382bfcd4 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
2003-04-15 20:53:15 +00:00
brade%netscape.com 97a91a162b add insertion listener; bug 192567 (r=jfrancis, sr=kin) 2003-04-15 14:07:30 +00:00
bzbarsky%mit.edu 97c2f70759 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
2003-04-15 01:09:09 +00:00
bzbarsky%mit.edu 3855c654eb MakeList is redundant with AppendList. Bug 179810, r=jfrancis, sr=kin 2003-04-13 04:30:16 +00:00
alecf%netscape.com e260f1fcce fix for bug 199170 - convert editor over to using nsStaticAtoms
r=brade, sr=sfraser
2003-04-10 21:04:07 +00:00
sfraser%netscape.com f78fc1b8d8 Appease the Windows __stdcall gods. Bug 201257. 2003-04-10 20:45:17 +00:00
sfraser%netscape.com abe53e192f 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.
2003-04-10 18:44:03 +00:00
kin%netscape.com 117932d74b 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
2003-04-09 21:10:58 +00:00
kin%netscape.com 35f69e36ef 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
2003-04-07 14:32:23 +00:00
kin%netscape.com 85540751cd 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
2003-04-07 14:28:51 +00:00
kin%netscape.com 3d15b63ab6 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
2003-04-04 20:51:36 +00:00
kin%netscape.com e665d2543f 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
2003-04-04 20:50:25 +00:00
kin%netscape.com 57f5813868 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
2003-04-04 15:29:59 +00:00
jaggernaut%netscape.com d5a82d57cc Add defined(XP_MACOSX) to bail early when !mInIMEMode. r=brade, sr=lumpy 2003-04-04 13:26:12 +00:00
jaggernaut%netscape.com 1d19525bc6 Bug 200638: fix drag copy modifier key on Mac OS X. r=Neil, sr=peterv 2003-04-04 12:48:23 +00:00
sfraser%netscape.com 28c61bb42b Remove nsIIndpendentSelection, moving its one method onto nsISelectionPrivate. Bug 192827. r/sr=kin. 2003-04-04 01:45:06 +00:00
brade%netscape.com 66f3d3d732 require all users of htmleditor to have EditorOverride.css so resizing will work
; bug 196075; r=jfrancis, sr=bryner
2003-04-03 08:05:23 +00:00
seawood%netscape.com 80e1b303cc Purge XP_PC.
Bug #56767 r=mkaply sr=alecf
2003-04-02 22:45:08 +00:00
henry.jia%sun.com a873e7e743 Patch for bug 35296: SetCaretEnabled() takes too long
Patch by Leon.Zhang@sun.com
r=sfraser, sr=kin
2003-04-02 05:48:09 +00:00
bryner%netscape.com c5358b6362 Oops, removing ^M characters. Fixing IRIX bustage. 2003-04-02 04:52:53 +00:00
bryner%netscape.com d72672f317 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. 2003-04-02 03:31:18 +00:00
dbaron%dbaron.org 66eee275cc Remove unused file. b=198627 r+sr=sfraser 2003-04-01 19:32:59 +00:00
alecf%netscape.com 8c50d0242a 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
2003-03-25 18:55:59 +00:00
kin%netscape.com 37bbcaa643 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
2003-03-25 15:38:17 +00:00
glazman%netscape.com f720ae0368 meta-fix for image and table resizing bugs in html editor
solves bugs 195412, 196624, 196122, 195849, 197158, 195141, 195126, 199013
r=brade, sr=kin
2003-03-25 15:24:08 +00:00
timeless%mozdev.org 697618b07d Bug 106386 rid source of misspellings
patch by nb@ipnode.info r=biesi sr=dmose
2003-03-24 04:15:34 +00:00
bryner%netscape.com e1391344c6 Move editor's key event listener, xbl commands, and typeahead find into the system event group. This allows event listeners in content to reliably cancel key events. Bug 54035, r=jkeiser and aaronl, sr=hyatt and kin. 2003-03-24 04:00:58 +00:00
jfrancis%netscape.com 16900e023b fix for 189225: deleting text at beginning of line adds extra space.
r=brade; sr=kin
2003-03-23 20:49:49 +00:00
jfrancis%netscape.com d65a91cf65 fix for 187955: improvements to html fragment sink and paste code. Fixes problems seen with "Create table From Selection" and also with CF_HTML paste.
r=brade; sr=kin
2003-03-23 20:45:47 +00:00
jfrancis%netscape.com 58201a353d fixes for:
178304 - deleting only char in text node places caret in previous block
174867 - caret in wrong place after delete-to-end in list
181898 - select into mailcite, type: inserted text is in cite
r=brade; sr=kin
2003-03-23 20:22:15 +00:00
jfrancis%netscape.com 96dbdb752a fix for 161969: remove empty mailcites when editting
r=brade; sr=kin
2003-03-23 19:51:03 +00:00
sspitzer%netscape.com a924d9950c fix for bug #198624
bulletproof for crasher in nsHTMLEditor::HideResizers()
r=brade,sr=kin
2003-03-22 17:22:22 +00:00
alecf%netscape.com b6584a77fb backout my static atom patch for now until I figure out the performance loss! :(
bug 195262
2003-03-21 20:13:08 +00:00
alecf%netscape.com ecf24a2b78 fix for bug 195262:
- convert atoms to UTF8 because 99% of the time, that is what they are used for
- add support for static atoms, where the strings are declared in a large const array and not copied into the heap
r=dbaron, sr=darin

this is an experimental landing - if there are performance issues, I will back it out.
2003-03-21 06:26:32 +00:00
dougt%netscape.com 0d2808c511 Create a new xpcom obsolete library (and component library).
Moved nsFileSpec and related classes into this obsolete library.
  Moved nsRegistry and related libreg functionality into the obsolete library.

Updated many callers using the obsolete nsFile spec to use nsIFile and Necko to do file IO.

Combined the following DLLs (source -> dest)
  uriloader -> docshell
  shistory -> docshell
  jsurl -> jsdom
  gkview -> gklayout

Moved nsAdapterEnumerator out of xpcom/ds and into mailnews, since they're the only consumer

Modifed the xpt_link tool so that you can specify a �only include� cid list that can mask CID�s that you are not interested in.

Added build options:
Prevent the building of xpinstall (--disable-xpinstall)
Prevent the building js component loader (--disable-jsloader)
A build option to only build a single profile (--enable-single-profile)
A build flag to only built the required xpfe components (--disable-xpfe-components).

Removal or hiding of unused functions and classes including nsEscape*, nsDequeIterator, nsRecyclingAllocatorImpl, nsDiscriminatedUnion, nsOpaqueKey, nsCRT::strlen, NS_NewCommandLineService

Bug 194240, r/sr = darin, alec.
2003-03-15 01:04:32 +00:00
brade%netscape.com a7e4f475f7 allow only compatible trasferable flavors (bug 196728, r=smfr, sr=kin) 2003-03-11 19:02:18 +00:00
glazman%netscape.com d70ca15f52 remove a few lines of code that landed by mistake and cause trouble with embedded editor; b=195800, r=brade; sr=dbaron 2003-03-04 02:14:19 +00:00
sfraser%netscape.com e1fbf0bdbe Fix for bug 74404 -- show caret drag feedback. r=brade, sr=kin 2003-02-27 23:20:15 +00:00
sfraser%netscape.com 511b311820 Fix bug 74404: show caret drag feedback. r=brade, sr=kin 2003-02-27 23:09:51 +00:00
kin%netscape.com 3833230211 Fix for bug 191762 (dragged image doesn't land where it's dropped)
editor/libeditor/base/nsSelectionState.cpp

  - Reworked the logic in SelAdjJoinNodes() to avoid adding aOldLeftNodeLength twice to the calculated offset when the start/end node is the parent.

editor/libeditor/html/nsHTMLDataTransfer.cpp
editor/libeditor/text/nsPlaintextDataTransfer.cpp

  - Modified the InsertFromDrop() to use an nsAutoTrackDOMPoint, instead of relying on range gravity, to calculate the correct insert position after deleting the current selection.

r=jfrancis@netscape.com  sr=sfraser@netscape.com
2003-02-27 14:53:03 +00:00
glazman%netscape.com 7a9303b6e6 missing files for b=47066, r=brade,cmanske, sr=kin 2003-02-24 10:18:18 +00:00
glazman%netscape.com 7d058dbd34 Allow mouse-driven resizing of images and tables in all instances of editor.
For the default Mozilla build, this includes Composer and Mail Composition.
Embeddors willing to disable this feature should look at |nsHTMLEditor::SetIsImageResizingEnabled()|
Displays eight resizing handles plus an info box. Images are resized real-time.
Uses HTML attributes in pure HTML mode (mail composition for instance) and CSS properties when available.
Undoable and Redoable. Does not grind coffe and make a good expresso yet.
Thanks if you really read to that line.

b=47066, r=brade, r=cmanske (for the algo part inheriting from the XBL patch), sr=kin
2003-02-24 09:37:18 +00:00
jkeiser%netscape.com 295267a863 Make double-click on text in composer select word again (bug 193689), r=bryner@netscape.com, sr=jst@netscape.com, a=asa@mozilla.org 2003-02-22 08:12:11 +00:00
jkeiser%netscape.com bd4cc85eeb Make text drag work again (bug 193568), r=bryner@netscape.com, sr=jst@netscape.com, a=asa@mozilla.org 2003-02-22 08:10:46 +00:00
bryner%netscape.com e43f5a49fd Remove nsIStyleContext (bug 114713), r/sr=dbaron. Changed lots of methods to use nsStyleContext* or already_AddRefed<nsStyleContext> as return values, depending on whether a reference is returned. Turn on nsRefPtr (bug 104346), and change nsDerivedSafe to not declare AddRef and Release explicitly virtual, r=jag, sr=dbaron. 2003-02-22 00:32:13 +00:00
neil%parkwaycc.co.uk f2567d8f8b Bug 87321 Shift+Tab has duplicate behavior (event handled twice in message compose) r=brade sr=sspitzer a=asa 2003-02-04 12:12:55 +00:00
neil%parkwaycc.co.uk d0d0ce6b5b Bug 186195 Space disappears when editing a word at the end of a block p=jfrancis r=brade sr=kin a=asa 2003-02-03 11:47:13 +00:00
timeless%mozdev.org 865dd1bf56 Bug 186643 del key at the end of the urlbar asserts
r=jfrancis sr=bz
2003-01-19 00:46:56 +00:00
cbiesinger%web.de 3a031bcf35 89203 r+sr=roc+moz missed a file when I did the IBMBIDI removal from editor 2003-01-18 14:42:02 +00:00
darin%netscape.com 4cde0a57b1 fixing more mac build bustage 2003-01-18 04:21:04 +00:00
cbiesinger%web.de e3e8585471 remove ifdefs for IBMBIDI from editor, bug 89203 r+sr=roc 2003-01-17 11:11:10 +00:00
timeless%mozdev.org eafe5e1701 Bug 186668 nsWSRunObject::DeleteChars uses a constant Count() while removing elements
r=jfrancis sr=bz
2003-01-16 19:27:50 +00:00
jst%netscape.com 53dbf78a7a Fixing bug 161166. Freezing more DOM interfaces. r=harishd@netscape.com, sr=peterv@netscape.com 2003-01-14 23:05:52 +00:00
sspitzer%netscape.com c8e1ff5409 fix for #188946. crasher when you delete a smiley.
this was caused by the checkin for #114713
there is still problems with delete of smileys, but that's
an existing bug.  r/sr=bryner.
2003-01-14 22:08:42 +00:00
jfrancis%netscape.com 5d27f46889 fix for 187662: first return in empty doc does nothing. r=brade; sr=kin 2003-01-11 00:06:29 +00:00
glazman%netscape.com 8feaaee1c8 just removing useless duplicate code; b=188486, r=Neil, r=brade, sr=peterv 2003-01-10 13:46:44 +00:00
bryner%netscape.com 7f0488eb18 Phase 1 of style context deCOMtamination (bug 114713). Remove all dependencies on nsIStyleContext from outside of content and layout. Make nsIFrame::GetStyleData be a non-inline virtual function when called from outside of layout, since the nsStyleContext implementation won't be available to those callers. r=dbaron, sr=bzbarsky. 2003-01-09 06:49:07 +00:00
dbaron%dbaron.org cb9bcc2e25 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag 2003-01-08 19:51:43 +00:00
dbaron%dbaron.org 098bd15103 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag 2003-01-08 19:35:36 +00:00
seawood%netscape.com d5efcdfb6d Start installing GRE libraries & components into a separate dist/gre directory as part of the default build.
Bug #186241 r=dougt
2002-12-28 01:15:07 +00:00
jfrancis%netscape.com 4735e23c71 179384 Merging blocks via forward delete sends selection to front of document
correcting snafu from prior landing.
2002-12-22 07:48:32 +00:00
jfrancis%netscape.com 18d72537a9 editor fixes for:
180034 editor should respect the select_all style
183836 New list item should not reset inline styles
179384 Merging blocks via forward delete sends selection to front of document
98434 IME does not work correctly at the last characters in the text field  (patch courtesy of Shotaro Kamio)

r=jfrancis,brade,cmanske   sr=kin
2002-12-22 01:51:14 +00:00
glazman%netscape.com 4fba82f4ba Text alignment feedback erroneous in Composer; b=183887, r=jfrancis, sr=peterv 2002-12-19 14:10:50 +00:00
nhotta%netscape.com dc755ed5d9 Adding a new interface to retrieve phonetic of input text,
bug 175937, r=brade, sr=kin.
2002-12-17 23:38:04 +00:00
seawood%netscape.com b24b5a1d1f Forte 7 linker requires that search directories come *before* libraries that reside in those search dirs.
Fixing build bustage.
2002-12-17 22:13:01 +00:00
glazman%netscape.com 6902e2698a part of fix bustage, peterv's on the mac side 2002-12-13 12:32:31 +00:00
glazman%netscape.com 63432076dc fixing bustage, so it was not my last checkin... 2002-12-13 10:17:42 +00:00
glazman%netscape.com 3df3751822 fixing regression in composer, it was impossible to set foreground and background color; b=184505, r=brade, sr=kin, q=is this my last checkin? 2002-12-13 08:56:21 +00:00
sfraser%netscape.com bc3050dae4 Remove duplicate text services files, which fixes a bug with the mac build picking up the wrong source and header files (bug 184935). This fixes bugscape bug 21720. 2002-12-12 22:42:53 +00:00
kin%netscape.com 932d3a3e86 sfraser's fix for commercial blocker bugscape bug 21720 (Spell checker fails find misspelled words (crash on exit from spellchecker)), which is caused by bugzilla bug 184935 (Mac build picks up the wrong nsTextServicesDocument.cpp; spell checking busted)
This patch fixes the editor project to search mozilla/editor/txtsvc before
mozilla/libeditor/, adds nsFilteredContentIterator.cpp, and adds #error to the
unused files.


r=jfrancis@netscape.com  sr=kin@netscape.com
2002-12-12 18:04:31 +00:00
jfrancis%netscape.com c42d7a17e4 fix for 184308: cf_html bustage. fencepost error. r=brade; sr=bz; a=asa 2002-12-12 01:05:53 +00:00
sdagley%netscape.com 36a2413fd9 Backing out jfrancis - back to v1.67 2002-12-10 20:24:49 +00:00
jfrancis%netscape.com 0951bcb9cb fix for 184308: cf_html bustage. fencepost error. r=brade; sr=bz; a=asa 2002-12-10 18:32:58 +00:00
rods%netscape.com 338d74b952 Implement filters for spellchecker, so we can skip certain nodes (like Block Quote "cite") for mail
Bug 173046 r=jfrancis sr=kin a=asa
2002-12-10 15:03:04 +00:00
bzbarsky%mit.edu fe53f95e60 Make the CSSLoader correctly order stylesheets as they are dynamically added
and removed via the DOM.  Clean up the nsIDocument stylesheet accessors.  Clean
up nsIDocumentObserver stylesheet stuff a bit.  Make style sheets visible in
the CSSOM (though not completely accessible) from the moment the load is kicked
off.  Make us have sheet objects that can be manipulated via CSSOM even for
failed loads. Bug 107567, bug 47734, bug 57225, bug 178407.
r=sicking,  sr=peterv.
2002-12-03 05:48:14 +00:00
cmanske%netscape.com 6d49c2f2a3 Move caret to text position with rt click. b=181547, r=rods, sr=sfraser 2002-11-30 18:59:34 +00:00
dbaron%fas.harvard.edu de5585e5e7 Remove unused parser-related code. b=130439 r=harishd sr=jst 2002-11-28 19:43:51 +00:00
cmanske%netscape.com 411cfc84da Added command to notify when document url changes. b=181091, r=akkana, sr=sfraser 2002-11-27 00:35:09 +00:00
akkana%netscape.com e6706d6b93 162083: fix ctrl-delete to delete by words, not to end of line. r=brade sr=bzbarsky 2002-11-26 23:01:12 +00:00
akkana%netscape.com b0bfc05f8e 110378: Don't lose data when head is rewritten to HEAD. r=brade sr=kin 2002-11-26 22:15:30 +00:00
glazman%netscape.com eb42c1bab7 Coalesce similar inline nodes in Composer's CSS mode; b=179055, r=jfrancis, sr=peterv 2002-11-25 13:41:26 +00:00
sicking%bigfoot.com d34de45a4d Bug 8929: Kill NS_COMFALSE
r=peterv sr=bz
2002-11-25 12:44:03 +00:00
caillon%returnzero.com 82090ec342 Bug 181442 - Convert editor's pref usage to the new pref APIs.
r=brade sr=kin
2002-11-23 01:26:58 +00:00
jfrancis%netscape.com 0c756dc3b3 fix for 142855: cf_html paste functionality. r=brade,cmanske; sr=kin 2002-11-22 03:30:59 +00:00
jfrancis%netscape.com a84b9db355 reland fix for 174017: Multiple enters after quoted text does not move cursor; r=fm; sr=kin 2002-11-22 01:03:08 +00:00
kin%netscape.com cdc1d363e4 Fix for bug 173553: flawfinder warnings in editor/libeditor/html/nsHTMLEditorLog.cpp
Changed all occurrences of sprintf() to snprintf(). Removed format arg from WriteInt().

r=brade@netscape.com  sr=sfraser@netscape.com
2002-11-18 15:43:19 +00:00
jfrancis%netscape.com feb7bc04fd 152419: Pressing ENTER after adding styles to text does not move caret to next line.
r=brade
sr=kin
2002-11-17 03:11:45 +00:00
jfrancis%netscape.com 17dd2f90ae fix for 172147: URL in composition "decoration" continues on next line
r=brade
sr=kin
2002-11-17 01:37:29 +00:00
jfrancis%netscape.com 716db33760 fix for 143338: Word wrap of double space incorrect in HTML mailcompose
r=glazman
sr=kin
2002-11-17 01:25:30 +00:00
jfrancis%netscape.com 9714ebc7da fix for 101544: Text color does not change if change is made and no text is typed then the color is changed again. Also fixes 163712: changing font takes no action.
r=brade
sr=kin
2002-11-17 01:03:20 +00:00
bryner%netscape.com 54d2337482 nsTextServicesDocument should be #ifdef'd out when building the plaintext editor only. Fixing phoenix build bustage. 2002-11-14 02:23:08 +00:00
bryner%netscape.com 8701185e5c Fix --enable-plaintext-editor-only build bustage by removing nsTextEditorReg.cpp (which was needless duplication and easy to forget to update) and just adding plaintext #ifdefs in nsEditorRegistration instead. Bug 177333, r=jfrancis, sr=sfraser. 2002-11-14 00:29:33 +00:00
brade%netscape.com b57b38a037 Cut when no selection should just return NS_OK (not error which causes JS to throw an error); bug 178725, r=akkana, sr=kin 2002-11-13 21:21:28 +00:00
cmanske%netscape.com 09f188f039 Command Controller refactoring and cleanup, mostly by mjudge with help by cmanske, b=170353, r=brade, sr=sfraser. EditingSession cleanup and new commands in \editor, b=174439, r=mjudge, sr=sfraser 2002-11-12 23:30:29 +00:00
cmanske%netscape.com 722881b278 Command Controller refactoring and cleanup, mostly by mjudge with help by cmanske, b=170353, r=brade, sr=sfraser. EditingSession cleanup and new commands in \editor, b=174439, r=mjudge, sr=sfraser 2002-11-12 23:03:27 +00:00
bzbarsky%mit.edu 618370e4d8 ok, that didn't make the AIX compiler happy enough, and I trust it over
all our other ones, so...
2002-11-12 22:23:11 +00:00
bzbarsky%mit.edu f93df3a67a fix windows linker bustage 2002-11-12 20:35:59 +00:00
bzbarsky%mit.edu fe11056d5d Clean up some array stuff in editor; switch to nsCOMArray in a bunch of
places.  Bug 175564, r=jfrancis, sr=kin
2002-11-12 19:40:11 +00:00
jfrancis%netscape.com 12635e7ebd fix for 178264: nsRangeUpdater bugs and enhancements. precursor to 143338 landing. r=brade; sr=kin 2002-11-10 15:11:08 +00:00
bryner%netscape.com 8beac694e3 Add a second pass of event processing for system events, using DOM3 event group functionality. Bug 124990. Patch by joki, r=saari and bryner, sr=jst. 2002-11-09 00:25:25 +00:00
glazman%netscape.com 111e73ee7b inline styles were not merged after a SetInlineProperty() call; b=178667, r=jfrancis, sr=kin 2002-11-08 08:54:42 +00:00
jfrancis%netscape.com 51f6c73127 64647: implement "Paste without Formatting"; r=akkana; sr=sfraser 2002-11-07 13:04:37 +00:00
jfrancis%netscape.com 466d469a3f fix for 174017: Multiple enters after quoted text does not move cursor; r=fm; sr=kin 2002-11-07 11:38:08 +00:00
jfrancis%netscape.com aff3feaaf7 fix for 169586: Plaintext is always pasted in default font not the one in context. r=brade; sr=kin 2002-11-07 11:29:37 +00:00
jfrancis%netscape.com c9ea01935e fix for 164060: Drop link into list item makes cursor jump to next item; r=fm; sr=kin 2002-11-07 11:26:26 +00:00
bryner%netscape.com be89105ec4 Bug 104371 - shiftKey not set correctly for keypress events, breaking shift+space binding. r=brade, bzbarsky, sr=hyatt. 2002-11-07 03:34:13 +00:00
akkana%netscape.com 2ce455f6d4 176355: Warning fix, remove unused var. r=dmose, sr=bz, a=dbaron 2002-10-24 03:45:23 +00:00
blizzard%redhat.com f360f72c84 Backout unapproved checkin for bug #104371. 2002-10-23 15:18:13 +00:00
hyatt%netscape.com cec3e61e53 Fix for 104371, SHIFT not being set correctly in the DOM, i.e., the SHIFT+space
keybinding didn't work.  r=blizzard,brade sr=blake
2002-10-23 03:15:42 +00:00
akkana%netscape.com 0b194fc333 174987: Don't skip the last pass through the loop (was deleting signatures). r=brade sr=kin a=asa 2002-10-18 19:25:32 +00:00
jfrancis%netscape.com f3eb2b7dd8 fix for 173818: first char typed in html mail reply lost. r=akk, sr=kin, a=asa 2002-10-17 03:16:34 +00:00
akkana%netscape.com a6144bb9e3 173953: Fix plaintext quoting. r=ducarroz sr=bzbarsky 2002-10-17 00:07:28 +00:00
dbaron%fas.harvard.edu 84f5669319 Fix leak of transactions. b=174123 r=jfrancis sr=kin a=rjesup 2002-10-14 23:48:05 +00:00
akkana%netscape.com 3fc926aa45 More 161143: fix an uninitialized variable warning noticed by aleksey@nogin.org 2002-10-09 01:33:31 +00:00
cmanske%netscape.com e181e47206 More 'editorShell' removal. b=169029, r=brade, sr=kin 2002-10-09 00:26:08 +00:00
jfrancis%netscape.com 161ba68052 fix for 171243: redo broken r=brade, sr=kin 2002-10-08 23:06:38 +00:00
jfrancis%netscape.com 9d19ef9ce4 fix for 169033: deletion should delete nested empty blocks all in one action r=fm; sr=kin 2002-10-08 22:59:09 +00:00
jfrancis%netscape.com ac9f0f07f5 fix for 164054: Place selection at first visible content on editor doc load r=brade sr=kin 2002-10-08 22:53:55 +00:00
akkana%netscape.com 89f704d44c 161143: Add new method InsertTextWithQuotes, and call it from Rewrap. r=brade,jfrancis sr=sspitzer 2002-10-08 21:22:27 +00:00
darin%netscape.com 37ed561c77 revising my bustage fix 2002-10-08 21:18:41 +00:00
darin%netscape.com 9665bc9f1a fixes win32 bustage from akk's last checkin 2002-10-08 21:11:59 +00:00
akkana%netscape.com 753fba95f6 161143: Add new method InsertTextWithQuotes, and call it from Rewrap. r=brade,jfrancis sr=sspitzer 2002-10-08 20:24:23 +00:00
brade%netscape.com f7d5f35b4a remove unused CIDs (r=mjudge/sr=kin/bug 121648) 2002-10-07 14:21:34 +00:00
cmanske%netscape.com be8799bf71 Implemented command and Composer UI for 'Paste Without Formatting' command. b=64647, r=mjudge, sr=darin 2002-10-06 01:23:18 +00:00
jfrancis%netscape.com 16165be4f9 fix for 167585: the case of the disappearing cursor.
r=cmanske; sr=kin
2002-10-02 13:52:14 +00:00
bryner%netscape.com 97334d8f6e Add a configure option to disable building composer (bug 170136). Move handling of the -composer command-line option from libeditor/base/ to composer/src/. Remove unused nsIEditorService interface. r=seawood, sr=sfraser. 2002-10-01 00:16:51 +00:00
jfrancis%netscape.com 2080c294fb fix for 170344: block operations failing at certain selection points. r=akkana, sr=kin 2002-09-25 21:56:23 +00:00
cmanske%netscape.com 5a09a20b46 Rearrange initialization of member vars to avoid build warning, fix by walker84@yahoo.com, b=169780, r=cmanske, sr=dveditz 2002-09-23 17:34:50 +00:00
brade%netscape.com 230a1b755b remove editorshell usage and fix some commands to emit all of the params needed to work; r=akk, sr=kin (bug 169231) 2002-09-20 12:41:24 +00:00
glazman%netscape.com 9f6ec8a062 Fixes a crash when hitting backspace in Composer
b=167543, r=timeless, sr=kin
2002-09-20 08:57:04 +00:00
glazman%netscape.com b54bf782a2 attributes VALIGN on TD and WIDTH/SIZE on HR were not CSSized when the elements are created in CSS mode.
b=169824, r=akkana, sr=kin
2002-09-20 08:53:52 +00:00
jfrancis%netscape.com a338a02892 fix for 168336: block operations crossing breaks incorrectly r=fm sr=kin 2002-09-20 02:28:55 +00:00
glazman%netscape.com 401191b960 missing changes in nsHTMLEditor.cpp from bug 167712, solves minor problems in CSS mode of Composer, r=timeless, sr=kin 2002-09-20 02:09:04 +00:00
cmanske%netscape.com 1010f8aeed Progress on removing editorShell from Composer: fixed controller and command problems and mimetype and 'documentEditable' to editor interfaces, b=169029, r=brade, sr=dveditz 2002-09-18 19:42:38 +00:00
brade%netscape.com 7304fe9863 PreventDefault in html editors for normal typing (letters/numbers/etc) (bug 158672, r=timeless, sr=smfr) 2002-09-17 21:27:30 +00:00
glazman%netscape.com e03e047dcf fixes several bugs at once:
could not revert to HTML attributes default value,
VALIGN attribute on table elements was not CSSized,
page colors of new documents were not CSSized,
bad design in |nsEditor::CloneAttributes()|,
new image width/height/border attributes were not CSSized,
error in EdTableProps.js

b=167712, b=167716, r=brade, r=jfrancis, sr=kin
2002-09-17 12:04:59 +00:00
akkana%netscape.com 4e642e64bd More for 124265 -- fix mac build: remove obsolete ApplyStyleSheet method from nsHTMLEditorLog (which only Mac was building). r=cmanske 2002-09-13 22:00:16 +00:00
akkana%netscape.com 7ae5c1cecb 124265: make nsIEditorStyleSheet more scriptable. Fix is partly me r=cmanske, partly cmanske r=me; all is sr=alecf 2002-09-13 19:47:38 +00:00
jfrancis%netscape.com 7edafb59f2 fix for 95654: inserting an <hr> creates a blank line after it r=glazman sr=kin 2002-09-13 13:31:11 +00:00
jfrancis%netscape.com 8f022d1476 fix for 125161: forward delete in text widget should not delete trailing blank line r=glazman sr=kin 2002-09-13 13:26:14 +00:00
jfrancis%netscape.com 6b4239f26f fix for 162874: editor actions can cause asserts in range code. r=glazman sr=kin 2002-09-13 13:12:30 +00:00
cmanske%netscape.com acad4a2734 Part of fix for table editor interface changes. (fixed build bustage!) b=166922, r=akkana, sr=hewitt 2002-09-13 05:31:50 +00:00
cmanske%netscape.com 6c7cf97e2a Part of fix for table editor interface changes. (fixed build bustage!) b=166922, r=akkana, sr=hewitt 2002-09-13 05:24:26 +00:00
cmanske%netscape.com 27b8578e83 Fixed table row deletion and reorganized nsITableEditor methods. b=166922, r=akkana, sr=hewitt 2002-09-13 04:19:30 +00:00
brade%netscape.com 1d4d545c1a api changes (bug 157097, r=cmanske, sr=sfraser) 2002-09-12 19:09:19 +00:00
brade%netscape.com 0b8fb2d8b5 remove unused nsCOMPtrs (bug 157097, r=cmanske, sr=sfraser) 2002-09-12 19:02:47 +00:00
glazman%netscape.com ccbe3b90f8 in some cases, it was impossible to unbold selection in CSS mode, b=167510, r=brade, sr=bzbarsky 2002-09-11 09:25:47 +00:00
dougt%netscape.com 68faeb5241 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2002-09-07 17:13:19 +00:00
jfrancis%netscape.com f06e6458ec fix for 166524: forward delete key changes line order. r=brade sr=kin a=asa 2002-09-06 04:27:06 +00:00
dougt%netscape.com f2a00efc93 Move FROZEN ContractID into nsXPCOM.h and define r=rpotts, sr=alec, b=166426 2002-09-03 23:36:13 +00:00
jfrancis%netscape.com a16376f8c9 fix for 129763: edit this page and delete Personals section causes stray bullet r=glazman; sr=kin 2002-09-03 07:36:44 +00:00
jfrancis%netscape.com 0d49c95048 fix for 161106: rewrite of deletion in editor. fixes various deletion probs. r=glazman; sr=kin 2002-08-29 07:49:31 +00:00
alecf%netscape.com dc6d6e3736 bug 157624 - freeze nsISupportsPrimitives, which includes changing nsISupport[C]String over to using A[C]String and fixing consumers
r=dougt, sr=darin
2002-08-26 21:20:34 +00:00
mjudge%netscape.com a07cba5734 4302 r=jfrancis sr=kin. pageup/down bug with navigation. 2002-08-26 20:55:30 +00:00
alecf%netscape.com 68bb18db7f ok, re-checking in bug 156567 because it did not affect startup time 2002-08-26 20:38:52 +00:00
alecf%netscape.com c5c4c4077d try backing out just the build-side changes to from bug 156567 to see if I caused the startup regression 2002-08-26 18:58:09 +00:00
jfrancis%netscape.com 062b1866b3 fix for 129763: edit this page and delete Personals section causes stray bullet
r=glazman; sr=kin
2002-08-23 18:14:30 +00:00
jfrancis%netscape.com d742aa53d3 fixes for:
159924:  table split up when applying paragraph style to select all
161723: backspace through list item when at beginning of document
r=glazman; sr=kin
2002-08-23 18:11:25 +00:00
jfrancis%netscape.com e047d51485 fix for 159392: Composer add <br> to end everytime it opens a file.
r=brade; sr=kin
2002-08-23 17:57:51 +00:00
glazman%netscape.com 90b7eea68f Composer was unable to set upper-roman style to a list because it was erroneously lowercasing the html TYPE attribute; b=145311, r=brade, sr=kin 2002-08-23 09:24:47 +00:00
alecf%netscape.com 794d931f00 for bug 157567
combine txtsvc into libeditor - no need for seperate dlls
r=akkana, sr=kin
2002-08-22 22:08:36 +00:00
glazman%netscape.com c2e8010325 Take advantage of fix for bug 60683 (thanks bz) in ChangeCSSInlineStyleTxn and then reduce a lot the size of the transaction, keeping only property values instead of a whole style attribute ; major memory impact in CSS mode; b=162473, r=brade, sr=kin 2002-08-20 11:28:57 +00:00
seawood%netscape.com 55ec62b72d Removing unused _NS_IMPL_LAYOUT define.
Thanks to Stephen Walker <walk84@yahoo.com> for the patch.
Bug #162308 r=cls
2002-08-15 05:39:40 +00:00
glazman%netscape.com 99c6bd69fb fixing crash in Composer when head sub-elements are displayed; b=162062, r=brade, sr=bzbarsky 2002-08-13 10:01:52 +00:00
seawood%netscape.com 322da773fb Removing old nmake build makefiles. Bug #158528 r=pavlov 2002-08-10 07:55:43 +00:00
brade%netscape.com 6850ca9285 call preventdefault for keypresses we insert (r=akkana, sr=sfraser) bug 158672 (and others) 2002-08-07 14:45:08 +00:00
akkana%netscape.com 525649d291 122992: remove a few more editorshell dependencies. r=brade, sr=sfraser 2002-08-07 00:06:41 +00:00
akkana%netscape.com 2e2313891b 118883: Fix a leak of nsHTMLCSSUtils. r=glazman sr=kin 2002-08-07 00:02:10 +00:00
akkana%netscape.com 7029acc398 Bug 137253: don't break long words (like urls) during rewrap. r=brade, sr=kin 2002-08-06 23:54:19 +00:00
alecf%netscape.com f7ad4265ef bug 157624 - prep for freezing nsISupports* primitives by renaming the string classes appropriately
nsISupportsString  -> nsISupportsCString
nsISupportsWString -> nsISupportsString
r=dougt, sr=jag
2002-08-06 00:53:19 +00:00
alecf%netscape.com e9e1a39573 fix for bug 157572 - remove nsIAtom references from strings, and thus expicitly #include nsIAtom.h for consumers who are expecting it.
r=dmose, sr=jag, a=asa
2002-07-25 18:31:10 +00:00
mjudge%netscape.com 47e8fbc7bf r=akkana sr=sfrasier 125146 a=asa This patch will make the embedding API's a better friend to all. It eliminates the use of multibyte strings in command names and also allows for simple command to not require the nsICommandParams interface to be filled. 2002-07-15 22:04:13 +00:00
akkana%netscape.com efa18def7e 126312: Remove the obsolete old find code. r=brade, sr=alecf. 2002-07-09 20:24:37 +00:00
jfrancis%netscape.com 92456dcb49 fix for 155629: deletion horked: cant delete br nodes. r=fm; sr=kin 2002-07-04 01:12:49 +00:00
jfrancis%netscape.com 8033838e4b updating 83378 work with the correct patch this time 2002-06-30 02:52:56 +00:00
dbaron%fas.harvard.edu 6d2263f19b Convert handwritten GetIID methods to use NS_DEFINE_STATIC_IID_ACCESSOR and add |const| to GetCID methods so that static |nsID|s are declared as |const|. b=153525 sr=jag r=bryner 2002-06-26 03:38:55 +00:00
kin%netscape.com 4f9e09571b Fix for bug 152435 (Memory leak of 36 bytes from 1 block allocated in TypeInState::ClearProp)
Call Reset() in ~TypeInState() to release any data that may be in mClearedArray and mSetArray.

r=jfrancis@netscape.com  sr=sfraser@netscape.com
2002-06-24 20:02:25 +00:00
glazman%netscape.com bb7379df23 nsHTMLEditor::GetInlinePropertyBase() was not detecting when the selection ends before first char of a text node; b=128401, r=brade, sr=kin 2002-06-18 09:20:07 +00:00
cmanske%netscape.com 650497023f Fixed crash when inserting column in table, b=152320, r=brade, sr=kin 2002-06-17 20:40:47 +00:00
akkana%netscape.com 6a90f201a3 145727: use nsString.FindChar, clean up conflicting string usages. Patch from skamio@netscape.net (Shotaro Kamio), r=akkana, sr=alecf 2002-06-14 22:10:56 +00:00
kin%netscape.com 2cc8934aad Partial fix for bug 141900 (Text entry fields in forms excruciatingly slow.)
mozilla/content/base/public/nsISelectionController.idl
  mozilla/content/base/src/nsSelection.cpp
  mozilla/editor/composer/src/nsEditorShell.cpp
  mozilla/editor/idl/nsIPlaintextEditor.idl
  mozilla/editor/libeditor/base/nsEditor.cpp
  mozilla/editor/libeditor/base/nsEditor.h
  mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
  mozilla/editor/libeditor/html/nsHTMLEditor.cpp
  mozilla/editor/libeditor/text/nsEditorEventListeners.cpp
  mozilla/editor/libeditor/text/nsPlaintextDataTransfer.cpp
  mozilla/editor/libeditor/text/nsPlaintextEditor.cpp
  mozilla/editor/txtsvc/src/nsTextServicesDocument.cpp
  mozilla/editor/ui/dialogs/content/EdTableProps.js
  mozilla/embedding/components/find/src/nsWebBrowserFind.cpp
  mozilla/extensions/xmlterm/base/mozXMLTermSession.cpp
  mozilla/layout/base/public/nsIFrameSelection.h
  mozilla/layout/html/base/src/nsPresShell.cpp
  mozilla/layout/html/forms/src/nsGfxTextControlFrame2.cpp
  mozilla/mailnews/compose/src/nsMsgCompose.cpp
  mozilla/xpfe/browser/resources/content/viewPartialSource.js

    - Added aIsSynchronous arg to the ScrollSelectionIntoView()
      method of nsISelectionController and nsIFrameSelection.
      Updated all callers to pass new arg.

    - Modified selection to post a plevent to call which does the
      call to ScrollIntoView() in the async ScrollIntoView() case.

    - Edits in text widgets now use asynchronous reflow, paint,
      and scroll processing full time.

    - Removed redundant ScrollSelectionIntoView() calls in the
      editor event listeners.

    - Editor IME code now forced to flush reflows and paints before
      getting caret coordinates.

r=jfrancis@netscape.com  sr=waterson@netscape.com
2002-06-13 20:35:12 +00:00
jfrancis%netscape.com 6118727dff bug 83378: plaintext mail reply editong problem in quotes 2002-06-12 14:12:32 +00:00
jfrancis%netscape.com a110c74903 bug 146164: removing style can remove too much. r=glazman, sr=kin 2002-06-12 14:04:47 +00:00
akkana%netscape.com 6b83a065ab 132352: Use the parser service for blockness detection. r=brade sr=kin 2002-06-11 20:43:49 +00:00
alecf%netscape.com bcf192e308 fix for bug 101761 - REQUIRES update - remove all REQUIRES that are no longer necessary.. r=cls, a=asa (build-only changes) 2002-06-06 20:28:14 +00:00
jfrancis%netscape.com 00ac1086f3 fixing 136165: crash after deleting styled text. r=cmanske sr=dveditz 2002-05-23 22:05:35 +00:00
jfrancis%netscape.com a82c157716 fix for 144787: multiple breaks inserted on return. r=fm;sr=kin 2002-05-17 02:44:55 +00:00
dougt%netscape.com c683a217ab Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756 2002-05-15 18:55:21 +00:00
jfrancis%netscape.com 2cfab56b94 fix for 108035: making a list out of several divs gave bad results sr=kin r=brade 2002-05-14 00:35:57 +00:00
jfrancis%netscape.com 890f83aea5 fix for 112167: pasting list items cal leave selection between items. Also allows you to type after pasted link without being in link. sr=kin r=fm 2002-05-14 00:05:37 +00:00
pinkerton%netscape.com 7d3dc95242 don't register image/jpeg, it only gets in the way of other things we do
support. r=brade/sr=alecf. bug# 69566
2002-05-01 22:02:54 +00:00
kin%netscape.com 43eb4cf116 Fix for bug 125345 (Font attributes disappear when you double click editor window)
Modified TypeInState::NotifySelectionChanged() to work around
bogus selection changed notifications (bug 140303). We now
call reset when the collapsed selection changes position, or
becomes uncollapsed.

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

r=jfrancis@netscape.com  sr=attinasi@netscape.com
2002-04-30 20:59:43 +00:00
alecf%netscape.com 9348ce8ac8 fix bug 139633 - as a part of freezing nsAString, move Left/Right/Mid back into nsString, and fix consumers to start using Substring()
r=jag, sr=darin
2002-04-29 20:29:54 +00:00
glazman%netscape.com a6527a5a7e weird crasher in |nsHTMLCSSUtils::GetElementContainerOrSelf|
b=138003, r=jfrancis, sr=kin
2002-04-29 10:13:23 +00:00
jaggernaut%netscape.com 7e4e14d8c5 Backing out joki's checkin for bug 124990 (at his request) since this breaks some stuff on linux. 2002-04-20 01:48:32 +00:00
jfrancis%netscape.com a04491dcd9 more 136944: fixing typos in original patch. r=Aleksey Nogin, sr=kin. Thanks to Aleksey Nogin for catching these. 2002-04-19 07:43:19 +00:00
joki%netscape.com bdfd051dfb Fix for bug 124990, Add additional processing loop for DOM event listeners to allow browser level handlers to be fired after content based listeners. r:saari, sr:jst
Browser based listeners can now registers themselves using the AddGroupedEventListener and passing the system event group (which can be gotten via the nsIDOMEventReceiver interface).  These listeners will now fire after all content based listeners have processed.
In this initial version of the checkin most browser listeners are still left in the original content group for stability purposes.
2002-04-19 02:52:01 +00:00
bienvenu%netscape.com bbe508afd4 make this file build (at least on windows) after nsIFileOutputStream changes r/sr = jkeiser 2002-04-18 23:14:30 +00:00
jst%netscape.com cd9afd67e1 Checking in the fix for bug 52334 for the third time. This time it should stick! Making iframe's load their document even if they're not displayed. r=jkeiser@netscape.com, sr=rpotts@netscape.com. 2002-04-17 04:17:16 +00:00
akkana%netscape.com fdc4ae63df 134439: Make plaintext compose wrap to window width instead of output
width, and don't wrap quotes in <pre> or <span>, to work around various
editor bugs.  Detect quoted blocks at output time, and continue our
existing behavior of not wrapping quoted text. r=jfrancis,bratell, sr=alecf.
2002-04-16 23:11:33 +00:00
jfrancis%netscape.com 27fcb61356 fix for bug 100855: paragraph fromat feedback from editor inaccurate. r=brade; sr=kin 2002-04-14 05:57:14 +00:00
jfrancis%netscape.com 2d573cc064 fix for 135337, 132837, 136504, and a side issue from 84485. The deal here is that the editor is smarter about figuring out what dom nodes appear empty to the user (properly accounting for invisible whitespace and invisible br nodes). r=glazman; sr=kin 2002-04-14 02:37:23 +00:00
jfrancis%netscape.com 98f0f3ed8b fixing 136944: crash typing in editor. r=fm sr=kin 2002-04-13 23:54:59 +00:00
glazman%netscape.com 58271688b3 Allow Composer's users to remove named anchors w/o having to use Source View; b=80742; r=brade, r=jfrancis, sr=kin, a=asa 2002-04-11 13:33:30 +00:00
jfrancis%netscape.com 3232e07c19 fixes for bugs: 90759: spaces not working in IME editting 132133: deleting last char on line can place caret incorrectly 132837: inline style and making new list items dont play nice 103867: nsSelectionState logic error r=glazman; sr=kin; a=asa; adt=jamie; i'd also like to thank my mom, and my producer, who was there for me during detox, and of course everyone inthe academy, you are all so beautiful 2002-04-06 19:07:47 +00:00
timeless%mac.com a84a7e233f http://bonsai.mozilla.org/cvsquery.cgi?module=SeaMonkeyAll&branch=HEAD&cvsroot=/cvsroot&date=explicit&mindate=1017959940&maxdate=1017960540&who=jst%25netscape.com&generateBackoutCVSCommands=1
Backing out the fix for bug 52334

approved by sheriff (karnaze) and cathleen
2002-04-05 05:42:10 +00:00
jst%netscape.com bf7702387e Checking in the fix for bug 52334 again now that the linux crash and the scrollwheel crash has been fixed. Making iframe's load their document even if they are not displayed. r=jkeiser@netscae.com, sr=rpotts@netscape.com, a=asa@mozilla.org 2002-04-04 22:42:19 +00:00
jst%netscape.com 020632bdc1 Backing out latest checkins due to them not working on linux and other unix systems with broken compilers. 2002-04-04 07:31:16 +00:00
jst%netscape.com aa9f71957d Fixing bug 52334. Making iframe's load their document even if they are not displayed. r=jkeiser@netscae.com, sr=rpotts@netscape.com, a=asa@mozilla.org 2002-04-04 02:09:19 +00:00
akkana%netscape.com e52d759ee5 121898: Make rewrap more consistent in wrapping long lines vs. short lines,
and fix a problem where blank lines would replicate. r=cmanske sr=kin a=asa
2002-03-26 22:09:47 +00:00
akkana%netscape.com 36234b8d88 131277: change signature of outputToString to return the string. r=jfrancis sr=sfraser a=asa 2002-03-25 22:39:19 +00:00
dbaron%fas.harvard.edu 6efddef09e Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa 2002-03-23 22:16:54 +00:00
dbaron%fas.harvard.edu 0ba01241e6 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa 2002-03-23 22:08:20 +00:00
jfrancis%netscape.com ecd36c2bed fix for 82813: tweaking editor whitespace handling to behave better when deleting in PRE
r=brade; sr=kin; a=asa
2002-03-22 04:10:25 +00:00
jfrancis%netscape.com bc42d93bc0 fix for Bug 131757: deleting styled content in block can cause blank line insertion
r=glazman; sr=kin; a=asa
2002-03-22 00:03:10 +00:00
jfrancis%netscape.com 0703b12dd8 fix for Bug 113320: outdenting inside tables hosed.
r=glazman; sr=kin; a=asa
2002-03-21 23:44:23 +00:00
jfrancis%netscape.com 23aa8bbd40 fix for Bug 114112: indenting across separate table cells hosed.
r=glazman; sr=kin; a=asa
2002-03-21 23:40:50 +00:00
jfrancis%netscape.com 973ba7f6fa fix for 102612: making new blocks (lists, etc) in editor can get confused if nested inline styles are present.
r=glazman; sr=kin; a=asa
2002-03-21 23:24:21 +00:00
jfrancis%netscape.com 6f16f7249b fix for 82813: tweaking editor whitespace handling to behave better when deleting in PRE
r=brade; sr=kin; a=asa
2002-03-21 23:20:57 +00:00
cmanske%netscape.com f4962c5548 Fixed busted double-click word selection in Composer, b=131739, sr=scc, a=asa 2002-03-21 02:47:52 +00:00
kin%netscape.com 7ad75bc29d Fix for bug 131820: Hitting return in an inline style doesn't advance
caret to next line

Prevent AdjustSelection() from adding a MozBR when
the root node is empty so that EditAfterInner()
can add the BogusBR node.

r=jfrancis@netscape.com  sr=sfraser@netscape.com  a=scc@mozilla.org
2002-03-20 01:45:55 +00:00
alecf%netscape.com 6e402296f7 fix for blocker - intialize originalStart 2002-03-19 19:52:45 +00:00
alecf%netscape.com 451df7d6c3 a further nsString api reduction: remove the last case-insensitive PRUnichar*-to-PRUnichar* comparisons, moving to new API, and remove old methods from nsString. r=dougt, sr=jag a=scc 2002-03-19 06:46:56 +00:00
glazman%netscape.com a388b13fb6 Memory leak fixed in nsHTMLCSSUtils::GetDefaultViewCSS()
b=130904, r=peterv, sr=kin, a=asa
2002-03-18 10:40:58 +00:00
cmanske%netscape.com d5612a514e Moved mouse listener from EditorShell to HTMLEditor but keep previous context click and doubleclick element selection behavior. b=112181 & 128836, r=akkana, sr=sfraser, a=asa 2002-03-17 20:39:16 +00:00
dbaron%fas.harvard.edu 0b816e3591 Remove unused (or used only if one of the magic enviroment variables ENABLE_STRICT or MOZ_VALIDATE_HTML was set) parser-related code, mostly associated with the strict DTD. b=130439 r=harishd sr=jst a=shaver 2002-03-16 15:34:43 +00:00
glazman%netscape.com 72b1c305b0 It was impossible to set the background color of a table thru TableOrCell Background Color menu item.
b=127723, r=jfrancis, r=cmanske, sr=kin, a=asa
2002-03-15 15:33:29 +00:00
rbs%maths.uq.edu.au 8f6916c2d9 perf bug 124570 - configure mathml.css as a catalog stylesheet that is loaded on demand rather than at startup, r=harishd, sr=jst, a=asa 2002-03-15 09:45:31 +00:00
akkana%netscape.com d7cbebbdc8 128903: Clean up the editor IDL, and anyone who uses them. r=brade,cmanske,ducarroz (for mail); sr=sfraser; a=dbaron 2002-03-14 22:11:14 +00:00
jfrancis%netscape.com d147b2a0e7 one word fix for smoketest blocker 130103 2002-03-12 04:05:46 +00:00
ducarroz%netscape.com 14204ed73f Fix for bug 127077. If the body tag contains a background image, it must be considered as an embedded element. R=jfrancis, SR=bienvenu, A=asa 2002-03-11 14:54:59 +00:00
jfrancis%netscape.com e1284b0683 fixes 92124: RightArrow then Backspace causes Caret to go to previous line. r=jfrancis; sr=kin; a=roc+moz; submitted by Shotaro Kamio, skamio@netscape.net 2002-03-11 14:28:37 +00:00
glazman%netscape.com ba2410c1c7 Styles were not preserved in Composer when creating a new list item, hitting twice the Return Key
The inline styles (B I U ..) hierarchy of elements had to be recreated in the new list item.

b=46474; r=jfrancis; sr=kin; a=asa
2002-03-11 13:11:48 +00:00
jfrancis%netscape.com 0f7cfff93f fixes bugs 127869, 127939, and 128793: various bug with list pasting; sr=kin; r=glazman; a=asa [trunk] 2002-03-11 09:30:51 +00:00
ftang%netscape.com 17c4bdc982 fix bug 90583. r=mjudge/jfrancis sr=kin a=asa
fix chinese ime candidate window position problem.
 we need the nsAutoPlaceHolderBatch destroctor called before hitting
 GetCaretCoordinates so the states in Frame system sync with content
 therefore, we put the nsAutoPlaceHolderBatch into a inner block
  {
2002-03-07 14:34:35 +00:00
darin%netscape.com f1a6738b6c fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa 2002-03-06 07:48:55 +00:00
jfrancis%netscape.com 63333b5253 fixes blocker 126558; r=brade,jrancis, sr=alecf, a=rods;
thanks to kin for cleaning up my "replace all" accident
2002-02-21 20:50:35 +00:00
alecf%netscape.com 66e767c7b8 one part of fix for bug 107575 - clean up consumers of nsString::EqualsIgnoreCase and nsString::EqualsWithConversion, to be explicit about case-insensitive compares
r=timeless sr=jag
2002-02-19 22:49:12 +00:00
brade%netscape.com 5150806885 fix to use NS_LITERAL_STRING; bug 26384 r=cmanske sr=kin 2002-02-19 22:14:57 +00:00
jfrancis%netscape.com c56239e860 fixes:
117418: warnings in nsWSRunObject.cpp
98286: splitting paragraphs broken
101041: block transformations could grab too much beyon selection
82813: whitespace handling code needs to do right thing with preformatted text
99545 &
103677: new blocks not always pre-populated with br
41336: better handling of mailcites when splitting or deleting them or portions of them

partial fix for:
46474: creating new blocks kills style settings

r=fm, sr=kin
2002-02-19 12:02:09 +00:00
jfrancis%netscape.com f9413bd619 fixes:
117418: warnings in nsWSRunObject.cpp
98286: splitting paragraphs broken
101041: block transformations could grab too much beyon selection
82813: whitespace handling code needs to do right thing with preformatted text
99545 &
103677: new blocks not always pre-populated with br
41336: better handling of mailcites when splitting or deleting them or portions of them

partial fix for:
46474: creating new blocks kills style settings

r=fm, sr=kin
2002-02-19 11:52:50 +00:00
glazman%netscape.com 6f35ac34ae alignment problems + removal of useless DIVs when realigning the selection; b=102547, r=jfrancis,sr=kin 2002-02-18 10:49:15 +00:00
glazman%netscape.com afe567a59f bad test of collapsed selection, had side effect on setting background color; b=121903, r=jfrancis, r=brade, sr=kin 2002-02-18 10:06:07 +00:00
bzbarsky%mit.edu 97aad157b6 Relanding the Compare --> Equals conversion. a=mcafee 2002-02-10 15:49:46 +00:00
bzbarsky%mit.edu 98afc5ee0f Testing performance impact of backout of what's left of the patch from
bug 115289.  See bug 123947 for details. a=mcafee
2002-02-09 20:46:05 +00:00
kin%netscape.com ad29387c80 Fix for bug 124209 (Deleting selection in plain text reply compose causes hang)
and bug 124375 (composer / editor hang when delete blank lines)

Allow start/end points to be set to empty text nodes to prevent
infinite loop.

r=glazman@netscape.com  sr=sfraser@netscape.com,shaver@mozilla.org
2002-02-08 15:20:19 +00:00
jfrancis%netscape.com 33d43dfb71 duh 2002-02-07 04:44:21 +00:00
jfrancis%netscape.com d5f3c6a9c2 fixes:
* 113691 : Composer freezes when removing multiple ol or ul tags.
    * 113290 : Freezes when deleting some formatted text.
    * 112144 : Attempt to reply to mail freezes entire Mozilla.
    * 103685 : Caret disappears after deleting a blockquote w/ paragraph style.
    * 121282 : Pressing enter causes caret to jump from end of <p> to the<h1>.
    * 117418 : rewrote some code in nsWSRunObject.cpp: fixed warnings in GetWSNodes().
    * 114911 : can't join two lists using delete key.
    * 120000 : Indent list inside table causes table to split.
r=fm;sr=kin
2002-02-07 03:56:20 +00:00
alecf%netscape.com fe8bbbd587 dependency update 2002-02-06 22:19:07 +00:00
glazman%netscape.com b9ada4affb Adding noCSS flag to nsHTMLEditor; b=bugscape11956, r=brade, sr=kin 2002-02-05 15:16:14 +00:00
bzbarsky%mit.edu 40d60f39ec Convert Compare() to Equals() where possible now that we can do
case-insensitive Equals().  Bug 115289, r=alecf, sr=jag
2002-02-05 02:03:07 +00:00
mkaply%us.ibm.com 78722660c5 HPUX bustage 2002-02-02 14:30:00 +00:00
mjudge%netscape.com 726b5e82c1 115922 embedding work. no changes should be observed in current product this will only affect the embedded effort. This moves the command handler stuff from content xul to embedding/components/commandhandler. a=judd r=saari built on mac/windows/gmake with this we will be able to finish removing editorshell from the app and have a true embedded editor.akkana will pick this up after me and finish the embedding work. 2002-02-02 05:13:56 +00:00
akkana%netscape.com 2865243e84 121046: fix a rewrap hang. r=adu@sparc.spb.su sr=kin 2002-02-01 21:29:16 +00:00
sfraser%netscape.com d133d4956f Making the nsModuleComponentInfo data const; bug 74803. r=dp, sr=waterson 2002-01-30 21:14:20 +00:00
alecf%netscape.com 28b3772942 First part of fix for bug 107575 - remove nsString::FindChar because there is already an nsAString::FindChar, and remove the "ignore case" option in RFindChar
r=dougt, sr=jag
2002-01-30 06:04:29 +00:00
glazman%netscape.com 8846933b69 inline styles were not saved because gElement was outside of document's tree; b=91548, r=brade, sr=kin 2002-01-28 16:00:12 +00:00
timeless%mac.com 75058d63d4 Bug 117418 nsWSRunObject.cpp:704: warning: `PRInt32 curStartOffset' might be used uninitialized in this function
r=akkana sr=brendan
2002-01-27 07:07:10 +00:00
glazman%netscape.com fd4d0fd0da remove CSSisms from nsEditor; b=121092, r=brade, sr=kin 2002-01-25 10:16:52 +00:00
glazman%netscape.com 5e1af47673 Text Color well reverts to black when typing; b=112966, r/sr=kin 2002-01-25 09:53:58 +00:00
glazman%netscape.com 5499ebc254 composer background image broken source code; b=120662, r=brade, sr=kin, a=blizzard 2002-01-21 09:30:02 +00:00
glazman%netscape.com 1684a4ed1c backing out my fix for bug 119447 due to major side effect described in bug 120377; a=asa 2002-01-18 10:17:12 +00:00
seawood%netscape.com e56e20b1dc Use dynamic library & xpidl_module names from nmake build for win32 gmake builds for compatibility.
bug #58981 sr=jag
2002-01-16 05:10:09 +00:00
bzbarsky%mit.edu 68c2123b34 Bug 104480. "EqualsIgnoreCase(nsAutoString(foo)) is bad and should
die." r=alecf, sr=jag
2002-01-16 03:31:25 +00:00
akkana%netscape.com f021d7bd98 112139: fix infinite loop in rewrap. r=brade sr=sfraser 2002-01-15 22:43:42 +00:00
cmanske%netscape.com 993c1ff2fa Link Checker dialog, b=108296, r=akkana, sr=ben 2002-01-15 15:35:58 +00:00
glazman%netscape.com 61dc732b6f [CSS] Composer should be able to unbold/unitalicize invalid markup; b=119447, r=jfrancis, sr=kin 2002-01-15 14:44:00 +00:00
brade%netscape.com f2c8087638 remove DEAD_CODE (bug 115115) 2002-01-14 20:35:08 +00:00
brade%netscape.com 3d8cad8a25 remove DEAD_CODE (bug 115115); remove unused static (bug 117927) 2002-01-14 20:34:15 +00:00
brade%netscape.com 9939e28989 #ifdef out / remove DEAD_CODE per jfrancis (bug 115115) 2002-01-14 20:31:47 +00:00
brade%netscape.com 69ebeb09fe literal string cleanup (bug 26384); #ifdef out / remove DEAD_CODE per jfrancis (bug 115115) 2002-01-14 20:31:43 +00:00
brade%netscape.com aeee1c5e44 literal string cleanup (bug 26384); #ifdef out / remove DEAD_CODE per jfrancis (bug 115115); remove unused statics (bug 117927) 2002-01-14 20:30:11 +00:00
brade%netscape.com 87f7abb5fa removal of methods SaveFile and DoAfterDocumentSave (bug 102033); #ifdef out / remove DEAD_CODE per jfrancis (bug 115115) 2002-01-14 20:25:29 +00:00
brade%netscape.com 39e3fae0b3 literal string cleanup (bug 26384); removal of nsIDiskDocument and methods SaveFile and DoAfterDocumentSave (bug 102033); #ifdef out / remove DEAD_CODE per jfrancis (bug 115115) 2002-01-14 20:25:17 +00:00
glazman%netscape.com a1a6b6b2cf oops, I erroneously left this code in my big yesterday's check-in and this belongs to another bug (118110); b=77705 2002-01-10 14:51:45 +00:00
jfrancis%netscape.com 0aa67c8c58 fix for 119053: backspace/delete can delete two br's instead of one. r=fm; sr=kin 2002-01-10 00:29:04 +00:00
glazman%netscape.com 68488c9353 CSS in Composer, step 1 ; b=77705, r=jfrancis, r=cmanske, sr=kin 2002-01-09 13:51:37 +00:00
brade%netscape.com 4d0031da69 init mModCount in constructor (bug 117399; sr=kin; r=glazou) 2002-01-07 15:52:54 +00:00
brade%netscape.com 545842f66c remove 8 static CID/IID since they are unused (bug 117927; r=glazou, rs=shaver) 2002-01-03 15:50:21 +00:00
brade%netscape.com 10313daf8c remove 5 static CID/IID since they are unused (bug 117927; r=glazou, rs=shaver) 2002-01-03 15:47:27 +00:00
brade%netscape.com 9ac8511c17 remove kCContentIteratorCID since it's unused (bug 117927; r=glazou, rs=shaver) 2002-01-03 15:40:27 +00:00
brade%netscape.com d79d0e0a15 remove kCDataFlavorCID and kContentIteratorCID since they are unused (bug 117927; r=glazou, rs=shaver) 2002-01-03 15:37:49 +00:00
brade%netscape.com 44e3f67b9b remove unused method (bug 115115; sr=smfr, r=cmanske) 2002-01-03 15:37:11 +00:00
brade%netscape.com c0a29ad624 remove kRangeCID since it's unused (bug 117927; r=glazou, rs=shaver) 2002-01-03 15:34:10 +00:00
brade%netscape.com bc1c3ef759 remove kIDOMSelectionIID since it's unused (bug 117927; r=glazou, rs=shaver) 2002-01-03 15:33:44 +00:00
seawood%netscape.com 128ac41103 nsRect's win32 signature requires libraries need to link against libgkgfx for debug builds.
Added support for processing .rc to win32 gmake build.
Bug #58981
2002-01-01 00:03:57 +00:00
timeless%mac.com 61a97fd94a Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting
r='s from many people. sr=jst
2001-12-23 23:23:41 +00:00
rjesup%wgate.com 2e680f1b17 Bug 96108: Inline ElementAt(), add SafeElementAt(), voidarray usage fixes,
assertions for bad voidarray indexes.  r=jst, sr=waterson
2001-12-21 01:10:07 +00:00
seawood%netscape.com 45bfbf0658 Landing the rest of the win32 gmake changes:
* Adds Makefile.ins to win32 specific dirs
* Adds WINNT ifdefs to Makefile.ins
* Causes NSPR to be compiled with --with-mozilla
* Misc general Makefile.in cleanup

Bug #58981 r=mcafee
2001-12-18 09:14:29 +00:00
mjudge%netscape.com d7c892374e wrong name for module name. needed webbrwsr not webBrowser_core 2001-12-18 02:06:04 +00:00