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

4201 Коммитов

Автор SHA1 Сообщение Дата
brade%netscape.com 9a868d3c9a code cleanup; r=timeless, sr=kin, bug=209548 2003-06-30 19:10:53 +00:00
brade%netscape.com 70046e0ec5 code cleanup continued; r=timeless, sr=kin, bug=209548 2003-06-30 18:55:06 +00:00
brade%netscape.com 6c5cc2f94c code cleanup, r=timeless, sr=kin, bug=209548 2003-06-30 17:28:52 +00:00
brade%netscape.com 610a10752a code cleanup, r=timeless, sr=kin, bug=209548 2003-06-30 15:02:48 +00:00
brade%netscape.com b8311b327c remove unused headers, r=timeless, sr=kin, bug=209548 2003-06-30 14:59:04 +00:00
brade%netscape.com 6688138229 code cleanup; r=timeless, sr=kin, bug=209548 2003-06-30 14:57:59 +00:00
brade%netscape.com 2933c5d0d8 code cleanup, r=timeless, sr=kin, bug=209548 2003-06-30 14:56:22 +00:00
brade%netscape.com f0d1bfb89c code cleanup; r=timeless, sr=kin, bug 209548 2003-06-30 14:46:41 +00:00
brade%netscape.com 830f0a8d60 code cleanup; r=timeless, sr=kin, bug=209548 2003-06-30 14:41:55 +00:00
brade%netscape.com ba4180665b code cleanup; r=timeless, sr=kin, bug 209548 2003-06-30 14:39:27 +00:00
brade%netscape.com f9f1ac623b code cleanup, r=timeless, sr=kin, bug 209548 2003-06-30 14:33:23 +00:00
brade%netscape.com 5fbb4f79d1 code cleanup; r=timeless, sr=kin, bug=209548 2003-06-30 14:31:48 +00:00
brade%netscape.com 9976465a07 code cleanup; r=timeless; sr=kin; bug=209548 2003-06-30 14:24:40 +00:00
brade%netscape.com 5fa10bf2fe code cleanup; r=timeless, sr=kin, bug=209548 2003-06-30 14:20:49 +00:00
brade%netscape.com eec8607ca7 code cleanup, r=timeless, sr=kin, bug=209548 2003-06-30 14:17:15 +00:00
brade%netscape.com b23121c488 code cleanup; r=timeless, sr=kin, bug=209548 2003-06-30 14:14:01 +00:00
brade%netscape.com 395d6d85a7 code cleanup; r=timeless, sr=kin, bug=209548 2003-06-30 14:05:25 +00:00
brade%netscape.com 57743e4eb1 code cleanup; r=timeless, sr=kin, bug=209548 2003-06-30 13:42:22 +00:00
brade%netscape.com 6cca4ccd3e NS_IMPL macro cleanup; r=timeless; sr=kin; bug=209548 2003-06-27 14:19:40 +00:00
kin%netscape.com 6c295fc019 jst@netscape.com's fix for tree blocker bug 210641 (Crash using Japanese IME)
mozilla/editor/libeditor/html/nsHTMLEditor.cpp
  mozilla/editor/libeditor/text/nsPlaintextEditor.cpp

    - Fixed INTERFACE_MAP macros so that they call through to the class we inherit from.

r=brade@netscape.com  sr=kin@netscape.com
2003-06-25 19:21:59 +00:00
glazman%netscape.com 89a9bf1f37 Support for Absolute Positioning, Snap to Grid, and Inline Table Editing in Composer
r=brade, sr=jst
2003-06-25 09:20:07 +00:00
glazman%netscape.com 9e7ea0ab4e Support for Absolute Positioning, Snap to Grid, and Inline Table Editing in Composer
r=brade, sr=jst
2003-06-25 08:50:48 +00:00
glazman%netscape.com 55c9e23578 Support for Absolute Positioning, Snap to Grid, and Inline Table Editing in Composer
r=brade, sr=jst
2003-06-25 08:41:51 +00:00
glazman%netscape.com 27496fee45 Files removed, they were accidentally checked in with a non binary cvs add 2003-06-25 07:49:49 +00:00
glazman%netscape.com 1197c766f5 Support for Absolute Positioning, Snap to Grid, and Inline Table Editing in Composer
r=brade, sr=jst
2003-06-25 07:30:19 +00:00
jst%netscape.com 2e8edec781 Fixing bug 209884. Writing an inline helper to safely get an nsIScriptContext from a JSContext and making direct callers of JS_GetContextPrivate() use the helper. r=caillon@aillon.org, sr=peterv@netscape.com 2003-06-24 21:43:01 +00:00
roc+%cs.cmu.edu 7928e4930c deCOMtaminate nsIFrame::GetWindow; the COM wrapper doesn't ADDREF when it should, the easiest thing to do is to just not use the wrapper. r+sr=dbaron 2003-06-24 13:39:15 +00:00
neil%parkwaycc.co.uk 3e80fb7dbd Bug 209823 Composer should use titletips in Preview mode r=glazman sr=alecf 2003-06-20 09:11:40 +00:00
dbaron%dbaron.org 42b06cc4f5 DeCOMtaminate nsIFrame::GetView and SetView, and add HasView, GetClosestView, and AreAncestorViewsVisible to consolidate common patterns. b=208004 r+sr=roc 2003-06-19 23:44:01 +00:00
glazman%netscape.com 3cb1785e6d Composer's structure toolbar was showing anonymous content; b=190279, r=Neil, sr=peterv 2003-06-19 14:06:05 +00:00
stephend%netscape.com 998dd77226 fixing typo - s/cahced/cache 2003-06-18 23:04:50 +00:00
jfrancis%netscape.com 6e7d099d26 bug 140357: improving fix to handle redundant backspaces. r=brade, sr=kin 2003-06-18 22:42:24 +00:00
alecf%flett.org 5614718dd3 fix for bug 209220 - now that i18n APIs take ASCII charset names, update consumers to avoid excess conversions.. which usually means storing charset names as ASCII and updating a few other APIs
r=jkeiser, sr=jst and some great comments from jshin@mailaps.org
2003-06-17 16:40:34 +00:00
glazman%netscape.com aa9050e11d Was impossible to outdent a subset of an indented block in CSS mode
b=194963, r=kaie, sr=kin
2003-06-17 09:35:46 +00:00
glazman%netscape.com bef7afc6f3 Removing text styles in CSS mode was potentially removing too much if the styles were added in HTML mode
The fix creates a span element that will carry the inline styles and class of the HTML element to be removed, if any.
b=202037, r=kaie, sr=dmose
2003-06-17 08:45:54 +00:00
caillon%returnzero.com ba75de772b Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com
2003-06-13 20:10:01 +00:00
neil%parkwaycc.co.uk 108824e9bf Bug 69329 Use plain text editor for HTML source (also implements find in HTML source) r=brade sr=alecf 2003-06-13 12:55:17 +00:00
glazman%netscape.com 79d9d260c7 error in nsHTMLEditor::SetFlags(), has side-effects on CSS editing; b=209086, r=brade, sr=kin 2003-06-13 12:39:35 +00:00
kairo%kairo.at c616081c7d bug 207642 - update localeVersion for 1.5a, also update contents-platform.rdf and contents-region.rdf files, r=rchen, sr=blizzard 2003-06-12 15:19:21 +00:00
brade%netscape.com c242ab28d5 remove unused params; r=akkana, sr=kin, bienvenu, bug=208967 2003-06-12 14:51:37 +00:00
peterv%netscape.com 9360cadfed Fix HP-UX bustage from jfrancis checkin. 2003-06-12 11:20:00 +00:00
glazman%netscape.com 511d25c3f6 CSS indentation was not dropping non-editable nodes; b=203723, r=kaie, sr=peterv 2003-06-12 07:43:07 +00:00
jfrancis%netscape.com 4e3a501c39 improvement to 140357 fix: reducing bloat of previous patch, extending functionality to css-mode editting, and improving TypeInState to recognize redundant selection change notifications.
fix for 208317: css-mode editing left empty spans around, which could cause disapearing carets
r=brade; sr=kin
2003-06-11 19:33:01 +00:00
kaie%netscape.com b497c6895c b=207183 Smiley gets deleted, editor tries to manipulate whitespace in the -moz-user-select:all block
r=jfrancis sr=kin
2003-06-11 12:02:49 +00:00
kaie%netscape.com 6678fd2394 b=202166 Edit actions place caret on invalid position
r=jfrancis sr=kin
2003-06-11 11:50:36 +00:00
seawood%netscape.com 8f112a4226 Removing old cfm build files. Use the CFM_LAST_RITES tag to resurrect. r=macdev 2003-06-10 21:18:27 +00:00
brade%netscape.com 995573dc94 fix MOZ_COMPOSER to be specific to composer app; use plaintext flag; r=bryner, sr=smfr, bug 208132 2003-06-10 20:34:45 +00:00
seawood%netscape.com 6934dc37a9 Removing old cfm build files. Use the CFM_LAST_RITES tag to resurrect. r=macdev 2003-06-10 20:12:33 +00:00
brade%netscape.com fc284010a2 removing commented out includes 2003-06-10 18:57:51 +00:00
brade%netscape.com 271780827f remove some useless local variables, fix whitespace, add param to insertion hook (sourceDoc), r=rogermw, sr=kin, bug=208539 2003-06-10 18:53:11 +00:00
brade%netscape.com 3b206d0ebf add param to insertion hook (sourceDoc), r=rogermw, sr=kin, bug=208539 2003-06-10 18:52:31 +00:00
brade%netscape.com 15ae90a807 bug 208132; move required files (for html editing) out of ui/composer/content and into composer/src/res; r=byner, sr=smfr 2003-06-09 14:06:46 +00:00
brade%netscape.com 00fc2c47cb GetCommandState for document commands to return their boolean values; r=glazman, sr=sfraser, bug=208544 2003-06-06 19:28:25 +00:00
neil%parkwaycc.co.uk 11d271e05c Bug 206499 Tooltips missing for Cut, Copy & Paste in Composer r=brade sr=alecf 2003-06-05 12:32:41 +00:00
shliang%netscape.com c4a3a099fd 206820 - font menu in msg compose and composer doesn't work on osx. r=neil, sr=jag. 2003-06-05 00:48:49 +00:00
kairo%kairo.at 108ef75354 bug 207642 - update localeVersion for 1.5a - r=rchen, sr=blizzard 2003-06-04 11:11:19 +00:00
jshin%mailaps.org 1e0ac01fd8 bug 133615 : remove ISO-2022-KR/Visual Hebrew from 'Save As Charset' menu
in Composer. (r=neil, sr=jag)
2003-06-04 06:19:35 +00:00
neil%parkwaycc.co.uk e8225239d2 Bug 208094 Form/Image doesn't convert <img> r=brade sr=peterv 2003-06-03 14:44:05 +00:00
jfrancis%netscape.com 948ea9868f bug 140357: (html editor) deletion should preserve style state. r=brade; sr=kin 2003-06-02 22:21:06 +00:00
brade%netscape.com c6dd498436 remove bogus comment; r=Neil; rs=sspitzer; bug 129054 2003-05-30 19:45:46 +00:00
brade%netscape.com 5a286652d5 remove "Midas" codename from page contents; describing as "Rich Text Editing"; NOT PART OF BUILD 2003-05-30 15:43:54 +00:00
brade%netscape.com 8c5492c35e updated documentation for rich text editing (formerly known as midas) commands; all current commands (as of 1.5alpha today) are listed now. NOT PART OF BUILD. 2003-05-30 15:40:27 +00:00
brade%netscape.com aa7d697586 don't handle empty string from pref as valid background image; r=timeless, sr=jag; bug 207501 2003-05-30 13:36:48 +00:00
leon.zhang%sun.com 1cc73c1d82 patch for bug 207469: optimize timer usage in nsComposerCommandsUpdater::PrimeUpdateTimer()
sr=sfraser r=Henry.Jia
2003-05-30 06:33:47 +00:00
timeless%mozdev.org 53a7a2f1b6 Bug 206470 editing text files shouldn't have HTML features
r=brade sr=jag
2003-05-28 19:53:50 +00:00
neil%parkwaycc.co.uk ba19e76b3a Bug 45495 gui for editing form elements r=glazman sr=alecf 2003-05-27 12:44:22 +00:00
timeless%mozdev.org eb1326faf2 Bug 205347 warning: `PRBool IsInlineNode(class nsIDOMNode *)' defined but not used
r=brade,jfrancis sr=sfraser
2003-05-23 22:10:06 +00:00
timeless%mozdev.org 08a70ed81d Bug 204076 Remove unused variable `PRBool sameNode' from nsHTMLEditorStyle.cpp:524
r=brade sr=tor
2003-05-23 21:55:17 +00:00
timeless%mozdev.org 5ef0585a3c Bug 199989 Remove gNoisy code from libeditor.
r=brade sr=alecf
2003-05-23 21:43:10 +00:00
dwitte%stanford.edu 149f719c00 bug 100649: Length() being used where IsEmpty() is meant
treewide changes to convert incorrect usages of string.Length() to string.IsEmpty().

thanks to afatecha@idea.com.py (Ariel Fatecha) for the patch. r=dwitte, sr=jst.

got the ok from Asa to land into a closed tree.
2003-05-23 21:34:47 +00:00
timeless%mozdev.org 1cf43e4c72 Bug 206204 `nsHTMLTag gWatchTags[3]', nsEditorParserObserver defined but not used
r=brade sr=sfraser a=dbaron
2003-05-23 14:51:04 +00:00
jaggernaut%netscape.com beaec6185a Bug 205083: Composer's Selection List Properties dialog appears with a XML parsing error. Patch by neil.parkwaycc.co.uk@myrealbox.com, r=jag, sr=/a=sspitzer 2003-05-23 11:24:01 +00:00
brade%netscape.com e2ad168748 documentation changes for editor commands; r/sr=smfr; a=asa 2003-05-22 22:03:34 +00:00
neil%parkwaycc.co.uk 54c6518a29 Bug 204388 Support Ctrl++ and variants to increase font size in Composer r=brade r=bobj(l10n) sr=alecf a=asa 2003-05-22 12:35:23 +00:00
jkeiser%netscape.com c8633873f1 Fix drag and drop to/from textarea and input (bug 194802), r=bryner@netscape.com, sr=jst@netscape.com, a=sspitzer@netscape.com 2003-05-21 00:42:32 +00:00
timeless%mozdev.org 279209f254 Bug 206287 things Will be re-ordered to match declaration order
r=roc+moz sr=roc+moz a=roc+moz
2003-05-20 02:02:56 +00:00
sspitzer%netscape.com de77f3d307 landing last bit of neil.parkwaycc.co.uk@myrealbox.com's fix for bug #54802
we now have cut/copy/paste/find icons for modern and classic, so we can
enable the pref UI that allows users to enable / disable them.
r/sr/a=sspitzer
2003-05-20 00:26:46 +00:00
glazman%netscape.com 00ca69f01d crash when doing multiple redo commands in Composer; r=brade, sr=peterv, a=sspitzer 2003-05-16 09:08:03 +00:00
dbaron%dbaron.org a15b9f2cf4 Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan 2003-05-15 03:42:21 +00:00
kaie%netscape.com e922d41efb b=169213 hitting backspace deletes HR above, fix confusing caret placement around <hr> lines
r=jfrancis sr=sfraser a=sspitzer
2003-05-14 13:20:09 +00:00
kaie%netscape.com 3977ca8978 b=200417 backspace, enter keys have no visible impact
r=jfrancis sr=sfraser a=sspitzer
2003-05-14 13:17:32 +00:00
brade%netscape.com 9cd318825f api change to insertion filter to add flag for delete selection; r=timeless; sr=kin; a=asa; bug=204066 2003-05-09 18:33:14 +00:00
brade%netscape.com 0f6a3aedcb api change to insertion filter to add flag for delete selection; r=timeless; sr= kin; a=asa; bug=204066 2003-05-09 18:32:50 +00:00
brade%netscape.com 376c526961 api change to include event (similar to paste/drop hook); r=cmanske, sr=sfraser, a=asa bug=203365 2003-05-09 18:30:02 +00:00
brade%netscape.com c64e4eee66 cmd_clearUndo implementation; r/sr=smfr a=sspitzer bug 195506 2003-05-09 18:21:00 +00:00
brade%netscape.com faa13685c5 fix assignment per sspitzer; bug 195506 a=sspitzer r/sr=smfr 2003-05-09 18:18:53 +00:00
timeless%mozdev.org e5576b54e0 Bug 204069 ifdef DEBUG_kin some stuff in nsTextServicesDocument.cpp to remove warnings/hide unused debug code
r=kin sr=kin a=sspitzer
2003-05-02 21:13:41 +00:00
brade%netscape.com 0571059292 removing EditorOverride.css from jar; it's now a resource (bug 203399, r=timeless, sr=jag) 2003-04-29 13:36:31 +00:00
brade%netscape.com 35e02d4a66 bug 203399; remove needless stylesheet call; r=timeless; sr=jag 2003-04-29 13:34:30 +00:00
brade%netscape.com 8050d83eca 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 7ba09392a6 move docshell here to support hook utility methods (bug 203062; r=kin/kaie, sr=smfr) 2003-04-25 21:03:15 +00:00
neil%parkwaycc.co.uk 774dfb7b61 Bug 202338 font dropdown should be disabled unless body has focus r=brade sr=sspitzer 2003-04-23 08:25:34 +00:00
brade%netscape.com fd1224e85f missing hook from bug 192171 (r=brian johnson, sr=sfraser) 2003-04-22 20:32:59 +00:00
sfraser%netscape.com efcf8d6576 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
neil%parkwaycc.co.uk b3da04d9c0 Bug 201693 Composer ignores tab key (list indentation/table cell navigation) r=brade sr=bryner 2003-04-22 08:26:33 +00:00
timeless%mozdev.org e72faf000b Bug 73748 Remove nsJSComponentManager.js and nsJSSupportsUtils.js
patch by doron@netscape.com r=timeless sr=rbs
2003-04-20 20:46:25 +00:00
leon.zhang%sun.com 78f946e42d Bug 199412: optimize nsTypedSelection::ScrollIntoView r/sr=sfraser 2003-04-20 01:03:40 +00:00
brade%netscape.com 50c5f629a2 handle utf8 font names bug 201233; patch by taka, r=brade, sr=jag 2003-04-18 13:12:13 +00:00
jaggernaut%netscape.com 2a77c9318b Bug 145243: warning should be presented if user attempts cancellation of publish. r=kaie, sr=hewitt, moa=brade 2003-04-18 12:59:52 +00:00
seawood%netscape.com 5e2dd72a02 Implement mozcomps static build variant.
Remove unnecessary EXPORT_LIBRARY settings.
Bug #201602 r=bryner
2003-04-17 19:19:42 +00:00
kairo%kairo.at 0978e17a8a bug 202312 - localeVersion update for 1.4b, r=rchen, sr=blizzard 2003-04-17 18:43:57 +00:00
alecf%netscape.com ebd37e392b fix for plaintext editor, fallout from bug 201982
sr=sfraser
2003-04-17 18:28:35 +00:00
kin%netscape.com 09dde3b2ef 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
2003-04-17 14:29:08 +00:00
brade%netscape.com ca3fdeb474 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 d95e3e2d05 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 6673301edc 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 0a8b9a815b b=201974 Caret partially/completely visible with initial <p> </p>
r=jfrancis sr=sfraser
2003-04-16 20:18:41 +00:00
shliang%netscape.com 2bc8570c09 bug 107877. default font prefs for msg compose. r=neil, brade, sr=sspitzer, jag. 2003-04-16 07:07:10 +00:00
suresh%netscape.com 5cd17198b5 fix for bug 202150 - Insert Menu lacking id attributes. r/sr-smfr. 2003-04-15 23:03:33 +00:00
kaie%netscape.com 6e0de691c9 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 be2a207097 add insertion listener; bug 192567 (r=jfrancis, sr=kin) 2003-04-15 14:07:30 +00:00
brade%netscape.com d7db3c6ee0 updated insertHTML* methods; bug 192567 (r=jfrancis, sr=kin) 2003-04-15 14:00:08 +00:00
brade%netscape.com 86857f2b00 add new idl file; bug 192567 (r=jfrancis, sr=kin) 2003-04-15 13:57:38 +00:00
brade%netscape.com eb0fe9475a new idl file for bug 192567 (r=jfrancis, sr=kin) 2003-04-15 13:56:53 +00:00
brade%netscape.com a965a2ae14 add document commands for toggling image animation/plugins, clearing undo stack; r/sr=sfraser (patch in bug 195506) 2003-04-15 13:53:51 +00:00
bzbarsky%mit.edu 5df3b30a3b 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 01d0c60590 MakeList is redundant with AppendList. Bug 179810, r=jfrancis, sr=kin 2003-04-13 04:30:16 +00:00
jaggernaut%netscape.com 414b1998c4 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.
2003-04-11 13:20:20 +00:00
alecf%netscape.com 8b7145ecb4 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 4dbf4f2abf Appease the Windows __stdcall gods. Bug 201257. 2003-04-10 20:45:17 +00:00
sfraser%netscape.com d61e2195a4 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 cfcce2de81 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 8468c6fa68 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 150409662a 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
neil%parkwaycc.co.uk 85399e0b0b Bug 193712 Text and highlight colours don't translate rgb in css mode r=glazman sr=kin 2003-04-07 08:11:21 +00:00
neil%parkwaycc.co.uk f4117b3995 Bug 192084 cannot assign multiple classes to elements r=glazman sr=kin 2003-04-07 08:09:56 +00:00
kin%netscape.com 03308d1b07 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 086e9f0622 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 0ec32e88c8 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 676f90b0b2 Add defined(XP_MACOSX) to bail early when !mInIMEMode. r=brade, sr=lumpy 2003-04-04 13:26:12 +00:00
jaggernaut%netscape.com 9eae2082b5 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 a5a80015e1 Remove nsIIndpendentSelection, moving its one method onto nsISelectionPrivate. Bug 192827. r/sr=kin. 2003-04-04 01:45:06 +00:00
neil%parkwaycc.co.uk ffefee4ca3 Bug 198878 Preferences>Composer>Toolbars says Preview while Composer's toolbar says Browse r=brade sr=dmose 2003-04-03 09:08:57 +00:00
brade%netscape.com 9d2930b43f 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
brade%netscape.com 4345a8c17f make EditorOverride.css a resource; fix bug 196075; r=jfrancis, sr=bryner 2003-04-03 08:01:49 +00:00
seawood%netscape.com de59dbee4b Purge XP_PC.
Bug #56767 r=mkaply sr=alecf
2003-04-02 22:45:08 +00:00
henry.jia%sun.com b7df6947aa 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 b11cb5e21e Oops, removing ^M characters. Fixing IRIX bustage. 2003-04-02 04:52:53 +00:00
bryner%netscape.com d77ece64e2 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 8381c0d44d Remove unused file. b=198627 r+sr=sfraser 2003-04-01 19:32:59 +00:00
brade%netscape.com 8faaa86dec correct some API changes; add a few more commands; still incomplete (NOT PART OF BUILD) 2003-04-01 09:54:28 +00:00
jkeiser%netscape.com 7cd170336c Fix .originalTarget problems in editor (bug 193689), r=brade@netscape.com, sr=jst@netscape.com, a=asa 2003-04-01 06:12:51 +00:00
sfraser%netscape.com f8756f25f7 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. 2003-03-31 19:08:00 +00:00
alecf%netscape.com 925955c81d 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 e330f0c63e 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 8bfa453ecb 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
glazman%netscape.com 0ee6895c46 EditorOverride.css contained slow CSS rules; b=196625, r=kin, sr=kin 2003-03-25 15:16:21 +00:00
locka%iol.ie 8214c54221 Add PERSIST_FLAGS_DONT_CHANGE_FILENAMES flag to prevent filename munging during composer upload. b=138832 r=brade@netscape.com sr=jaggernaut@netscape.com 2003-03-25 12:19:05 +00:00
neil%parkwaycc.co.uk a2c4b6a491 Bug 198264 Editor's "Toolbars" category label cannot be localised r=brade sr=alecf 2003-03-24 13:54:49 +00:00
timeless%mozdev.org 965ba28bb1 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 2e125db44a 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 ee778d7be5 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 b8893ea45e 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 8c1895d104 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 03b6da655f fix for 161969: remove empty mailcites when editting
r=brade; sr=kin
2003-03-23 19:51:03 +00:00
jfrancis%netscape.com 86986ab464 fix for 118912: atomic deletion of emoticons
r=glazman; sr=kin
2003-03-23 19:45:40 +00:00
sspitzer%netscape.com bb2efc3630 fix for bug #198624
bulletproof for crasher in nsHTMLEditor::HideResizers()
r=brade,sr=kin
2003-03-22 17:22:22 +00:00
syd%netscape.com 38fe3e6792 http://bugzilla.mozilla.org/show_bug.cgi?id=195655
Add support for 9 new smilies, and clean up code a bit (part of multiple checkins)
2003-03-22 04:54:35 +00:00
alecf%netscape.com 16af458ceb backout my static atom patch for now until I figure out the performance loss! :(
bug 195262
2003-03-21 20:13:08 +00:00
jaggernaut%netscape.com e11eb11c40 Bug 26288: Allow user to select system fonts in editor UI. r=Neil, sr=sspitzer, moa=brade 2003-03-21 08:36:28 +00:00
alecf%netscape.com c4ea07bc53 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
heikki%netscape.com 87734f06b5 Bug 172065, remove unused XIF labels, patch by stevechapel@earthlink.net, r=sgehani, sr=heikki. 2003-03-21 01:11:52 +00:00
bzbarsky%mit.edu 2eddb1a738 Fix preview in image insertion dialog. Bug 198428, r=brade, sr=blizzard 2003-03-21 00:29:31 +00:00
brade%netscape.com b7852204ac cleanup various items like omitting needless QI, fixing case to match idl file, adding parens to JS function, fix case of doctype string; r=timeless,Neil, sr=jag; bug 198402 2003-03-20 15:37:42 +00:00
brade%netscape.com 34c300a4f2 remove unused nsRemoveLinksCommand (it's in C++); r=timeless, Neil, sr=jag; bug 198402 2003-03-20 15:36:26 +00:00
bzbarsky%mit.edu 1bfea66b89 Landing bug 83774 -- move image loading for <img>, <object>, <embed>, <input
type="image"> into the content nodes and out of nsImageFrame.  r=pavlov, sr=jst
2003-03-19 03:47:09 +00:00
jaggernaut%netscape.com 1e43bc274e Bug 189803: smaller images (decreased file size for various composer images), new images by Brant Langer Gurganus <brantgurganus2001@cherokeescouting.org>, r=brade, sr=jag 2003-03-19 00:14:20 +00:00
timeless%mozdev.org ea914a6dbe Bug 132209 Many XUL documents are invalid XML (<!DOCTYPE window ...>)
patch by riceman+bmo@mail.rit.edu r=timeless sr=jag moa=brade
2003-03-17 22:55:50 +00:00
dougt%netscape.com be629223b6 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
neil%parkwaycc.co.uk da09ae6a42 Bug 54802 Add clipboard buttons for Composer r=brade sr=alecf 2003-03-14 15:23:53 +00:00
shliang%netscape.com 6fed48c7d6 147653 - page setup commands doesn't work in mail and composer. r/sr=sspitzer,jag 2003-03-14 06:27:48 +00:00
pete.zha%sun.com 4c311d39d2 bug=195784 Composer - New Page Settings: access key missing for background color picker
r=brade@netscape.com sr=jaggernaut@netscape.com patch=jessie.li@sun.com
2003-03-12 03:05:57 +00:00
brade%netscape.com 27eabbf773 allow only compatible trasferable flavors (bug 196728, r=smfr, sr=kin) 2003-03-11 19:02:18 +00:00
neil%parkwaycc.co.uk 9859de30bb Bug 195423 EdConvertToTable.js tries to SetTextboxFocus to a <radiogroup> r=brade sr=kin 2003-03-11 10:07:46 +00:00
brade%netscape.com 078bb944e6 fix unlink (remove href) command; it needs to only do removal r=Neil, timeless, sr=kin; bug 193716 2003-03-04 15:42:44 +00:00
neil%parkwaycc.co.uk 794690e939 Bug 54802 Add clipboard buttons for Composer (backend work) r=brade sr=alecf 2003-03-04 12:12:29 +00:00
glazman%netscape.com 03772aaf53 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
cbiesinger%web.de 1eac5db47b 195108 patch by piersc@cogs.susx.ac.uk r=dean_tessman@hotmail.com sr=dmose moa=brade Add accesskeys to editor Find and Replace dialog (editor) 2003-02-28 22:57:33 +00:00
sfraser%netscape.com 44ebe7e101 Fix for bug 74404 -- show caret drag feedback. r=brade, sr=kin 2003-02-27 23:20:15 +00:00
sfraser%netscape.com 0fce5c3a3b Fix bug 74404: show caret drag feedback. r=brade, sr=kin 2003-02-27 23:09:51 +00:00
kin%netscape.com 54e564e2a5 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
brade%netscape.com 191c65b718 allow editors to edit documents which contain iframes (bug 193902, r=cmanske, sr=smfr) 2003-02-27 14:06:29 +00:00
neil%parkwaycc.co.uk 9575d10cc6 Bug 192013 Command updating far too slow r=brade r=cavin sr=sspitzer 2003-02-27 09:41:40 +00:00
kairo%kairo.at 11348f5311 bug 194924 - localeVersion update for 1.4a, r=rchen, sr=blizzard 2003-02-27 00:05:44 +00:00
dbaron%dbaron.org dc66fa042f Remove extra line that seems to have broken the mac builds. b=47066 Fixing bustage. 2003-02-24 15:32:34 +00:00
neil%parkwaycc.co.uk 6dceef4315 Bug 177055 Fix an uninitialized variable in Selection List Properties dialog r=brade sr=sfraser 2003-02-24 12:50:21 +00:00
glazman%netscape.com 034aaf432f missing files for b=47066, r=brade,cmanske, sr=kin 2003-02-24 10:18:18 +00:00
glazman%netscape.com 2a1389ecba 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
pete.zha%sun.com 29f051b1d6 bug=193068
Missing accesskeys in preference dialogs
r=timeless sr=jaggernaut@netscape.com
2003-02-24 07:59:17 +00:00
kairo%kairo.at f142fe7945 bug 44908 - HTML Message/Compose Mnemonics: Format menu should match spec, r=brade, sr=sspitzer, checking in for piersc@cogs.susx.ac.uk 2003-02-22 13:51:13 +00:00
jkeiser%netscape.com dd40836ee4 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 d4ce4ad061 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 cc390fbe51 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
brade%netscape.com d8751c6855 register command for removing a link (bug 193716); r=mkaply, sr=smfr, a=asa 2003-02-19 15:03:49 +00:00
heikki%netscape.com 0b3921ec72 Fixing build bustage; added missing semicolon. 2003-02-17 22:19:43 +00:00
mkaply%us.ibm.com dfc64e92c1 #193719
r=brade, sr=kin, a=dbaron
Midas - crash - handle unexpected empty parameters
2003-02-17 21:02:43 +00:00
brade%netscape.com 2c5b734cac add comments, remove warnings, cancel mLoadBlankDocTimer to prevent crash, disable animation of images (bugs 191392, 192976, 191166) r=smfr, kin, brade; a=asa (mLoadBlankDocTimer portion originally submitted by cmanske@netscape.com) 2003-02-14 14:56:32 +00:00
neil%parkwaycc.co.uk 16015d3292 Bug 192299 Editing a page when browsing a named anchor should strip off anchor name from url r=brade sr=sfraser a=asa 2003-02-14 11:56:49 +00:00
neil%parkwaycc.co.uk 6136c59eb6 Bug 185790 Impossible to remove JavaScript Events in Composer r=brade sr=sfraser a=asa 2003-02-14 11:42:10 +00:00
neil%parkwaycc.co.uk 1b19156a4e Bug 82547 patch allows Composer to catch mouse events on some form elements r=glazman sr=kin a=asa 2003-02-14 09:59:51 +00:00