59 Commits

Author SHA1 Message Date
dbaron%dbaron.org
daa2fa4b45 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@135995 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:51:43 +00:00
jfrancis%netscape.com
dab8e009ec 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


git-svn-id: svn://10.0.0.236/trunk@135560 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-22 01:51:14 +00:00
dbaron%fas.harvard.edu
ec61a6b0ab Remove unused parser-related code. b=130439 r=harishd sr=jst
git-svn-id: svn://10.0.0.236/trunk@134577 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-28 19:43:51 +00:00
caillon%returnzero.com
9641b989dd Bug 181442 - Convert editor's pref usage to the new pref APIs.
r=brade sr=kin


git-svn-id: svn://10.0.0.236/trunk@134351 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-23 01:26:58 +00:00
brade%netscape.com
e9a66badb0 Cut when no selection should just return NS_OK (not error which causes JS to throw an error); bug 178725, r=akkana, sr=kin
git-svn-id: svn://10.0.0.236/trunk@133767 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 21:21:28 +00:00
cmanske%netscape.com
6d236babea 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
git-svn-id: svn://10.0.0.236/trunk@133708 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 23:30:29 +00:00
bryner%netscape.com
b345c67a0c 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.
git-svn-id: svn://10.0.0.236/trunk@133439 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-09 00:25:25 +00:00
bryner%netscape.com
da718f1470 Bug 104371 - shiftKey not set correctly for keypress events, breaking shift+space binding. r=brade, bzbarsky, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@133250 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-07 03:34:13 +00:00
blizzard%redhat.com
6dc418b1ea Backout unapproved checkin for bug #104371.
git-svn-id: svn://10.0.0.236/trunk@132403 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-23 15:18:13 +00:00
hyatt%netscape.com
3dbbc65466 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


git-svn-id: svn://10.0.0.236/trunk@132393 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-23 03:15:42 +00:00
akkana%netscape.com
1cd9257122 161143: Add new method InsertTextWithQuotes, and call it from Rewrap. r=brade,jfrancis sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@131455 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 20:24:23 +00:00
cmanske%netscape.com
7b1780cf51 Progress on removing editorShell from Composer: fixed controller and command problems and mimetype and 'documentEditable' to editor interfaces, b=169029, r=brade, sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@129937 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-18 19:42:38 +00:00
glazman%netscape.com
2f30b4784e 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


git-svn-id: svn://10.0.0.236/trunk@129785 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-17 12:04:59 +00:00
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +00:00
dougt%netscape.com
1ebc6538fb Move FROZEN ContractID into nsXPCOM.h and define r=rpotts, sr=alec, b=166426
git-svn-id: svn://10.0.0.236/trunk@128770 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 23:36:13 +00:00
mjudge%netscape.com
2f5c006a1d 4302 r=jfrancis sr=kin. pageup/down bug with navigation.
git-svn-id: svn://10.0.0.236/trunk@128157 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-26 20:55:30 +00:00
brade%netscape.com
b812450ad0 call preventdefault for keypresses we insert (r=akkana, sr=sfraser) bug 158672 (and others)
git-svn-id: svn://10.0.0.236/trunk@126673 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 14:45:08 +00:00
alecf%netscape.com
573e11653f bug 157624 - prep for freezing nsISupports* primitives by renaming the string classes appropriately
nsISupportsString  -> nsISupportsCString
nsISupportsWString -> nsISupportsString
r=dougt, sr=jag


git-svn-id: svn://10.0.0.236/trunk@126389 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 00:53:19 +00:00
kin%netscape.com
fa152a3def 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


git-svn-id: svn://10.0.0.236/trunk@123236 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 20:35:12 +00:00
jfrancis%netscape.com
97060bb3df bug 83378: plaintext mail reply editong problem in quotes
git-svn-id: svn://10.0.0.236/trunk@123153 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 14:12:32 +00:00
jaggernaut%netscape.com
fe68e4711d Backing out joki's checkin for bug 124990 (at his request) since this breaks some stuff on linux.
git-svn-id: svn://10.0.0.236/trunk@119450 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-20 01:48:32 +00:00
joki%netscape.com
568563a1cc 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.


git-svn-id: svn://10.0.0.236/trunk@119346 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-19 02:52:01 +00:00
akkana%netscape.com
a8c06c892e 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.


git-svn-id: svn://10.0.0.236/trunk@119175 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-16 23:11:33 +00:00
akkana%netscape.com
e752937005 131277: change signature of outputToString to return the string. r=jfrancis sr=sfraser a=asa
git-svn-id: svn://10.0.0.236/trunk@117419 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-25 22:39:19 +00:00
dbaron%fas.harvard.edu
359ad57ca1 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
git-svn-id: svn://10.0.0.236/trunk@117343 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 22:08:20 +00:00
alecf%netscape.com
2b25d38de6 fix for blocker - intialize originalStart
git-svn-id: svn://10.0.0.236/trunk@116872 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 19:52:45 +00:00
alecf%netscape.com
f4ad21ae3a 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
git-svn-id: svn://10.0.0.236/trunk@116842 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 06:46:56 +00:00
dbaron%fas.harvard.edu
a397ea7022 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
git-svn-id: svn://10.0.0.236/trunk@116720 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 15:34:43 +00:00
glazman%netscape.com
b231f8945d 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


git-svn-id: svn://10.0.0.236/trunk@116645 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 15:33:29 +00:00
ftang%netscape.com
3fc8df7cf5 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
  {


git-svn-id: svn://10.0.0.236/trunk@116055 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 14:34:35 +00:00
glazman%netscape.com
2a28453859 remove CSSisms from nsEditor; b=121092, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112852 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 10:16:52 +00:00
glazman%netscape.com
5124d29644 CSS in Composer, step 1 ; b=77705, r=jfrancis, r=cmanske, sr=kin
git-svn-id: svn://10.0.0.236/trunk@111660 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 13:51:37 +00:00
brade%netscape.com
3d58211329 remove 5 static CID/IID since they are unused (bug 117927; r=glazou, rs=shaver)
git-svn-id: svn://10.0.0.236/trunk@111305 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-03 15:47:27 +00:00
brade%netscape.com
70c49b1272 more NS_LITERAL_STRING cleanup (bug 26384; r=cmanske, sr=alecf)
git-svn-id: svn://10.0.0.236/trunk@110631 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-17 15:23:51 +00:00
brade%netscape.com
4d6d20f598 NS_LITERAL_STRING cleanup (bug 26384; r=akk, sr=kin)
git-svn-id: svn://10.0.0.236/trunk@110009 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 15:28:47 +00:00
jkeiser%iname.com
670c65fdd2 Fix for bug 109754 (crash on dhtmlcentral.com). r=kin@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109093 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 03:22:30 +00:00
timeless%mac.com
7b921259da Bugzilla Bug 110080 change !NS_SUCCEEDED(status) to NS_FAILED(status)
s/!NS_SUCCEEDED/NS_FAILED/g;s/!NS_FAILED/NS_SUCCEEDED/g;
r=dougt sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@108471 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 06:45:00 +00:00
bzbarsky%mit.edu
068756d821 Use NS_LITERAL_STRING instead of NS_ConvertASCIItoUCS2 where possible
(i.e. where the string is a literal).  Bug 104159, r=jag, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@107987 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:33:42 +00:00
jaggernaut%netscape.com
38717bd097 Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@106473 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-27 11:28:06 +00:00
gerv%gerv.net
3821428085 License changes, take 2. Bug 98089. mozilla/editor/.
git-svn-id: svn://10.0.0.236/trunk@103757 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 22:53:13 +00:00
gerv%gerv.net
ae1d5501a1 Oops.
git-svn-id: svn://10.0.0.236/trunk@103236 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 00:02:59 +00:00
scc%mozilla.org
52c8d09e03 bug #98089: ripped new license
git-svn-id: svn://10.0.0.236/trunk@103219 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 20:09:47 +00:00
bryner%netscape.com
f5ed2a3be4 Bug 47551 -- removing obsolete nsIFileSpecWithUI and nsIFileWidget. r=pavlov, sr=ben.
git-svn-id: svn://10.0.0.236/trunk@102213 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 22:56:38 +00:00
jaggernaut%netscape.com
2b3b3b2586 Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa
git-svn-id: svn://10.0.0.236/trunk@99906 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-25 07:54:28 +00:00
dbaron%fas.harvard.edu
9359000a40 Header include dependency cleanup. b=64023 r=jag rs=brendan
git-svn-id: svn://10.0.0.236/trunk@99299 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-16 02:40:48 +00:00
anthonyd%netscape.com
cffdd20182 bug fix for 81288 - &nbsp removed from source when changing views
r=kin@netscape.com
sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@99255 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-14 00:50:21 +00:00
jaggernaut%netscape.com
51b17b5bf0 Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.

nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)


git-svn-id: svn://10.0.0.236/trunk@98363 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-30 11:02:25 +00:00
jfrancis%netscape.com
0ed7094afa fix for 67847: forward delete can make caret go to start of doc. r=kin; sr=sfraser; a=asa
git-svn-id: svn://10.0.0.236/trunk@96972 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-12 22:21:12 +00:00
yokoyama%netscape.com
7ae38c7612 Bug 63029: Japanese input in text area in forms confuses subsequent input
The fix is to
- maintain the index of PasswordBuf at the start of IME
- maintain the old IME text
- remove the old IME text from PasswordBuf
/r=jfrancis, /sr=kin, /a=blizzard


git-svn-id: svn://10.0.0.236/trunk@96481 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-06 01:21:05 +00:00
kin%netscape.com
8dade4ed7b Fix for bug #75305: Doing Undo and Redo crashes browser
Added nsAutoUpdateViewBatch class, and use it in
nsPlaintexteditor::Undo()/Redo().

    editor/base/nsEditorUtils.h
    editor/base/nsPlaintextEditor.cpp

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


git-svn-id: svn://10.0.0.236/trunk@94654 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-11 13:59:11 +00:00