165 Commits

Author SHA1 Message Date
mrbkap%gmail.com
def9182fe6 bug 316186: Fix stupid numbering botch in the view source DTD. The
compiler does such a better job anyway. r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@184549 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-13 19:19:49 +00:00
mrbkap%gmail.com
f32d8c9dad bug 76412: Clean up some obvious things in the view source DTD, as well as ripping out obsolete and unused error reporting cruft. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@184433 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-10 22:47:09 +00:00
cvshook%sicking.cc
f95c92ff95 Bug 311785: Simplify the nsIHTMLContentSink interface
r=mrbkap sr=peterv


git-svn-id: svn://10.0.0.236/trunk@182699 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-21 15:39:06 +00:00
mrbkap%gmail.com
173c4f8f2e bug 272702: Remove skipped content. This simplifies the code handling <script>, <style> and related tags and makes the nsIHTMLContentSink interface just that much easier to implement. This also allows <object> tags to appear in the head with children. r=sicking sr=jst
git-svn-id: svn://10.0.0.236/trunk@179917 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 18:11:51 +00:00
peterv%propagandism.org
92b741449b Fix for bug 153998 (COtherDTD should go; composer should handle containment checking itself). r=mrbkap, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@179660 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-05 14:18:56 +00:00
peterv%propagandism.org
aac2b47f2a Fix for bug 286300 (Clean up HTML tags enum and related code). r=mrbkap, sr=bz, a=asa.
git-svn-id: svn://10.0.0.236/trunk@174703 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-16 13:10:58 +00:00
mrbkap%gmail.com
1357842759 bug 272360: missing break in nsViewSourceHTML.cpp r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@165951 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-30 19:08:43 +00:00
bryner%brianryner.com
0da729e8f7 Only allocate and copy a string in CAttributeToken::GetStringValue if the string spans multiple buffers. Otherwise, just wrap it with a nsDependentSubstring. Bug 268932, r=bzbarsky, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@165246 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-11 03:46:51 +00:00
mrbkap%gmail.com
3f697a53df bug 263083: view-source now reports tokenization-level errors in HTML and XML. r=rbs sr=dmose
git-svn-id: svn://10.0.0.236/trunk@164282 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-24 17:32:30 +00:00
mrbkap%gmail.com
c8f37d6854 bug 264882: view-source turns &xi; into &#xi; r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@164273 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-24 17:04:03 +00:00
mrbkap%gmail.com
14c394407b bug 264917: crash trying to view-source. sr=bzbarsky r=doronr
git-svn-id: svn://10.0.0.236/trunk@163977 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-18 20:57:24 +00:00
mrbkap%gmail.com
bdc788666f bug 70918: view-source adds > to tags that are missing them. r=bzbarsky sr=dmose
git-svn-id: svn://10.0.0.236/trunk@163915 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-17 03:03:46 +00:00
cbiesinger%web.de
a533c0c999 Bug 260661 removing unused variable in htmlparser (WriteTag)
r+sr=bz


git-svn-id: svn://10.0.0.236/trunk@162590 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-21 11:56:20 +00:00
kjh-5727%comcast.net
2d0c57e8db Bug 84430: Unclosed CDATA sections get dropped.
Patch by Blake Kaplan (mrbkap@rice.edu), r/sr=bzbarsky.


git-svn-id: svn://10.0.0.236/trunk@161761 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 17:21:51 +00:00
bzbarsky%mit.edu
021ef74273 Even when tokenizing in quirks, view-source should be doing layout in standards
mode (if nothine else, it's faster).  Bug 254536, r+sr=rbs


git-svn-id: svn://10.0.0.236/trunk@160498 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-08 19:21:55 +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
6a3b796123 Remove bogus data-sniffing code in CanParse() impls, clean up signature, don't
peek a buffer if we're not planning to autodetect the parsemode.  Bug 113201,
r=rbs, sr=jst


git-svn-id: svn://10.0.0.236/trunk@156393 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-13 23:39:06 +00:00
peterv%propagandism.org
0374f36974 Merging patch by jst (from mozilla/htmlparser).
Fixing bug 241328. Eliminating dead code, and making some classes use less memory on some 64-bit platforms. Also doing some general cleaning. r+sr=bzbarsky@mit.edu


git-svn-id: svn://10.0.0.236/trunk@155384 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-23 13:29:02 +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
bryner%brianryner.com
2097395338 Speed up mapping HTML tag enums to atoms by using an array of static atoms, indexed by enum value. This avoids a UTF16 to UTF8 conversion and atom table lookup for each tag. Add a CString version of nsINodeInfoManager::GetNodeInfo(), convert literal string callers to use that version, and remove some unused variants of GetNodeInfo(). Bug 223595, r=axel@pike.org, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148857 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-05 05:17:07 +00:00
bsmedberg%covad.net
c6aa8a9739 Bug 219389 - ViewSource highlighting broken (from bug 179834) r=pike sr=darin
git-svn-id: svn://10.0.0.236/trunk@146991 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-17 17:28:47 +00:00
dbaron%dbaron.org
20a7c5ebb1 Remove unused content quality stubs. b=111346 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@145076 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-22 18:38:08 +00:00
jaggernaut%netscape.com
36ab3d76a9 Bug 212272: Switch some Substring users over to String(Begins|Ends)With. r=dwitte, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144817 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 07:37:39 +00:00
bzbarsky%mit.edu
4077674504 Put line number ids on all the <pre> blocks that we create; this should make it
easier to hook up a performant "go to line" UI.  Bug 104383, r+sr=rbs, a=asa


git-svn-id: svn://10.0.0.236/trunk@142588 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-17 16:15:30 +00:00
alecf%netscape.com
3554f2edec fix for the first part of bug 200580, remove nsIDTD::ConvertEntityToUnicode, nobody is using it r=harishd, sr=jst
git-svn-id: svn://10.0.0.236/trunk@140862 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 20:54:56 +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 CID’s 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
dbaron%dbaron.org
9b5780673f Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136003 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 20:44:25 +00:00
caillon%returnzero.com
360f61e8a1 184257 - Updating pref callers. r=timeless sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@135983 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 08:40:41 +00:00
harishd%netscape.com
1eb8cce6ae Do not hold parser nodes, that do not contain residual style information, longer than necessary. By recycling the nodes earlier the number of malloc calls and the peak memory usage can be reduced. b=177994, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@134114 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-19 18:29:35 +00:00
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +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
smontagu%netscape.com
7cde0da736 Bug 110388: Enhancements and bugfixes to viewsource. r=bz, sr=rbs.
git-svn-id: svn://10.0.0.236/trunk@127708 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-20 17:29:16 +00:00
bzbarsky%mit.edu
ef444a9b4f Bug 124870. PRBool -> PRPackedBool in lots of places. Patch by
dann@godzilla.ics.uci.edu, r=heikki, sr=jst


git-svn-id: svn://10.0.0.236/trunk@126401 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 01:22:59 +00:00
alecf%netscape.com
7e8aa74093 fix for bug 157572 - remove nsIAtom references from strings, and thus expicitly #include nsIAtom.h for consumers who are expecting it.
r=dmose, sr=jag, a=asa


git-svn-id: svn://10.0.0.236/trunk@125791 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-25 18:31:10 +00:00
harishd%netscape.com
eedcf9208e Preserve comment declaration for textarea and viewsource. b=133044, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@122037 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 23:51:30 +00:00
bzbarsky%mit.edu
0fb5284569 Fix bug 135833 (view source not working right when it needs a repost).
r=rpotts, sr=darin.


git-svn-id: svn://10.0.0.236/trunk@118905 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-13 02:23:52 +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
darin%netscape.com
fecce6498c fixes MOZ_SVG bustage, b=128508
git-svn-id: svn://10.0.0.236/trunk@117014 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 00:10:17 +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
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
bzbarsky%mit.edu
94daa7754c Take out fix of bug 40809, since it no longer seems necessary and hurts
performance.  Bug 129192, r=harishd, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@116132 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-08 02:43:17 +00:00
bzbarsky%mit.edu
b2eb75e1c1 Make view-source a lot faster on bidi pages by breaking up the page into
multiple blocks.  Bug 86355, r=rbs, sr=jst, a=asa/shaver


git-svn-id: svn://10.0.0.236/trunk@115533 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-01 00:07:48 +00:00
harishd%netscape.com
1a9e99d353 Make sure to flush the tokenizer stack after tokenizing SCRIPT content. Note: This checkin also includes code clean up. b=104856, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@114540 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 23:45:20 +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
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