393 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
3e2e83624b Create a mozAutoDocUpdate class to handle automatically calling
BeginUpdate/EndUpdate on documents.  Use this in a bunch of places to make sure
that EndUpdate is called in the face of early returns.  Bug 131775, also fixes
bug 211022, r=caillon, sr=jst


git-svn-id: svn://10.0.0.236/trunk@148033 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-16 18:14:25 +00:00
bzbarsky%mit.edu
0bfa6aeb80 Fix bogus loop test that would never let the loop terminate. Bug 221289, patch
by tenthumbs@cybernex.net, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@147588 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-05 18:12:14 +00:00
bzbarsky%mit.edu
62c2420626 Make presshell batch processing of style changes (using BeginUpdate/EndUpdate
notifications).  Bug 200931, r=peterv, sr=jst


git-svn-id: svn://10.0.0.236/trunk@147516 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-02 21:29:40 +00:00
jst%mozilla.jstenback.com
ef67a47aab Fixing bug 215981. DeCOMtaminating nsIContent and nsIDocument some, and also some minor changes to other related interfaces. r=caillon@aillon.org, sr=peterv@propagandism.org.
git-svn-id: svn://10.0.0.236/trunk@147354 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-27 04:18:26 +00:00
bzbarsky%mit.edu
c6a7e9b410 Fix GetID to not try to get attrs in unknown namespaces. Bug 220027, r=peterv, sr=jst
git-svn-id: svn://10.0.0.236/trunk@147236 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-24 13:22:09 +00:00
peter%propagandism.org
ee899ed492 Fix for bug 219819 (.nodeValue shouldn't throw NO_MODIFICATION_ALLOWED_ERR for documents and elements). r/sr=jst.
Fix for bug 206416 (tagName property of element created with xmlDocument.createElementNS should contain the qualified name but contains only the local name). r=bz, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@147163 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-23 13:45:48 +00:00
bryner%brianryner.com
978d05c917 Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@146614 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-07 21:50:21 +00:00
caillon%returnzero.com
d55b44719f Backing out the patch to bug 83536.
I will reland this when 1.6a re-opens.
r+sr=jst@netscape.com
a=chofmann


git-svn-id: svn://10.0.0.236/trunk@146256 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-22 03:06:53 +00:00
brendan%mozilla.org
95220b5330 Add shared DHashTableOps for [const] char *key use-cases, clean up dhash API abusages (214839, r=dougt, sr=dbaron).
git-svn-id: svn://10.0.0.236/trunk@145624 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-05 20:09:21 +00:00
bzbarsky%mit.edu
38d67245d3 Fix silly warning
git-svn-id: svn://10.0.0.236/trunk@145318 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-29 05:24:59 +00:00
bzbarsky%mit.edu
0147d8d4a6 DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@145284 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 21:09:56 +00:00
caillon%returnzero.com
2d06d867c5 Bug 213341 - Use smart pointer classes for long lived strong references in nsGenericElement and friends.
r=bzbarsky@mit.edu sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@145165 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-24 20:38:08 +00:00
bzbarsky%mit.edu
b878645544 Add an nsIDocument* GetOwnerDocument() to nsGenericElement, deCOMify
nsINodeInfo a tad.  Bug 211634, r=jkeiser, sr=jst


git-svn-id: svn://10.0.0.236/trunk@145155 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-24 17:30:52 +00:00
caillon%returnzero.com
cd46cbbaad Bug 83536.
Merge script principal implementations into one class.
Should reduce footprint, speed up calls to caps a little bit, and fixes several memory leaks.
Also fixes bugs 211174 and 211263
r=jst@netscape.com
sr=bzbarsky@mit.edu
moa=mstoltz@netscape.com (he looked at an earlier patch and said it looked fine, and will do a retroactive review when he returns from vacation as well)


git-svn-id: svn://10.0.0.236/trunk@145137 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-24 05:15:20 +00:00
bzbarsky%mit.edu
5a36af3d0a Backing out part of patch for bug 211128, since it regressed all sorts of
XBL-ish stuff.  r=stuff-is-broken sr=jag for the backout.


git-svn-id: svn://10.0.0.236/trunk@144814 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 05:35:09 +00:00
bzbarsky%mit.edu
c8ff7820a4 Make XBL anonymous content get its base URI from the XBL document (the binding
URI) instead of from the document of the bound element.  This way relative URIs
in a binding are always relative to the binding.  Bug 211128, r=caillon, sr=jst


git-svn-id: svn://10.0.0.236/trunk@144753 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 23:06:26 +00:00
dbaron%dbaron.org
593f58592d Remove hint parameter from AttributeChanged methods and simplify style hint mechanism. b=211308 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144735 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 21:16:12 +00:00
bzbarsky%mit.edu
50802bdf22 Add nsIContent::GetBaseURL; get rid of similar functions on nsIXMLContent and
nsIHTMLContent.  Bug 209573, r=caillon, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@144415 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 02:45:34 +00:00
bzbarsky%mit.edu
d05edb9f6b Change GetHrefUTF8 to GetHrefURI to make sure that we don't lose track of the
origin charset.  Bug 166996, r=dbaron,darin sr=jst


git-svn-id: svn://10.0.0.236/trunk@144331 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-01 02:59:54 +00:00
caillon%returnzero.com
d69f1a5b86 210451 - Make Node.textContent settable, followup to earlier checkin.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@144118 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 23:05:59 +00:00
caillon%returnzero.com
056169e55b 210451 - Implement getting Node.textContent (see the DOM3 WD)
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@144107 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 21:39:39 +00:00
bzbarsky%mit.edu
79461f624d Add asserts on people attempting to fetch attributes in the
kNamespaceID_Unknown namespace or call HasAttr on such.  Bug 210314, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@144090 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 06:45:34 +00:00
bzbarsky%mit.edu
1c3d6bf29e Seems to have no effect on Tp, so relanding. Who knows what btek is
thinking....


git-svn-id: svn://10.0.0.236/trunk@144036 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-22 06:34:08 +00:00
bzbarsky%mit.edu
b27e4759a1 Backing the rest of this out to see whether it affects Tp.
git-svn-id: svn://10.0.0.236/trunk@144035 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-22 03:33:33 +00:00
bzbarsky%mit.edu
4ca15e2232 Make sure to fire no mutation events or internal notifications on attribute
changes that don't change the attr value.  Bug 209634, r=caillon, sr=jst


git-svn-id: svn://10.0.0.236/trunk@144018 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 04:55:32 +00:00
jst%netscape.com
45f72e0474 Fixing one more part of bug 209699. Replace NS_Convert* with Copy/Append*. r=dwitte@stanford.edu, sr=alecf@flett.org.
git-svn-id: svn://10.0.0.236/trunk@144012 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 00:26:28 +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
caillon%returnzero.com
3d76baaf52 209494 - use nsCOMPtr::swap() in a few loops
r+sr=bzbarsky@mit.edu


git-svn-id: svn://10.0.0.236/trunk@143745 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-16 00:14:23 +00:00
caillon%returnzero.com
0a6d1ae509 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@143683 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 20:10:01 +00:00
jst%netscape.com
4fac069d27 Fixing bug 199399. Eliminating the interfaces nsIXMLDocument now that it's not needed any more. r=peterv@netscape.com, sr=heikki@netscape.com
git-svn-id: svn://10.0.0.236/trunk@141626 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-22 21:57:25 +00:00
heikki%netscape.com
40aa3e1b20 Bug 200382, reduce content's dependencies on webshell, r=adamlock, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@140645 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-03 18:57:33 +00:00
alecf%netscape.com
91bc90e78f oops, back out a checkin that wasn't supposed to land
git-svn-id: svn://10.0.0.236/trunk@140270 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 19:59: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
dbaron%dbaron.org
e6a2b29ebf Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@138193 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 15:34:38 +00:00
bzbarsky%mit.edu
4e2cad09e0 Try to more gracefully handle unexpected destruction of stylesheet linking
nodes.  Bug 185808 (just fixes the crash, not the real problem).  r=sicking,
sr=jst, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@137356 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-04 04:45:58 +00:00
bzbarsky%mit.edu
24c99f9f5f Relanding 189384 since it seems Not Guilty. Still r=sicking/sr=jst/a=asa
git-svn-id: svn://10.0.0.236/trunk@137227 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-31 23:21:22 +00:00
bzbarsky%mit.edu
67d9f82daa Backing out 189384 to see whether this caused the Tp jump.
git-svn-id: svn://10.0.0.236/trunk@137194 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-31 14:28:50 +00:00
bzbarsky%mit.edu
2684cc736f Make getElementsByTagName(NS) in XUL use content lists (perf, etc). Bug
189384, r=sicking, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@137185 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-31 06:28:14 +00:00
dbaron%dbaron.org
30879d2c9e Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it's no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@135991 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:24:38 +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
caillon%returnzero.com
3519a9924e Bug 177328: Update compareTreePosition to compareDocumentPosition as per the latest DOM3 Core WD: http://www.w3.org/TR/2002/WD-DOM-Level-3-Core-20021022/core.html#Node3-compareDocumentPosition
r=bzbarsky sr=jst


git-svn-id: svn://10.0.0.236/trunk@134777 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-04 05:18:39 +00:00
peterv%netscape.com
d103a96ada Fix for bug 176610 (Make nsNameSpaceManager a service). r=caillon, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@134587 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-29 23:44:07 +00:00
sicking%bigfoot.com
6f8753e832 Bug 8929: Kill NS_COMFALSE
r=peterv sr=bz


git-svn-id: svn://10.0.0.236/trunk@134398 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-25 11:21:22 +00:00
bzbarsky%mit.edu
f6b3b3afb9 Make nsILinkHandler take uris instead of strings. Bug 176904, r=darin, sr=jst
git-svn-id: svn://10.0.0.236/trunk@134133 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-20 00:44:26 +00:00
bryner%netscape.com
b345c67a0c Add a second pass of event processing for system events, using DOM3 event group functionality. Bug 124990. Patch by joki, r=saari and bryner, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@133439 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-09 00:25:25 +00:00
bzbarsky%mit.edu
22537f1fd2 Notify properly when calling AppendChild on a documentfragment. Bug
175843, r=sicking, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@133060 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-06 01:46:03 +00:00
dbaron%fas.harvard.edu
0aaa1704e7 Porting fixes for gcc trunk (to become 3.3): Eliminate C-only option from CXXFLAGS. Don't use pasting for things that are still separate tokens. Don't pass objects of non-POD type through |...|. Don't include strstream.h, which isn't used anymore anyway. b=170250 r=bbaetz sr=alecf
git-svn-id: svn://10.0.0.236/trunk@130797 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-30 14:18:27 +00:00
dbaron%fas.harvard.edu
f15f88b9e8 Fix matching of class selectors on XML elements (pending a better patch that cleans up the NS_COMFALSE-using API). b=168596 r=sicking sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@129701 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-16 14:17:18 +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
jkeiser%netscape.com
dbaed25a2e Make save/restore in textfields / textare work again (bug 163714), r=rjesup@wgat
e.com, sr=jst@netscape.com, a=asa


git-svn-id: svn://10.0.0.236/trunk@129017 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 00:58:08 +00:00