142 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
c59df8124b Make SetInnerHTML use the right parser mode (ie strict for strict
documents instead of always quirks).  Bug 106565, r=harishd, sr=jst


git-svn-id: svn://10.0.0.236/trunk@108271 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 04:48:30 +00:00
harishd%netscape.com
eeeb1c2290 97769 - Replace nsITagStack with a simple nsVoidArray. Also, nuked nsITagStack since it is not of a big help.r=heikki, sr=jst.
99282  - Make sure only HEAD attributes get added to the attribute list in ::OpenHead(). r=heikki, sr=jst.
100466 - Stop DT from containing DL.r=heikki,sr=jst.
102370 - DT should not close DD and vice versa.r=heikki,sr=jst.
100397 - In order for residual style to kick in...disable the check for wellformedness in quirks mode.r=alexandru,sr=attinasi.
102376 - Release nsIRequest in nsParser::DidBuildModel() since nsIRequest is not required past DidBuildModel.r=heikki,sr=darin.


git-svn-id: svn://10.0.0.236/trunk@105792 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 20:48:18 +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
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
bzbarsky%mit.edu
f21726b0d5 Add a document.contentType attribute to allow getting the MIME type of
the current document from JS.  The rest is moving around stuff to deal
with nsIDocument already declaring GetContentType.  bug 73847, r=peterv,
sr=jst


git-svn-id: svn://10.0.0.236/trunk@103646 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-24 22:43:23 +00:00
rjesup%wgate.com
3d0a34aaca Bug 92575: voidarray->autovoidarray changes in content/*, minus mChildren
changes in nsXULContentSink.cpp and nsGenericElement.cpp as per jst.
  r=hyatt r=pierre sr=jst


git-svn-id: svn://10.0.0.236/trunk@102430 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 19:16:03 +00:00
cls%seawood.org
3b8b92a2e8 Use NS_PTR_TO_INT32 macros to do 64-bit safe pointer conversions.
Bug #20860 r=Roland.Mainz@informatik.med.uni-giessen.de sr=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@101008 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-14 07:59:59 +00:00
jst%netscape.com
cdb4b66c7f Fixing bug 91614, don't use the document as a factory for creating document fragments since there might not always be a document here, use internal methods in stead. r=pollmann@netscape.com, sr=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@99701 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-21 02:53:43 +00:00
jst%netscape.com
21ce7f8ced Removing use of obsolete macros for defining lists of interfaces used by the DOM classinfo code. r=pollmann@netscape.com, rs=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@99476 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-18 07:48:12 +00:00
dbaron%fas.harvard.edu
9359000a40 Header include dependency cleanup. b=64023 r=jag rs=brendan
git-svn-id: svn://10.0.0.236/trunk@99299 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-16 02:40:48 +00:00
mstoltz%netscape.com
1e8c252ea2 Bug 89163: if chrome JS calls nsRange::CreateContextualFragment,
push the current document's JS context on the stack so that event handlers in the fragment
are not compiled with the system principal. r=jelwell, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@98923 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-09 23:02:53 +00:00
anthonyd%netscape.com
1ff10af758 bug fix for 88263 = Range selectNodeContents(null) crashes browser
r=anthonyd
sr=sfraser
a=beppe


git-svn-id: svn://10.0.0.236/trunk@98746 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-06 00:40:56 +00:00
anthonyd%netscape.com
38bf412419 fix for 84208 - calling extractContents from javascript crashes browser
r=sfraser
sr=kin
a=asa


git-svn-id: svn://10.0.0.236/trunk@97961 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-26 20:45:18 +00:00
anthonyd%netscape.com
119b3a1df3 backing out changes
a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@97958 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-26 19:35:21 +00:00
anthonyd%netscape.com
1cf23d2962 fix for 84208 - calling extractContents crashes browser
r=sfraser@netscape.com
sr=kin@netscape.com
a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@97952 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-26 17:58:56 +00:00
anthonyd%netscape.com
cb840f2f33 fix for 83743 nsRange::SurroundCOntents() not all paths return value
r=mjudge@netscape.com
sr=kin@netscape.com
a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@97227 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-15 18:15:09 +00:00
anthonyd%netscape.com
93648b9e4d fix for 83363 - crash if insertNode tries to insert null node
r=mjudge@netscape.com
sr=kin@netscape.com
a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@97226 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-15 18:03:19 +00:00
anthonyd%netscape.com
a9a87c6809 bug fix for 84417 nsRange::DeleteContents() deletes one too many nodes
r=mjudge@netscape.com
sr=kin@netscape.com
a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@97012 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-13 00:24:33 +00:00
mkaply%us.ibm.com
56a290f148 OS/2 TB breakage - true instead of PR_TRUE
git-svn-id: svn://10.0.0.236/trunk@95430 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 22:14:12 +00:00
anthonyd%netscape.com
3f20996815 bringing the range implementation up to dom spec.
bugs: 58969, 58970, 58972, 58974
r=kin
sr=jst


git-svn-id: svn://10.0.0.236/trunk@95413 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 21:05:51 +00:00
jst%netscape.com
9d299d36ce Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@94238 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 16:46:42 +00:00
jfrancis%netscape.com
736e16164c adding NSIRangeUtil implementation and interface to content so that folks outside of layout will have some way to compare dom points to ranges or other points. Groundwork for 65557, among others. r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@93388 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-28 12:02:14 +00:00
harishd%netscape.com
ebecf5a4cb 68790 - Remove nsHTMLContentSinkStream dependency. Not in use anymore
r=heikki
sr=jst


git-svn-id: svn://10.0.0.236/trunk@92594 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-17 23:23:33 +00:00
anthonyd%netscape.com
785fbe7f7a bug fix for 59785 Impossible to select document root element
r=mjudge
sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@90234 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 09:29:51 +00:00
Peter.VanderBeken%pandora.be
328e0907f9 Renaming NS_PARSER_IID to NS_PARSER_CID, because it *is* a CID. r=jag, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@89252 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-10 21:02:12 +00:00
anthonyd%netscape.com
32339edfc0 bug fix for 62796
sr=kin@netscape.com
a=jfrancis@netscape.com
r=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@84669 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-09 21:44:35 +00:00
cls%seawood.org
c6df0ee30a Backing out anthonyd's previous checkin as it is causing text boxes to not work anywhere on at least beos, linux & win32.
Bug #62796


git-svn-id: svn://10.0.0.236/trunk@84532 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 15:11:50 +00:00
anthonyd%netscape.com
df8ca35e51 bug fix for 62796 - various range fixes, including a crasher in Range::deleteContents()
sr=kin@netscape.com
r=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@84513 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 04:52:23 +00:00
rods%netscape.com
a6e0d47c5a removing most all NS_DEFINE_IID and replacing them with NS_GET_IID macros
Bug 61274, r=buster sr=waterson


git-svn-id: svn://10.0.0.236/trunk@84377 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-04 20:44:42 +00:00
anthonyd%netscape.com
a1ab735a6f fix for bug#58028 - Range CompareBoundaryPoints returning incorrect values
r=jst,kin
a=kin


git-svn-id: svn://10.0.0.236/trunk@84077 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-27 00:37:01 +00:00
dbaron%fas.harvard.edu
fc1d2a9cd5 Convert correct usage of |nsCOMPtr<T>::operator&| to use |address_of| since the operator& will soon become private. b=59414 r=disttsc@bart.nl sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@83446 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-09 04:46:08 +00:00
dbaron%fas.harvard.edu
b317a6d07b Fix one-time leak of 4 nsVoidArray and 1 PRMonitor from code in nsRange.cpp by freeing in layout module destructor. r=mjudge@netscape.com sr=scc@mozilla.org b=56762
git-svn-id: svn://10.0.0.236/trunk@81990 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-29 21:38:52 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
anthonyd%netscape.com
a5bfdaf68e fix for bug #49663
nsRange::DeleteContents leaks
r=sfraser
sr=kin
a=brendan


git-svn-id: svn://10.0.0.236/trunk@81455 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 18:47:00 +00:00
heikki%netscape.com
e56a7ca178 Bug 55377, fixed a couple of Purify FMMs. delete[] was used when free should have been used instead. r=akkana, a=waterson.
git-svn-id: svn://10.0.0.236/trunk@80879 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 01:29:32 +00:00
anthonyd%netscape.com
f4c17f81ff fix for bug 48624 (hidden selection issues with plain text widgets)
fix for bug 45662 (updating range impl to dom spec)
fix for some edge case selection issues invloving multiple windows, no bug #
but saari knows about this.
r: sfraser, jfrancis, mjudge, saari
a: beppe


git-svn-id: svn://10.0.0.236/trunk@77040 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 03:54:30 +00:00
jst%netscape.com
7e0575bfee DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc
git-svn-id: svn://10.0.0.236/trunk@76967 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 17:27:06 +00:00
saari%netscape.com
e1a79e8500 massive landing of joki changes.
Relevant nsbeta3+ bugs 43309, 44503, 2634, 2504,5981, 24698, 25758, 33577,
36062, 36217, 41191, 41491, 42356, 42829, 43016
r=saari (joki code). also been tested by heikki and bryner


git-svn-id: svn://10.0.0.236/trunk@75805 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 21:31:05 +00:00
akkana%netscape.com
cbacea09cf 40457: Add implementation for range methods to tell whether
a node or point intersects the range. r=jfrancis, a=beppe.


git-svn-id: svn://10.0.0.236/trunk@71730 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 22:57:36 +00:00
jfrancis%netscape.com
4eb70cc230 fixes 29329
git-svn-id: svn://10.0.0.236/trunk@70760 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 23:01:09 +00:00
jst%netscape.com
053748f710 Fixing bug 38357. Passing a document node to nsRange::SelectNode() crashed mozilla, now it properly throws the exception INVALID_NODE_TYPE_ERR if the node type is incorrect. r=akkana@netscape.com
git-svn-id: svn://10.0.0.236/trunk@69134 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-11 01:44:44 +00:00
sfraser%netscape.com
5d806b0567 Add null check.
git-svn-id: svn://10.0.0.236/trunk@67741 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-01 21:50:18 +00:00
scc%netscape.com
e16ab47ebe making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@65029 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 11:20:35 +00:00
mjudge%netscape.com
d068ec5d0f moving nsGeneratedContent stuff to new file nsGeneratedIterator. adding new bitflags for selection types for nsSelection
git-svn-id: svn://10.0.0.236/trunk@64717 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 07:17:22 +00:00
rickg%netscape.com
1bd57cb94b removed calls to deprecated string methods
git-svn-id: svn://10.0.0.236/trunk@62707 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-12 09:14:14 +00:00
mjudge%netscape.com
44c8697114 big checkin. fixing problems blocking Cmanske (also a reviewer). Checking in preliminary for gen content.(nothing damaged yet) lots of bug numbers not going to look them up, the tree just opened.
git-svn-id: svn://10.0.0.236/trunk@60278 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-10 04:35:51 +00:00
pp%ludusdesign.com
a2927ce43e Converting ::GetIID() into NS_GET_IID(). Bug #20232. r=scc, r=mozbot
git-svn-id: svn://10.0.0.236/trunk@59537 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 22:24:56 +00:00
vidur%netscape.com
b012506fc2 Fix for bugs 25082 and 25084. Range::SetStartBefore, etc. need to return an error for a null sibling. Range::createContextualFragment needed to allow for a null document. r=pollmann
git-svn-id: svn://10.0.0.236/trunk@58875 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 02:51:51 +00:00
tbogard%aol.net
067920c238 1.) WebShell no longer implements nsIScriptContextOwner.
2.)  WebShell now implements the new nsIScriptGlobalObjectOwner.
3.)  WebShell supports GetInterface to nsIScriptGlobalObject.
4.)  Documents no longer carry around a reference to nsIScriptContextOwner.  Instead they hold on to a nsIScriptGlobalObject.  nsIDocument::GetScriptContextOwner has now become nsIDocument::GetScriptGlobalObject().  Same change to the set methods.


git-svn-id: svn://10.0.0.236/trunk@55175 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 09:24:22 +00:00