bryner%brianryner.com
7a461c49a4
Reduce string copying and allocation in the parser by only copying the scanner buffer when we need to mutate the string. Allow a nsDependentString / nsDependentSubstring to be created without being bound to anything. Move StripChar() onto nsSubstring from nsString. Bug 269853, r=jst, sr=darin.
...
git-svn-id: svn://10.0.0.236/trunk@165773 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-25 07:03:20 +00:00
mrbkap%gmail.com
2d1d00b7e3
bug 70282: view-source loses the last tag in a document if the tag is unclosed. r=rbs sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@165245 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-11 03:41:52 +00:00
jst%mozilla.jstenback.com
902a5809c5
Fixing bug 267854. Make sure parser data listeners get all the data that comes in from necko, no matter what the current parser context is. r=bzbarsky@mit.edu, sr=brendan@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@164986 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-05 06:50:27 +00:00
jst%mozilla.jstenback.com
bbbde81598
Fixing bug 265334. Adding API for embedders etc to listen to data fed to the parser from the network. r=darin@meer.net, sr=brendan@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@164795 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-02 19:52:32 +00:00
smontagu%smontagu.org
949e7f8046
Bug 244177: nsScanner::Append() can overwrite the storage in the buffer it allocates. r=dveditz, sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@164518 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-27 20:19:11 +00:00
mrbkap%gmail.com
4056efcb88
bug 264956: crash on embedded NUL character in start tag. r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@164000 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-19 01:34:53 +00:00
jst%mozilla.jstenback.com
b9bbc0af83
Fixing bug 260318. UMR in nsScanner::AppendToBuffer() when called from nsScanner constructor. r+sr=bzbarsky@mit.edu
...
git-svn-id: svn://10.0.0.236/trunk@162633 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-22 00:03:46 +00:00
jst%mozilla.jstenback.com
0bc93addf5
Fixing compiler warning.
...
git-svn-id: svn://10.0.0.236/trunk@161304 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-26 04:10:57 +00:00
jst%mozilla.jstenback.com
f626020214
Fixing regression bug 256938. Parser hang. Patch by robin.lu@sun.com, r+sr=jst@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@161302 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-26 04:03:48 +00:00
jst%mozilla.jstenback.com
b9f5ad566e
Fixing bug 178088. Making our doctype detection code more robust by ignoring whitespace at the begining of the file when looking for the doctype. r=darin@meer.net. sr=dbaron@dbaron.org
...
git-svn-id: svn://10.0.0.236/trunk@161181 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-24 18:37:33 +00:00
roc+%cs.cmu.edu
0b0fa89131
Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
...
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
bzbarsky%mit.edu
d502903332
Make the scanner bail out of functions that assume it's initialized if
...
mSlidingBuffer is null. Bug 108067, patch by Andreas M. "Clarence" Schneider
<c@c07.de> and Blake Kaplan <mrbkap@rice.edu>, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@157598 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-08 18:54:57 +00:00
timeless%mozdev.org
44fe913204
Bug 102613 UMR: nsReadingIterator<WORD>::*(void)const UMR: Uninitialized memory read in nsScanner::ReadUntil(nsAString&,nsReadEndCondition const&,int)
...
r=heikki sr=darin
git-svn-id: svn://10.0.0.236/trunk@156292 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-12 08:07:06 +00:00
peterv%propagandism.org
affa61ff04
Merging patch by bz (from mozilla/htmlparser).
...
ReadWhitespace should convert lone \r to \r\n so callers see it as a newline.
Bug 103833, r=choess, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@155823 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-02 11:17:44 +00:00
peterv%propagandism.org
beda106d3b
Merging patch by bz (from mozilla/htmlparser).
...
Change our concept of a "tagname" to include all sorts of random chars like IE does (that is, allow any char that's not in a short list of terminal chars).
Bug 236002, r=choess, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@155822 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-02 11:16:26 +00:00
peterv%propagandism.org
7697906006
Merging patch by gerv (from mozilla/htmlparser).
...
Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155383 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-23 13:24:28 +00:00
darin%meer.net
55688e6410
landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt
...
git-svn-id: svn://10.0.0.236/trunk@152905 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 02:44:03 +00:00
bzbarsky%mit.edu
62c53f23d5
Preserve case of end tags in preserve targets (<textarea>, <xmp>, etc.). Bug
...
64799, r=choess, sr=jst
git-svn-id: svn://10.0.0.236/trunk@151887 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 04:50:56 +00:00
timeless%mozdev.org
da927140fb
Bug 217089 Compiler warnings
...
patch by mbockelkamp@web.de r=jst sr=jst
git-svn-id: svn://10.0.0.236/trunk@146729 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-11 03:18:49 +00:00
alecf%flett.org
71e5d724e5
fix for bug 209220 - now that i18n APIs take ASCII charset names, update consumers to avoid excess conversions.. which usually means storing charset names as ASCII and updating a few other APIs
...
r=jkeiser, sr=jst and some great comments from jshin@mailaps.org
git-svn-id: svn://10.0.0.236/trunk@143800 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-17 16:40:34 +00:00
alecf%flett.org
1c89787dc0
fix for bug 206379:
...
- combine nsICharsetConverterManager2 and nsICharsetConverterManager
- get rid of nsIAtom in most of the methods
- provide versions of getUnicodeDecoder/Encoder which don't do alias resolution
- change all charset types to ASCII strings
- clean up some other i18n APIs which could be simplified
- fix all consumers of all changed i18n interfaces
r=jshin, smontagu
rs=sfraser
git-svn-id: svn://10.0.0.236/trunk@143589 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-11 18:16:03 +00:00
alecf%netscape.com
a06219c70d
fix for bug 200330 - const the heck out of htmlparser!
...
sr=sfraser, r=jag
git-svn-id: svn://10.0.0.236/trunk@140605 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 22:59:51 +00:00
dougt%netscape.com
fed2927b2c
Create a new xpcom obsolete library (and component library).
...
Moved nsFileSpec and related classes into this obsolete library.
Moved nsRegistry and related libreg functionality into the obsolete library.
Updated many callers using the obsolete nsFile spec to use nsIFile and Necko to do file IO.
Combined the following DLLs (source -> dest)
uriloader -> docshell
shistory -> docshell
jsurl -> jsdom
gkview -> gklayout
Moved nsAdapterEnumerator out of xpcom/ds and into mailnews, since they're the only consumer
Modifed the xpt_link tool so that you can specify a only include cid list that can mask CIDs that you are not interested in.
Added build options:
Prevent the building of xpinstall (--disable-xpinstall)
Prevent the building js component loader (--disable-jsloader)
A build option to only build a single profile (--enable-single-profile)
A build flag to only built the required xpfe components (--disable-xpfe-components).
Removal or hiding of unused functions and classes including nsEscape*, nsDequeIterator, nsRecyclingAllocatorImpl, nsDiscriminatedUnion, nsOpaqueKey, nsCRT::strlen, NS_NewCommandLineService
Bug 194240, r/sr = darin, alec.
git-svn-id: svn://10.0.0.236/trunk@139480 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-15 01:04:32 +00:00
sfraser%netscape.com
6f87b85c6b
Fix bug 195160: remove static NS_DEFINE_IID from header files. r=cls, sr=alecf.
...
git-svn-id: svn://10.0.0.236/trunk@138693 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-28 05:47:36 +00:00
nisheeth%netscape.com
fb4f428f15
Fix for bug 182067. r=harishd, sr=jst, a=asa. Fixes the crash/hang on Linux when a data: url with a null data segment is typed into the url bar.
...
git-svn-id: svn://10.0.0.236/trunk@137172 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-31 00:58:41 +00:00
bzbarsky%mit.edu
4f51e5b41e
use prefix ++, not postfix ++. Bug 82615, r=heikki, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@128743 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 22:23:22 +00:00
harishd%netscape.com
6781fe20d2
Making sure that mCountRemaining also gets updated when data gets inserted into the scanner buffer. b=117441, r=heikki, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@121548 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 20:20:55 +00:00
harishd%netscape.com
a6dd951b3e
Fix line numbers in html. b=111576, r=heikki, sr=jst, a=asa,chofmann
...
git-svn-id: svn://10.0.0.236/trunk@118658 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-10 22:16:46 +00:00
harishd%netscape.com
6b93bed21c
Backing out timeless's checkin. This wasn't supposed to happen until we branched
...
git-svn-id: svn://10.0.0.236/trunk@118508 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-09 00:43:00 +00:00
timeless%mac.com
195ad89ec0
Bug 111576 Incorrect line numbers in HTML files
...
patch by harishd, r=heikki, sr=jst, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@118494 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-08 23:52:12 +00:00
dbaron%fas.harvard.edu
772b5b8c58
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@117354 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-24 00:16:18 +00:00
heikki%netscape.com
82bf6a58a6
Bug 110544, improving comment parsing by avioding string copies and other trickery. r=harishd, sr=jst, a=asa.
...
git-svn-id: svn://10.0.0.236/trunk@116687 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 03:03:45 +00:00
dp%netscape.com
507da7c4a5
backing out previous change to figure out whats going on
...
git-svn-id: svn://10.0.0.236/trunk@116063 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 16:45:25 +00:00
dp%netscape.com
ebea38ccd0
(again) bug 116023 Parser recycling buffers. Protects all cases of
...
usage of mCurrentPosition without checking mSlidingBuffer. r=harishd,
sr=sfraser, a=asa
git-svn-id: svn://10.0.0.236/trunk@116061 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 15:43:12 +00:00
mcafee%netscape.com
07afd54c5f
This checkin is making the DomToTextConversionTest hang on sleestack, comet. Backing this out. r=jrgm
...
git-svn-id: svn://10.0.0.236/trunk@115670 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-03 07:44:57 +00:00
dp%netscape.com
d16a2c3b7c
bug 116023 Parser recycling buffers r=harishd, sr=sfraser, a=asa
...
git-svn-id: svn://10.0.0.236/trunk@115658 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-02 23:09:52 +00:00
dbaron%fas.harvard.edu
ac6b721449
Remove more no-longer-needed nsComponentManager::RegisterComponent calls. Remove remnants of NS_IMPL_IDS macro, associated with long-gone NS_DECLARE_ID. b=125782 r=dougt rs=jag
...
git-svn-id: svn://10.0.0.236/trunk@114693 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-16 16:18:13 +00:00
alecf%netscape.com
83ac6a3dcc
progress towards fixing 123041 - stop making copies of entities names and values as we retrieve them out of various entity tables
...
also, a few uses of NS_LITERAL_STRING, removal of long-since-unused nsHTMLContentSinkStream
r/sr=sfraser, sr=jag, r=harishd
git-svn-id: svn://10.0.0.236/trunk@114304 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-12 21:17:53 +00:00
alecf%netscape.com
a3f49498a1
fix for bug 121508 - clean up nsStringStream and nsIParser APIs.. r=dougt, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@113007 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 22:02:00 +00:00
shanjian%netscape.com
3356940ad2
#112793 fine tune frame charset mechanism
...
Besides charset, document now records charset source as well.
nsCharsetSource was replaced by PRInt32.
Some code relocation in nsHTMLDocument.cpp
r=yokoyama sr=waterson
git-svn-id: svn://10.0.0.236/trunk@111062 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-26 03:17:59 +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
jaggernaut%netscape.com
51e0dc7a6c
Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc
...
git-svn-id: svn://10.0.0.236/trunk@104212 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 08:28:41 +00:00
gerv%gerv.net
cf694b8116
License changes, take 2. Bug 98089. mozilla/include/, /mozilla/htmlparser/, /mozilla/intl/ (part 1).
...
git-svn-id: svn://10.0.0.236/trunk@103776 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-26 00:40:45 +00:00
harishd%netscape.com
420bd98c1a
95614 - Initialized an iterator and replaced NS_ENSURE_SUCCESS ( which asserts), since the result code from nsScanner::Peek() does not indicate an exceptional condition, with equivalent code. r=heikki, sr=waterson.
...
git-svn-id: svn://10.0.0.236/trunk@101230 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-16 21:19:33 +00:00
bratell%lysator.liu.se
d4bca51618
Bug91437 - Speeding up the tokenizer slightly by using a smarter scan algorithm and avoiding trying to skip whitespace when there are none. r=harishd sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@101192 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-16 05:24:17 +00:00
jaggernaut%netscape.com
2b3b3b2586
Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa
...
git-svn-id: svn://10.0.0.236/trunk@99906 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-25 07:54:28 +00:00
harishd%netscape.com
58688829ca
87110 - Avoid memory bloat by moving Malloc out of do-while. Also do not propagate error messages
...
from unicode coverter. r=ftang, sr=vidur.
89732 - Stop searching for words if mOffset is negative. r=jst sr=vidur
git-svn-id: svn://10.0.0.236/trunk@99195 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-13 18:21:23 +00:00
harishd%netscape.com
eb02af6620
40072 - (patch provided by pollmann) Do not process METAs after FRAMESET. r=harishd sr=vidur
...
58809 - Handle numeric & hexadecimal entities correctly r=heikki sr=vidur
72249 - Per SGML endtag can contain whitespace between generic identifier and tagc. r=heikki sr=vidur
82971 - if the last character was a CR make sure to not lose that information. r=heikki sr=vidur
git-svn-id: svn://10.0.0.236/trunk@98721 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-05 22:20:34 +00:00
dbaron%fas.harvard.edu
c203792c3d
To improve performance, change string iterator postfix ++ to prefix ++ when used as a statement. b=78032 r=peterv, scc, harishd, dmose sr=hyatt a=asa
...
git-svn-id: svn://10.0.0.236/trunk@97460 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-19 22:38:45 +00:00
jst%netscape.com
535c86019d
scc checking in from jst's account. bug #75220 : sr=jst, rs=brendan. renaming |nsPromiseC?Concatenation| to |nsDependentC?Concatenation|; |nsPromiseC?Substring| to |nsDependentC?Substring|; |nsLiteralC?String| and |nsLocalC?String| to |nsDependentC?String|, as these new names better reflect clients obligations to instances.
...
git-svn-id: svn://10.0.0.236/trunk@95533 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-19 11:27:30 +00:00