453 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
bzbarsky%mit.edu
c3731640d3 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.


git-svn-id: svn://10.0.0.236/trunk@134667 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-03 05:48:14 +00:00
cmanske%netscape.com
a4776ceb5a Added command to notify when document url changes. b=181091, r=akkana, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@134507 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-27 00:35:09 +00:00
akkana%netscape.com
d8f411eac7 110378: Don't lose data when head is rewritten to HEAD. r=brade sr=kin
git-svn-id: svn://10.0.0.236/trunk@134497 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-26 22:15:30 +00:00
bzbarsky%mit.edu
04bc7e2dbf Clean up some array stuff in editor; switch to nsCOMArray in a bunch of
places.  Bug 175564, r=jfrancis, sr=kin


git-svn-id: svn://10.0.0.236/trunk@133685 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 19:40:11 +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
jfrancis%netscape.com
a4602c0168 fix for 173818: first char typed in html mail reply lost. r=akk, sr=kin, a=asa
git-svn-id: svn://10.0.0.236/trunk@132128 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 03:16:34 +00:00
cmanske%netscape.com
b44e10b466 More 'editorShell' removal. b=169029, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@131508 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-09 00:26:08 +00:00
jfrancis%netscape.com
397f1dc55c fix for 164054: Place selection at first visible content on editor doc load
r=brade
sr=kin


git-svn-id: svn://10.0.0.236/trunk@131481 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 22:53:55 +00:00
brade%netscape.com
6f4e5503ee remove unused CIDs (r=mjudge/sr=kin/bug 121648)
git-svn-id: svn://10.0.0.236/trunk@131304 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-07 14:21:34 +00:00
glazman%netscape.com
3d911d45f9 Fixes a crash when hitting backspace in Composer
b=167543, r=timeless, sr=kin


git-svn-id: svn://10.0.0.236/trunk@130134 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-20 08:57:04 +00:00
glazman%netscape.com
c5b53110a9 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


git-svn-id: svn://10.0.0.236/trunk@130131 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-20 08:53:52 +00:00
glazman%netscape.com
2ea99f5786 missing changes in nsHTMLEditor.cpp from bug 167712, solves minor problems in CSS mode of Composer, r=timeless, sr=kin
git-svn-id: svn://10.0.0.236/trunk@130097 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-20 02:09:04 +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
brade%netscape.com
d02f0306a5 PreventDefault in html editors for normal typing (letters/numbers/etc) (bug 158672, r=timeless, sr=smfr)
git-svn-id: svn://10.0.0.236/trunk@129825 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-17 21:27:30 +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
akkana%netscape.com
a2c8efc800 124265: make nsIEditorStyleSheet more scriptable. Fix is partly me r=cmanske, partly cmanske r=me; all is sr=alecf
git-svn-id: svn://10.0.0.236/trunk@129543 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-13 19:47:38 +00:00
cmanske%netscape.com
8198a66a34 Fixed table row deletion and reorganized nsITableEditor methods. b=166922, r=akkana, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@129491 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-13 04:19:30 +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
jfrancis%netscape.com
09d3e8e707 fix for 161106: rewrite of deletion in editor. fixes various deletion probs. r=glazman; sr=kin
git-svn-id: svn://10.0.0.236/trunk@128444 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-29 07:49:31 +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
seawood%netscape.com
829192b1b5 Removing unused _NS_IMPL_LAYOUT define.
Thanks to Stephen Walker <walk84@yahoo.com> for the patch.
Bug #162308 r=cls


git-svn-id: svn://10.0.0.236/trunk@127350 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-15 05:39:40 +00:00
glazman%netscape.com
1bb26c5aaa fixing crash in Composer when head sub-elements are displayed; b=162062, r=brade, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@127147 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-13 10:01:52 +00:00
akkana%netscape.com
06192e5146 118883: Fix a leak of nsHTMLCSSUtils. r=glazman sr=kin
git-svn-id: svn://10.0.0.236/trunk@126557 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 00:02:10 +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
akkana%netscape.com
ac744a4bf8 132352: Use the parser service for blockness detection. r=brade sr=kin
git-svn-id: svn://10.0.0.236/trunk@123066 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-11 20:43:49 +00:00
jfrancis%netscape.com
90c6f46b66 fix for 144787: multiple breaks inserted on return. r=fm;sr=kin
git-svn-id: svn://10.0.0.236/trunk@121731 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-17 02:44:55 +00:00
jfrancis%netscape.com
64b7f510fc 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
git-svn-id: svn://10.0.0.236/trunk@121418 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-14 00:05:37 +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
jfrancis%netscape.com
0c211fb13a 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


git-svn-id: svn://10.0.0.236/trunk@118948 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-14 02:37:23 +00:00
jfrancis%netscape.com
f81c6987d5 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


git-svn-id: svn://10.0.0.236/trunk@118389 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-06 19:07:47 +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
cmanske%netscape.com
4c87049c94 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
git-svn-id: svn://10.0.0.236/trunk@116754 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-17 20:39:16 +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
akkana%netscape.com
1f0b47ba2b 128903: Clean up the editor IDL, and anyone who uses them. r=brade,cmanske,ducarroz (for mail); sr=sfraser; a=dbaron
git-svn-id: svn://10.0.0.236/trunk@116581 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 22:11:14 +00:00
ducarroz%netscape.com
7165633ade 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
git-svn-id: svn://10.0.0.236/trunk@116325 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-11 14:54:59 +00:00
glazman%netscape.com
0f31219295 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


git-svn-id: svn://10.0.0.236/trunk@116322 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-11 13:11:48 +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
alecf%netscape.com
f85a67075e 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


git-svn-id: svn://10.0.0.236/trunk@114971 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 22:49:12 +00:00
jfrancis%netscape.com
b38a95dde6 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


git-svn-id: svn://10.0.0.236/trunk@114926 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 12:02:09 +00:00
glazman%netscape.com
81a7731014 bad test of collapsed selection, had side effect on setting background color; b=121903, r=jfrancis, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@114785 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 10:06:07 +00:00
bzbarsky%mit.edu
f68919f405 Relanding the Compare --> Equals conversion. a=mcafee
git-svn-id: svn://10.0.0.236/trunk@114163 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-10 15:49:46 +00:00