Commit Graph

460 Commits

Author SHA1 Message Date
bryner%brianryner.com
eeddf02bde deCOMtaminate nsIDocument by changing methods to use return value instead of out-params, eliminating unused nsresult return values, moving some members to nsIDocument and inlining the getters/setters. Bug 222134, r=bzbarsky, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148257 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 06:09:48 +00:00
caillon%returnzero.com
c1914505cb Re-land patch for bug 83536, merging principal objects.
Also includes fixes from bug 216041.
r=bzbarsky
sr=jst


git-svn-id: svn://10.0.0.236/trunk@148229 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-21 22:11:49 +00:00
peter%propagandism.org
38b3b01586 Additional fix for bug 56764 (Document appendChild, insertBefore fail to throw HIERARCHY_REQUEST_ERR when inserting Text Nodes). r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148217 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-21 19:33:31 +00:00
peter%propagandism.org
23df54e8d3 Fix for bug 56764 (Document appendChild, insertBefore fail to throw HIERARCHY_REQUEST_ERR when inserting Text Nodes). r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@148200 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-21 12:27:00 +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
dbaron%dbaron.org
37de3855c7 Make URIs in the style system nsIURI pointers instead of strings. b=113173 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@147501 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-01 22:53:56 +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
peter%propagandism.org
f0d854f975 Fix for bug 219819 (.nodeValue shouldn't throw NO_MODIFICATION_ALLOWED_ERR for documents and elements). r/sr=jst.
git-svn-id: svn://10.0.0.236/trunk@147162 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-23 13:45:02 +00:00
hpradhan%hotpop.com
90bff877d5 Bug 218938: document.lastModified returns current time for local file
git-svn-id: svn://10.0.0.236/trunk@147082 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-20 05:57:19 +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
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
jaggernaut%netscape.com
df747d0621 Bug 213602: Switch some users of NS_GetWeakReference over to do_GetWeakReference. r=bzbarsky, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@145205 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-25 19:06:59 +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
mkaply%us.ibm.com
ea2071d85d rs=leaf
Remove XP_OS2_VACPP from the tree


git-svn-id: svn://10.0.0.236/trunk@145037 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-21 22:10:08 +00:00
caillon%returnzero.com
42ad896b6d Bug 212218
Start supporting bits and pieces of the additions to |Document| in DOM Level 3 Core.
r=jst@netscape.com sr=bzbarsky@mit.edu


git-svn-id: svn://10.0.0.236/trunk@144748 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 22:32:25 +00:00
timeless%mozdev.org
01a77946ea Bug 212438 trivial optimization for nsDocument::GetScriptLoader
r=jst sr=jst


git-svn-id: svn://10.0.0.236/trunk@144745 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 21:53:22 +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
timeless%mozdev.org
a25de168e9 Bug 212438 trivial optimization for nsDocument::GetScriptLoader
r=bz sr=bz


git-svn-id: svn://10.0.0.236/trunk@144734 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 21:08:12 +00:00
timeless%mozdev.org
421e370456 Bug 212438 trivial optimization for nsDocument::GetScriptLoader
r=bz sr=bz


git-svn-id: svn://10.0.0.236/trunk@144724 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 20:01:51 +00:00
jkeiser%netscape.com
64ac997a95 Make NOSCRIPT show up normally when script disabled (bug 77296), r=bzbarsky@mit.edu, sr=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@144183 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-26 06:10:03 +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
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
dbaron%dbaron.org
906d582953 Make CSSStyleRuleImpl immutable by changing mutation code (including some merging of code between nsDOMCSSAttributeDeclaration and DOMCSSDeclarationImpl) so that it creates a new rule for the modified declaration. Change StyleRuleChanged notification signatures, and change pres shell's handling of style rule change, addition, and removal to just do reresolution. Remove fine-grained ways of clearing style data. Change PeekStyleData so it doesn't do more work than it needs to, and can be relied on not to access rules that no longer match any content. b=188803 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@143831 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 01:59:57 +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
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
caillon%returnzero.com
fb75cd3bbb Bug 209133
Make |Node| from script recognize constants defined in nsIDOM3Node.
Move DOM3 constants over to nsIDOM3Node.
Update the names and values to reflect the latest draft of the DOM 3 Core (Last Call)

r=timeless sr=jst


git-svn-id: svn://10.0.0.236/trunk@143619 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-12 02:54:16 +00:00
bsmedberg%covad.net
74b1942aee Bug 208111 - Remove nsIDocument::GetArena which is unused. r=sicking sr=peterv
git-svn-id: svn://10.0.0.236/trunk@143286 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-04 13:10:02 +00:00
caillon%returnzero.com
1fe458ad18 205225 - document.createTreeWalker(null, ...) wasn't null checking.
r=sicking sr=jst a=asa


git-svn-id: svn://10.0.0.236/trunk@142586 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-17 13:57:16 +00:00
jst%netscape.com
57a0b36cc7 Fixing bug 116598. Making document.lastModified = now() if the server doesn't send a last-modified header. This makes us compatible with IE. r=caillon@returnzero.com, sr=bzbarsky@mit.edu, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@142143 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-06 00:45:54 +00:00
bzbarsky%mit.edu
6f3d8509a0 Move document.lastModified up onto nsIDOMNSDocument; refactor the
RetrieveRelevantHeaders stuff a bit.  Bug 192366, patch by Pratik
<psolanki@netscape.net>, r=bzbarsky, sr=jst


git-svn-id: svn://10.0.0.236/trunk@141452 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-19 16:53:44 +00:00
jst%netscape.com
4132f747e7 Fixing bug 111514. In an XHTML document served as application/xhtml+xml, |document| is not an HTML document object, but an XML document object. r=bugmail@sicking.cc, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@141424 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-19 00:28:09 +00:00
hpradhan%hotpop.com
d446a9ee63 bug 199756 : Crash at nsDocument::GetPrincipal
git-svn-id: svn://10.0.0.236/trunk@140446 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-31 15:45:44 +00:00
jst%netscape.com
08e9d026e0 Fixing bug 124412. Making nsXULDocument inherit nsXMLDocument to avoid the need to duplicate a large amount of code in nsXULDocument. Also removing nsMarkupDocument and nsIDOMEventCapturer that are no longer needed. Changing the inheritance of nsIDOMXULDocument to avoid ~60 or so forwarding methods, and doing a *lot* of code cleanup. r=bugmail@sicking.cc, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@140344 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-26 07:41:30 +00:00
heikki%netscape.com
9ab0181236 Bug 139276, implement synchronous document.load(), r=jst, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@139954 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 19:22:52 +00:00
heikki%netscape.com
e1c2bcdb80 Bug 182323, implemented XPointer spec, we now support the framework, shorthand syntax, element, fixptr, xpath1 and xmlns schemes, and provide a proprietary API from scripts, r=sicking, sr=peterv.
git-svn-id: svn://10.0.0.236/trunk@139800 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 23:45:42 +00:00
bzbarsky%mit.edu
e13b131d86 Fix crash on having a <xul:listbox> in a plain XML document. Bug 197234,
r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@139696 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 21:18:26 +00:00
bzbarsky%mit.edu
f0eaf3702e Make all CSSStyleSheets have a useful mDocument so that they can pass change
notifications properly.  Parent sheets are responsible for keeping their kids'
mDocument pointers up-to-date.  Bug 194543, r=dbaron, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@139589 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 03:44:02 +00:00
peterv%netscape.com
c96c6fa64f Fix for bug 195153 (Remove bogus 'extern' decls from NS_New* functions.). Patch by jst, r=sicking, sr=peterv.
git-svn-id: svn://10.0.0.236/trunk@138957 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 15:08:41 +00:00
bzbarsky%mit.edu
834f54cbc8 Sync up observer notifications between nsDocument and nsXULDocument. Bug
192130, r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@138302 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 18:49:45 +00:00
sicking%bigfoot.com
37c5c969e9 Bug 174713: Make XPath on HTML documents behave consistently and HTML-ish. This makes the XPath-functions name() and local-name() return upper-case names and makes nametests case-insensitive.
r=peterv sr=jst a=asa


git-svn-id: svn://10.0.0.236/trunk@137794 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-14 00:59:40 +00:00
dbaron%dbaron.org
1e9033b05f Backing out half of previous changes, since they're not necessary to fix the crash and I think they cause problems.
git-svn-id: svn://10.0.0.236/trunk@137518 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-07 03:21:27 +00:00
dbaron%dbaron.org
60df6b53bb Make observer notification in nsDocument and nsXULDocument happen in the same order (that of nsXULDocument), and make nsXULDocument more resistant to observer removal during notification in an attempt to fix crashes. b=192130 Patch from Boris Zbarsky <bzbarsky@mit.edu>. r=dbaron sr=jst a=asa
git-svn-id: svn://10.0.0.236/trunk@137517 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-07 03:15:41 +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
cbiesinger%web.de
8b51a21663 remove ifdef IBMBIDI in content/, r+sr=roc+moz, bug 89203
git-svn-id: svn://10.0.0.236/trunk@136507 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-17 12:09:23 +00:00
sicking%bigfoot.com
6b164af018 Bug 187611: Set the proper Content-Type of XSLT generated documents
r=peterv sr=jst


git-svn-id: svn://10.0.0.236/trunk@136067 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 15:45:45 +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