65 Commits

Author SHA1 Message Date
akkana%netscape.com
cef0965205 145196: a warning fix from burpmaster@truffula.net and another one from me
git-svn-id: svn://10.0.0.236/trunk@140268 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 19:51:06 +00:00
alecf%netscape.com
f24ccb3da0 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


git-svn-id: svn://10.0.0.236/trunk@140260 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 18:55:59 +00:00
jst%netscape.com
f18b61aff9 Fixing silly placement of '||'. No code change.
git-svn-id: svn://10.0.0.236/trunk@140033 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-22 03:24:57 +00:00
alecf%netscape.com
2a83f1b2d9 backout my static atom patch for now until I figure out the performance loss! :(
bug 195262


git-svn-id: svn://10.0.0.236/trunk@139962 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 20:13:08 +00:00
alecf%netscape.com
59c2bfe187 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.


git-svn-id: svn://10.0.0.236/trunk@139909 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 06:26:32 +00:00
bzbarsky%mit.edu
ea0fe56e05 IsJavascript should handle leading spaces. Bug 197345, patch by
bugzilla@jellycan.com (Brodie Thiesfield), r=brade, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@139624 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 23:18:57 +00:00
rbs%maths.uq.edu.au
2129932d47 Remiander of bug 169590. Hook a catch-all W3C entity converter and user-prefs for custom levels of entity-zation in the editor's '<HTML> Source' and 'Save As...'
git-svn-id: svn://10.0.0.236/trunk@135372 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-17 00:41:25 +00:00
rbs%maths.uq.edu.au
76ce811794 Refine the conversion of entities during serialization, b=169590, r=nhotta, sr=jst
git-svn-id: svn://10.0.0.236/trunk@135264 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-13 22:12:10 +00:00
peterv%netscape.com
3a3c75b9f7 Fix for bug 183999 (Modernize content). r=caillon, sr=bz.
git-svn-id: svn://10.0.0.236/trunk@135128 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 14:24:49 +00:00
bratell%lysator.liu.se
d8c86a7ceb Bug 165893 - use cached nsParserService pointer instead of looking up the service everywhere. r=jst, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@134326 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-22 12:20:05 +00:00
rbs%maths.uq.edu.au
7b0bce519f .innerHTML wasn't recovering &nbsp; and this was causing consumers such as View Selection Source to lose it, b=165686, r=jst, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@134151 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-20 01:47:06 +00:00
akkana%netscape.com
3fa55ef291 145196: prevent creation of extra blank lines. Fix from burpmaster@truffula.net, r=akkana, sr=jag, a=rjesup
git-svn-id: svn://10.0.0.236/trunk@131984 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-14 22:07:48 +00:00
heikki%netscape.com
fbe40219c9 Bug 63558, we now store XML declaration in the document and can serialize it. There is fix for 158617 as well, newlines behave properly around doctype. r=bzbarsky, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@127185 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-13 18:41:16 +00:00
akkana%netscape.com
f9a0b8ae70 126259: don't force a linebreak after img tags. Patch from burpmaster@truffula.net, r=akkana, sr=kin
git-svn-id: svn://10.0.0.236/trunk@124051 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 00:04:53 +00:00
peterv%netscape.com
aab00646c0 Fix for bug 88761 (html code for selected and noshade (and other minimizable attributes) not w3c conformant). r=heikki, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@122219 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-28 12:34:48 +00:00
jst%netscape.com
7b7411c3ef Fixing bug 134278. Die kNameSpaceID_HTML, die! r=sicking@bigfoot.com, sr=heikki@netscape.com
git-svn-id: svn://10.0.0.236/trunk@121894 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-20 22:47:02 +00:00
akkana%netscape.com
a199243cff 46227: eliminate extra spaces inserted switching between normal and source modes of composer. Patch is from burpmaster@truffula.net, r=akk, sr=jst
git-svn-id: svn://10.0.0.236/trunk@121580 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-16 00:32:40 +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
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
rbs%maths.uq.edu.au
453cb1ce37 SaveAs leaves private [-|_moz] attributes in the output, b=134298, r=akkana, sr=jst
git-svn-id: svn://10.0.0.236/trunk@118915 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-13 07:47:21 +00:00
akkana%netscape.com
b8493d4a6b 129122: add a new serializer mode (used primarily by mail) in which
<br> tags within <pre> blocks are translated to newlines.
  r=nhotta,ducarroz,tmutreja sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@118645 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-10 21:25:15 +00:00
heikki%netscape.com
d18deb1faa Bug 126669, we need to pass in aHasChildren parameter to the start tag serializing function because the node that is passed in may be a shallow copy, thereby making it impossible to determine if it originally had children, in the method itself. This fixes case where saving XHTML produces non-wellformed output. r=akkana,tmutreja, sr=jst, a=asa,ADT.
git-svn-id: svn://10.0.0.236/trunk@117951 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-02 21:12:51 +00:00
dbaron%fas.harvard.edu
c43a97f1d5 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@117353 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 23:54:46 +00:00
badami%netscape.com
a873d62951 Fix waring during compile
bug 62188 sr=jst a=asa patch=ayn2@cornell.edu


git-svn-id: svn://10.0.0.236/trunk@116525 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 05:51:12 +00:00
badami%netscape.com
b2aab151e4 [serializer]Composer breaks lines at inappropriate positions
bug 85184 r=akkana sr=jst a=asa patch=tmutreja@netscape.com


git-svn-id: svn://10.0.0.236/trunk@116469 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-13 06:14:57 +00:00
badami%netscape.com
9bb0081936 Support start number for lists in plain text output
bug 62188 r=bratell sr=jst a=asa


git-svn-id: svn://10.0.0.236/trunk@116380 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 08:21:51 +00:00
badami%netscape.com
b21da840a7 Save As generates &apos; in attributes with single quotes
bug=120674 r=adamlock sr=jst a=asa patch=tmureja@netscape.com


git-svn-id: svn://10.0.0.236/trunk@115710 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-04 10:06:59 +00:00
locka%iol.ie
bc1c25f6fb Treat NOFRAMES content as CDATA during serialisation to prevent entity subsitution. b=122077 r=harishd@netscape.com sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@114972 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 22:50:16 +00:00
badami%netscape.com
a6de6cd010 [serializer]Using blockquote screws up composer's pretty-print.
bug 93276 patch=tmutreja@netscape.com r=akkana sr=jst


git-svn-id: svn://10.0.0.236/trunk@114789 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 10:33:15 +00:00
badami%netscape.com
57672d7802 HTML serializer doesn't use the base uri for generating absolute url's
bug 80081 patch=tmutreja@netscape.com r=akkana sr=jst


git-svn-id: svn://10.0.0.236/trunk@114788 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 10:30:27 +00:00
badami%netscape.com
d02969f676 Composer won't break long tags
bug 103207 patch=tmutreja@netscape.com r=akkana sr=jst


git-svn-id: svn://10.0.0.236/trunk@114786 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 10:22:17 +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
bzbarsky%mit.edu
ad1fb22926 Change users of Length() to IsEmpty() where the code really cares about
the latter in content/.  Bug 100649, r=jag, sr=jst


git-svn-id: svn://10.0.0.236/trunk@112623 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:03:19 +00:00
jaggernaut%netscape.com
436d43f211 Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf
git-svn-id: svn://10.0.0.236/trunk@110579 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-16 11:58:03 +00:00
peterv%netscape.com
d1911c6d0a Fix for bug 108024 (missing carriage returns when copying PRE tag content to clipboard). r=Pike, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@109213 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 14:19:30 +00:00
gerv%gerv.net
ed9b258739 License changes, take 2. Bug 98089. mozilla/content/.
git-svn-id: svn://10.0.0.236/trunk@103682 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 01:32:19 +00:00
peterv%netscape.com
cddb6a17e5 Fix for bug 98031 (Composer adds space(s) when saving doc with link between parentheses). r=brade, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@102754 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-11 09:32:51 +00:00
bryner%netscape.com
7da361b479 Bug 66835 - fix method hiding warnings by renaming some methods on nsIContent. r=jag, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@101283 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 08:14:14 +00:00
hyatt%netscape.com
c49a03b7be Fix for 71106. r=jag, sr=jst
git-svn-id: svn://10.0.0.236/trunk@100428 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-06 21:49:35 +00:00
brade%netscape.com
370f7f2d43 remaining portions of fix for bug #68167 (not mangling javascript: urls in href/src attributes) and Naoki's fix for bug #92271; r=nhotta; sr=kin
git-svn-id: svn://10.0.0.236/trunk@100098 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-01 13:39:46 +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
dbaron%fas.harvard.edu
88810ef1eb Fix bad getters on nsIDocument and nsIScriptContext to use out params rather than return |AddRef|ed pointers. b=81289 r=jaggernaut sr=jst a=asa
git-svn-id: svn://10.0.0.236/trunk@97540 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-20 03:27:48 +00:00
brade%netscape.com
cc246fdeea don't escape characters in JS attributes; bug #68167
git-svn-id: svn://10.0.0.236/trunk@97489 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-19 23:51:29 +00:00
anthonyd%netscape.com
b9ea338e2f fix for 73605: nsHTMLContentSerializer outputs <textarea> contents as attributes
r=kin@netscape.com
sr=jst@netscape.com
a=dbaron


git-svn-id: svn://10.0.0.236/trunk@97412 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-19 07:37:15 +00:00
scc%mozilla.org
90f810b66a bug #85271: sr=waterson, r={beard, jag, dbaron}, a=asa. Eliminate features of |nsXPIDLC?String| that keep it out of the string hierarchy (i.e., using assigment to rebind ownership, static |Copy| members, and |getter_Shares|), fixing some leaks in the process.
git-svn-id: svn://10.0.0.236/trunk@97289 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-17 05:23:38 +00:00
sspitzer%netscape.com
e4ccc82b00 fix for bug #84261. there are times where we need to insert linefeeds into message bodys
so that saving as draft, sending, and posting messages will not fail.
this will be come less of a problem when #67334 is fixed.
r=ducarroz, sr=sfraser, a=asa


git-svn-id: svn://10.0.0.236/trunk@97235 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-15 19:52:50 +00:00
ftang%netscape.com
6f7cf56ee3 fix bug 82622 . check in for nhotta@netscape.com. Add # to the escape list. r=cmanske sr=jst a=asa
git-svn-id: svn://10.0.0.236/trunk@95909 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-25 13:27:42 +00:00
nhotta%netscape.com
3e2ff8518e Changed to avoid escaping '%' in URI, bug 81238, r=cmanske, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@95744 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 00:13:23 +00:00
nhotta%netscape.com
eb5eb7ae16 Changed html serializer to escape URI, bug 74137, r=ftang, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@94539 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-11 00:27:03 +00:00
brade%netscape.com
4b75d4886b bug #79148; new line after image, map, area; r=akkana, sr=kin
git-svn-id: svn://10.0.0.236/trunk@94126 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-07 14:46:00 +00:00