739 Commits

Author SHA1 Message Date
glazman%netscape.com
0aa2a089cd nsHTMLEditor::GetInlinePropertyBase() was not detecting when the selection ends before first char of a text node; b=128401, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@123498 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-18 09:20:07 +00:00
cmanske%netscape.com
3404165b95 Fixed crash when inserting column in table, b=152320, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@123450 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-17 20:40:47 +00:00
akkana%netscape.com
8c220f972c 145727: use nsString.FindChar, clean up conflicting string usages. Patch from skamio@netscape.net (Shotaro Kamio), r=akkana, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@123355 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-14 22:10:56 +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
jfrancis%netscape.com
ec1f2825a3 bug 146164: removing style can remove too much. r=glazman, sr=kin
git-svn-id: svn://10.0.0.236/trunk@123151 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-12 14:04:47 +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
alecf%netscape.com
6ebda75c34 fix for bug 101761 - REQUIRES update - remove all REQUIRES that are no longer necessary.. r=cls, a=asa (build-only changes)
git-svn-id: svn://10.0.0.236/trunk@122820 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-06 20:28:14 +00:00
jfrancis%netscape.com
d370191df3 fixing 136165: crash after deleting styled text. r=cmanske sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@122099 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-23 22:05:35 +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
dougt%netscape.com
d6cc711878 Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756
git-svn-id: svn://10.0.0.236/trunk@121534 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 18:55:21 +00:00
jfrancis%netscape.com
7051a47928 fix for 108035: making a list out of several divs gave bad results sr=kin r=brade
git-svn-id: svn://10.0.0.236/trunk@121425 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-14 00:35:57 +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
pinkerton%netscape.com
cdb4fe925b don't register image/jpeg, it only gets in the way of other things we do
support. r=brade/sr=alecf. bug# 69566


git-svn-id: svn://10.0.0.236/trunk@120462 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-01 22:02:54 +00:00
kin%netscape.com
68d79e4f6b 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


git-svn-id: svn://10.0.0.236/trunk@120323 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-30 20:59:43 +00:00
alecf%netscape.com
61312b4eeb 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


git-svn-id: svn://10.0.0.236/trunk@120220 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-29 20:29:54 +00:00
glazman%netscape.com
569c41821a weird crasher in |nsHTMLCSSUtils::GetElementContainerOrSelf|
b=138003, r=jfrancis, sr=kin


git-svn-id: svn://10.0.0.236/trunk@120187 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-29 10:13:23 +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
bienvenu%netscape.com
efcf334394 make this file build (at least on windows) after nsIFileOutputStream changes r/sr = jkeiser
git-svn-id: svn://10.0.0.236/trunk@119334 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-18 23:14:30 +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
jfrancis%netscape.com
353f2a4e3c fix for bug 100855: paragraph fromat feedback from editor inaccurate. r=brade; sr=kin
git-svn-id: svn://10.0.0.236/trunk@118951 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-14 05:57:14 +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
937e3eda32 fixing 136944: crash typing in editor. r=fm sr=kin
git-svn-id: svn://10.0.0.236/trunk@118944 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-13 23:54:59 +00:00
glazman%netscape.com
bb46744574 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
git-svn-id: svn://10.0.0.236/trunk@118746 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-11 13:33:30 +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
jfrancis%netscape.com
e7c3885f41 fix for 82813: tweaking editor whitespace handling to behave better when deleting in PRE
r=brade; sr=kin; a=asa


git-svn-id: svn://10.0.0.236/trunk@117148 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-22 04:10:25 +00:00
jfrancis%netscape.com
71aa660d6a fix for Bug 131757: deleting styled content in block can cause blank line insertion
r=glazman; sr=kin; a=asa


git-svn-id: svn://10.0.0.236/trunk@117123 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-22 00:03:10 +00:00
jfrancis%netscape.com
ee2e7588a7 fix for Bug 113320: outdenting inside tables hosed.
r=glazman; sr=kin; a=asa


git-svn-id: svn://10.0.0.236/trunk@117115 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 23:44:23 +00:00
jfrancis%netscape.com
f8cdff6d98 fix for Bug 114112: indenting across separate table cells hosed.
r=glazman; sr=kin; a=asa


git-svn-id: svn://10.0.0.236/trunk@117110 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 23:40:50 +00:00
jfrancis%netscape.com
574f9e89c1 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


git-svn-id: svn://10.0.0.236/trunk@117101 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 23:24:21 +00:00
jfrancis%netscape.com
90d1805408 fix for 82813: tweaking editor whitespace handling to behave better when deleting in PRE
r=brade; sr=kin; a=asa


git-svn-id: svn://10.0.0.236/trunk@117097 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 23:20:57 +00:00
cmanske%netscape.com
a0ec0c6d6f Fixed busted double-click word selection in Composer, b=131739, sr=scc, a=asa
git-svn-id: svn://10.0.0.236/trunk@117030 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 02:47:52 +00:00
kin%netscape.com
6013bc741c 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


git-svn-id: svn://10.0.0.236/trunk@116938 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 01:45:55 +00:00
glazman%netscape.com
99544af45d Memory leak fixed in nsHTMLCSSUtils::GetDefaultViewCSS()
b=130904, r=peterv, sr=kin, a=asa


git-svn-id: svn://10.0.0.236/trunk@116789 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-18 10:40:58 +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
jfrancis%netscape.com
b521bfd66f one word fix for smoketest blocker 130103
git-svn-id: svn://10.0.0.236/trunk@116367 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 04:05:46 +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
jfrancis%netscape.com
26e0990680 fixes bugs 127869, 127939, and 128793: various bug with list pasting; sr=kin; r=glazman; a=asa [trunk]
git-svn-id: svn://10.0.0.236/trunk@116321 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-11 09:30:51 +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
darin%netscape.com
04849998e1 fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@115936 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 07:48:55 +00:00
jfrancis%netscape.com
4206e67ceb fixes blocker 126558; r=brade,jrancis, sr=alecf, a=rods;
thanks to kin for cleaning up my "replace all" accident


git-svn-id: svn://10.0.0.236/trunk@115166 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-21 20:50: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