704 Commits

Author SHA1 Message Date
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
jfrancis%netscape.com
31165ba709 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@114924 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 11:52:50 +00:00
glazman%netscape.com
bf33b04993 alignment problems + removal of useless DIVs when realigning the selection; b=102547, r=jfrancis,sr=kin
git-svn-id: svn://10.0.0.236/trunk@114790 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 10:49:15 +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
bzbarsky%mit.edu
ffecf7f104 Testing performance impact of backout of what's left of the patch from
bug 115289.  See bug 123947 for details. a=mcafee


git-svn-id: svn://10.0.0.236/trunk@114152 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-09 20:46:05 +00:00
kin%netscape.com
0dc3512422 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


git-svn-id: svn://10.0.0.236/trunk@114029 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-08 15:20:19 +00:00
jfrancis%netscape.com
15acb56766 duh
git-svn-id: svn://10.0.0.236/trunk@113880 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-07 04:44:21 +00:00
jfrancis%netscape.com
d69842f478 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


git-svn-id: svn://10.0.0.236/trunk@113873 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-07 03:56:20 +00:00
alecf%netscape.com
8fac3559db dependency update
git-svn-id: svn://10.0.0.236/trunk@113833 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 22:19:07 +00:00
glazman%netscape.com
f05f35f548 Adding noCSS flag to nsHTMLEditor; b=bugscape11956, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@113704 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 15:16:14 +00:00
bzbarsky%mit.edu
2fd80b82c9 Convert Compare() to Equals() where possible now that we can do
case-insensitive Equals().  Bug 115289, r=alecf, sr=jag


git-svn-id: svn://10.0.0.236/trunk@113665 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 02:03:07 +00:00
alecf%netscape.com
4331ed65d3 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


git-svn-id: svn://10.0.0.236/trunk@113200 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 06:04:29 +00:00
glazman%netscape.com
d5dadcf26c inline styles were not saved because gElement was outside of document's tree; b=91548, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@113041 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 16:00:12 +00:00
timeless%mac.com
cea26a6b9c Bug 117418 nsWSRunObject.cpp:704: warning: `PRInt32 curStartOffset' might be used uninitialized in this function
r=akkana sr=brendan


git-svn-id: svn://10.0.0.236/trunk@112989 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 07:07:10 +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
0689972d2f Text Color well reverts to black when typing; b=112966, r/sr=kin
git-svn-id: svn://10.0.0.236/trunk@112850 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 09:53:58 +00:00
glazman%netscape.com
830115b4df composer background image broken source code; b=120662, r=brade, sr=kin, a=blizzard
git-svn-id: svn://10.0.0.236/trunk@112493 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-21 09:30:02 +00:00
glazman%netscape.com
041958bde0 backing out my fix for bug 119447 due to major side effect described in bug 120377; a=asa
git-svn-id: svn://10.0.0.236/trunk@112428 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 10:17:12 +00:00
cmanske%netscape.com
23ac795aea Link Checker dialog, b=108296, r=akkana, sr=ben
git-svn-id: svn://10.0.0.236/trunk@112175 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 15:35:58 +00:00
glazman%netscape.com
3db2c2bdfb [CSS] Composer should be able to unbold/unitalicize invalid markup; b=119447, r=jfrancis, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112170 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 14:44:00 +00:00
brade%netscape.com
da3fec2b4b remove DEAD_CODE (bug 115115)
git-svn-id: svn://10.0.0.236/trunk@112094 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:35:08 +00:00
brade%netscape.com
8d809ca7b6 #ifdef out / remove DEAD_CODE per jfrancis (bug 115115)
git-svn-id: svn://10.0.0.236/trunk@112091 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:31:47 +00:00
brade%netscape.com
a2ea6d4987 literal string cleanup (bug 26384); #ifdef out / remove DEAD_CODE per jfrancis (bug 115115)
git-svn-id: svn://10.0.0.236/trunk@112090 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:31:43 +00:00
brade%netscape.com
4a909d9540 literal string cleanup (bug 26384); #ifdef out / remove DEAD_CODE per jfrancis (bug 115115); remove unused statics (bug 117927)
git-svn-id: svn://10.0.0.236/trunk@112089 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:30:11 +00:00
glazman%netscape.com
2f5b7a3b1a oops, I erroneously left this code in my big yesterday's check-in and this belongs to another bug (118110); b=77705
git-svn-id: svn://10.0.0.236/trunk@111832 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 14:51:45 +00:00
jfrancis%netscape.com
df2c1953c2 fix for 119053: backspace/delete can delete two br's instead of one. r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@111754 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 00:29:04 +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
e74961dbe2 remove 8 static CID/IID since they are unused (bug 117927; r=glazou, rs=shaver)
git-svn-id: svn://10.0.0.236/trunk@111306 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-03 15:50:21 +00:00
brade%netscape.com
acb4221efb remove kCContentIteratorCID since it's unused (bug 117927; r=glazou, rs=shaver)
git-svn-id: svn://10.0.0.236/trunk@111304 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-03 15:40:27 +00:00
timeless%mac.com
21c081c8bc Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting
r='s from many people. sr=jst


git-svn-id: svn://10.0.0.236/trunk@111049 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-23 23:23:41 +00:00
rjesup%wgate.com
15d98882e8 Bug 96108: Inline ElementAt(), add SafeElementAt(), voidarray usage fixes,
assertions for bad voidarray indexes.  r=jst, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@110938 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-21 01:10:07 +00:00
mjudge%netscape.com
bc78c917f2 wrong name for module name. needed webbrwsr not webBrowser_core
git-svn-id: svn://10.0.0.236/trunk@110681 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-18 02:06:04 +00:00
mjudge%netscape.com
20a1185b2b bs=7868 r=saari Adding in new api to bake on trunk before going to branch. this adds nsISelectionDisplay to nsISelectionController. SetDisplayFlags are how we now set if you want images selected or not
git-svn-id: svn://10.0.0.236/trunk@110680 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-18 01:29:49 +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
jaggernaut%netscape.com
576ec93128 Bug 113228: Replace ns{C}String::To{Upper,Lower}Case with global versions. r=bzbarsky, sr=jst
git-svn-id: svn://10.0.0.236/trunk@110611 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-17 07:14:49 +00:00