Commit Graph
162 Commits
Author SHA1 Message Date
[email protected] 1f1c5bf595 backout my static atom patch for now until I figure out the performance loss! :(
bug 195262
2003-03-21 20:13:08 +00:00
[email protected] 34b709508c 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.
2003-03-21 06:26:32 +00:00
[email protected] 998d04bd03 IsJavascript should handle leading spaces. Bug 197345, patch by
[email protected] (Brodie Thiesfield), r=brade, sr=bzbarsky
2003-03-17 23:18:57 +00:00
[email protected] a4d8d833ff 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...' 2002-12-17 00:41:25 +00:00
[email protected] b0a59ef07c Refine the conversion of entities during serialization, b=169590, r=nhotta, sr=jst 2002-12-13 22:12:10 +00:00
[email protected] a286b2a9ae Fix for bug 183999 (Modernize content). r=caillon, sr=bz. 2002-12-11 14:24:49 +00:00
[email protected] b71cc47d5a Bug 165893 - use cached nsParserService pointer instead of looking up the service everywhere. r=jst, sr=bzbarsky 2002-11-22 12:20:05 +00:00
[email protected] c840daad48 .innerHTML wasn't recovering &nbsp; and this was causing consumers such as View Selection Source to lose it, b=165686, r=jst, sr=bzbarsky 2002-11-20 01:47:06 +00:00
[email protected] 51c5c605db 145196: prevent creation of extra blank lines. Fix from [email protected], r=akkana, sr=jag, a=rjesup 2002-10-14 22:07:48 +00:00
[email protected] 20254caaf7 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. 2002-08-13 18:41:16 +00:00
[email protected] e7e576ab7f 126259: don't force a linebreak after img tags. Patch from [email protected], r=akkana, sr=kin 2002-06-26 00:04:53 +00:00
[email protected] e2308f8288 Fix for bug 88761 (html code for selected and noshade (and other minimizable attributes) not w3c conformant). r=heikki, sr=jst. 2002-05-28 12:34:48 +00:00
[email protected] 39ce2a2ba9 Fixing bug 134278. Die kNameSpaceID_HTML, die! [email protected], [email protected] 2002-05-20 22:47:02 +00:00
[email protected] f4dd372143 46227: eliminate extra spaces inserted switching between normal and source modes of composer. Patch is from [email protected], r=akk, sr=jst 2002-05-16 00:32:40 +00:00
[email protected] 00d8c29c64 Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756 2002-05-15 18:55:21 +00:00
[email protected] 65ff4eb341 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
2002-04-29 20:29:54 +00:00
[email protected] fef3fec97a SaveAs leaves private [-|_moz] attributes in the output, b=134298, r=akkana, sr=jst 2002-04-13 07:47:21 +00:00
[email protected] b01d137f5a 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
2002-04-10 21:25:15 +00:00
[email protected] 7a7d73ce4d 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. 2002-04-02 21:12:51 +00:00
[email protected] dd791070de Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa 2002-03-23 23:54:46 +00:00
[email protected] 78060859e7 Fix waring during compile
bug 62188 sr=jst a=asa [email protected]
2002-03-14 05:51:12 +00:00
[email protected] e69fd945f2 [serializer]Composer breaks lines at inappropriate positions
bug 85184 r=akkana sr=jst a=asa [email protected]
2002-03-13 06:14:57 +00:00
[email protected] 83edd2b46a Support start number for lists in plain text output
bug 62188 r=bratell sr=jst a=asa
2002-03-12 08:21:51 +00:00
[email protected] e565ac43ec Save As generates &apos; in attributes with single quotes
bug=120674 r=adamlock sr=jst a=asa [email protected]
2002-03-04 10:06:59 +00:00
[email protected] c6e735eefe Treat NOFRAMES content as CDATA during serialisation to prevent entity subsitution. b=122077 [email protected] [email protected] 2002-02-19 22:50:16 +00:00
[email protected] 691d728b12 [serializer]Using blockquote screws up composer's pretty-print.
bug 93276 [email protected] r=akkana sr=jst
2002-02-18 10:33:15 +00:00
[email protected] 68bc6942d3 HTML serializer doesn't use the base uri for generating absolute url's
bug 80081 [email protected] r=akkana sr=jst
2002-02-18 10:30:27 +00:00
[email protected] d598af8ab8 Composer won't break long tags
bug 103207 [email protected] r=akkana sr=jst
2002-02-18 10:22:17 +00:00
[email protected] 9a4edc1569 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
2002-01-30 06:04:29 +00:00
[email protected] 13c031b53f Change users of Length() to IsEmpty() where the code really cares about
the latter in content/.  Bug 100649, r=jag, sr=jst
2002-01-24 02:03:19 +00:00
[email protected] 0467433db5 Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf 2001-12-16 11:58:03 +00:00
[email protected] b0f3e2e028 Fix for bug 108024 (missing carriage returns when copying PRE tag content to clipboard). r=Pike, sr=jst. 2001-11-29 14:19:30 +00:00
[email protected] 5ba3ff1a0d License changes, take 2. Bug 98089. mozilla/content/. 2001-09-25 01:32:19 +00:00
[email protected] 6411dbb9d0 Fix for bug 98031 (Composer adds space(s) when saving doc with link between parentheses). r=brade, sr=jst. 2001-09-11 09:32:51 +00:00
[email protected] 0b20fc36bb Bug 66835 - fix method hiding warnings by renaming some methods on nsIContent. r=jag, sr=jst. 2001-08-17 08:14:14 +00:00
[email protected] e1a1adb16a Fix for 71106. r=jag, sr=jst 2001-08-06 21:49:35 +00:00
[email protected] 9d3a1e2500 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 2001-08-01 13:39:46 +00:00
[email protected] baba14c5c8 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 :-)
2001-06-30 11:02:25 +00:00
[email protected] 20d7bc6052 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 2001-06-20 03:27:48 +00:00
[email protected] 157ee81f22 don't escape characters in JS attributes; bug #68167 2001-06-19 23:51:29 +00:00
[email protected] da0e2e1cb1 fix for 73605: nsHTMLContentSerializer outputs <textarea> contents as attributes
[email protected]
[email protected]
a=dbaron
2001-06-19 07:37:15 +00:00
[email protected] ee1d678864 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. 2001-06-17 05:23:38 +00:00
[email protected] cc6605cd97 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
2001-06-15 19:52:50 +00:00
[email protected] 5ec1472a3e fix bug 82622 . check in for [email protected]. Add # to the escape list. r=cmanske sr=jst a=asa 2001-05-25 13:27:42 +00:00
[email protected] 470f9b9a47 Changed to avoid escaping '%' in URI, bug 81238, r=cmanske, sr=jst. 2001-05-23 00:13:23 +00:00
[email protected] a22739375d Changed html serializer to escape URI, bug 74137, r=ftang, sr=jst. 2001-05-11 00:27:03 +00:00
[email protected] e8a7ad6c6c bug #79148; new line after image, map, area; r=akkana, sr=kin 2001-05-07 14:46:00 +00:00
[email protected] 82d8a439a8 Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|ns[C]LiteralString|
|ns[C]PromiseFlatString|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc
2001-03-08 08:05:05 +00:00
[email protected] e9399ed474 Preparation of removing nsCString::GetBuffer. Landing everything but the actual commenting out of nsCString::GetBuffer. bug=64016, r=timeless, sr=scc 2001-03-02 09:26:57 +00:00
[email protected] 21e6da8f3e Changed to control entity (CER) generation by a document charset, bug 65324, r=jst, sr=vidur. 2001-02-13 01:00:14 +00:00