105 Commits

Author SHA1 Message Date
peterv%propagandism.org
4d197ac7f6 Fix for bug 378595 (Improve cycle collection QI performance). r/sr=sicking.
git-svn-id: svn://10.0.0.236/trunk@225011 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-25 16:35:31 +00:00
dbaron%dbaron.org
30f83072c5 Remove unused getKey callback from PLDHashTableOps/JSDHashTableOps. b=374906 r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@222462 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-27 15:33:45 +00:00
peterv%propagandism.org
4fff00b28c Fix for bug 368773 (Add a bunch of DOM objects to cycle collection). r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@221534 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-08 11:17:16 +00:00
sayrer%gmail.com
4b956025f4 Bug 357450. Implement getElementsByClassName. r=jst, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@219322 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-01 15:14:00 +00:00
bzbarsky%mit.edu
fc8275495f Fix bug 300691. r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@219166 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 05:48:22 +00:00
cvshook%sicking.cc
ccd1d6884d Kill remainders of ns(XBL|HTML|XUL|Layout)Atoms. r/sr=jst b=368128
git-svn-id: svn://10.0.0.236/trunk@219151 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 00:06:41 +00:00
bmlk%gmx.de
5e2c64b119 the previous commit was bogus, the bustage was due to midcheckin.
git-svn-id: svn://10.0.0.236/trunk@217434 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-26 19:18:56 +00:00
bmlk%gmx.de
f20938bf42 bustage fix
git-svn-id: svn://10.0.0.236/trunk@217429 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-26 18:12:11 +00:00
timeless%mozdev.org
c778d21502 Bug 355300 There should be only one nsGkAtoms creature
r=dbaron


git-svn-id: svn://10.0.0.236/trunk@217425 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-26 17:47:52 +00:00
Olli.Pettay%helsinki.fi
c0f5c0da16 Bug 354711, Crash when accessing images.length, r+sr=bz+sicking
git-svn-id: svn://10.0.0.236/trunk@212925 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-30 15:12:47 +00:00
jst%mozilla.jstenback.com
d0d506f934 Fixing bug 348062. Making nsContentList hold strong references to the nodes in the list. r+sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@208420 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-25 17:45:25 +00:00
mrbkap%gmail.com
b264d4a9a5 Enforce a semicolon after ASSERT_IN_SYNC in builds without DEBUG_CONTENT_LIST defined. NPTOB, idea from bz (bug 348062)
git-svn-id: svn://10.0.0.236/trunk@207891 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-18 23:25:35 +00:00
mrbkap%gmail.com
ac945d4826 Checking in some debug code to verify sanity. bug 348062, r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@207068 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-10 18:58:37 +00:00
bzbarsky%mit.edu
fdd014f014 Fix some getElementsByTagNameNS issues, both regressions and long-standing
bugs.  Bug 343307, r+sr=sicking


git-svn-id: svn://10.0.0.236/trunk@203223 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-20 03:25:39 +00:00
cvshook%sicking.cc
f327b2f74b Bug 343288: Move IsInDoc() and GetCurrentDoc() to nsINode. r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@201779 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-08 00:30:19 +00:00
cvshook%sicking.cc
aba7c6ff77 Bug 342062: Add nsIMutationObserver which has the ability to get notifications for just mutations happening in a subtree under a given node. r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@201460 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-02 07:23:10 +00:00
bzbarsky%mit.edu
71ed85c349 Make document observers QI to nsIDocumentObserver. Fixes fallout (tree orange)
from bug 340733; reviews pending.


git-svn-id: svn://10.0.0.236/trunk@200416 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-20 06:29:17 +00:00
bzbarsky%mit.edu
f7f7c5886c Don't keep content lists with a non-null root content in the global slot. Bug 322636, r+sr+branch181=jst
git-svn-id: svn://10.0.0.236/trunk@198907 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-02 20:34:06 +00:00
cvshook%sicking.cc
1ac65a91fa Bug 335913: Reimplement CompareDocumentPosition using nsINode interfaces. r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@196673 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-16 14:51:52 +00:00
cvshook%sicking.cc
cec9ea1123 Bug 335911: Change nsIContent::IsContentOfType to nsINode::IsNodeOfType. r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@196009 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-05 06:52:21 +00:00
bzbarsky%mit.edu
080b1c6577 Make getElementsByTagName do the right thing with prefixes. Bug 206053,
r=peterv, sr=jst


git-svn-id: svn://10.0.0.236/trunk@195393 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-25 21:21:49 +00:00
bzbarsky%mit.edu
18ecced212 More comment tweaks; should be it for this directory.
git-svn-id: svn://10.0.0.236/trunk@193314 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-31 08:41:49 +00:00
bzbarsky%mit.edu
79c2bd2cd6 Add some comments explaining what these files do. rs=jst
git-svn-id: svn://10.0.0.236/trunk@193256 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-30 08:03:04 +00:00
cvshook%sicking.cc
ceaf7bdebc Bug 323910: Merge atom lists in gklayout
r/sr=jst


git-svn-id: svn://10.0.0.236/trunk@187798 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-19 00:58:12 +00:00
bzbarsky%mit.edu
b2f82fd14b Switch the name and id hashtable from strings to atoms. Atomize names in
general.  Bug 315771, r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@184748 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-16 02:55:29 +00:00
bzbarsky%mit.edu
d14d1f2475 Remove nsIStyledContent. Bug 313968, r=sicking, r=dbaron on nsCSSStyleSheet
changes, sr=jst


git-svn-id: svn://10.0.0.236/trunk@183371 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 00:41:51 +00:00
bzbarsky%mit.edu
53c329523d Pass nsIStyledContent to AttributeChanged() so that consumers don't have to QI
to it.  Bug 313343, r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@183113 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-27 02:25:23 +00:00
peterv%propagandism.org
86ac4d2e8f Fix for bug 27382 (ownerDocument of orphan text and attr nodes is null). Patch by sicking, updated by peterv, r=bz, sr=peterv.
git-svn-id: svn://10.0.0.236/trunk@180911 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-24 18:43:15 +00:00
bzbarsky%mit.edu
06a3695338 Implement an AttrValueIs method on nsIContent which can be used to quickly
check whether a given attribute has a given value.  Use it in
nsContentList::NamedItem.  Bug 307600, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@179995 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-11 19:20:08 +00:00
bzbarsky%mit.edu
d934c405c0 Make content lists smarter about match functions that don't actually depend on
attributes.  Bug 299703, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@177803 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 01:43:53 +00:00
bryner%brianryner.com
5d17ec2995 Remove unneeded nsIContentList interface (bug 280746). r+sr=jst.
git-svn-id: svn://10.0.0.236/trunk@168732 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-02 23:16:02 +00:00
bzbarsky%mit.edu
c16b8200cb Be a little more conservative about dirtying function-based content lists when
a node's attribute changes and they match it (check whether the node is already
in the list first).  Bug 271709, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@166128 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-02 02:28:35 +00:00
bzbarsky%mit.edu
73690f9d73 Change FlushPendingNotifications to have more granularity and update callers to
only flush the things they really need flushed.  Bug 144072, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@157037 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-27 22:08:42 +00:00
bzbarsky%mit.edu
0f3150f7ad Make sure content lists don't look at "anonymous nodes" (nodes that are
anonymous descendants of the root of the list).  Bug 240851, r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@155704 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-29 21:07:44 +00:00
gerv%gerv.net
98831918fc Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155044 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-17 21:52:36 +00:00
bzbarsky%mit.edu
16f1f02320 Make getElementsByAttribute be an nsContentList so that it's got that live
DOMNodeList goodness that all nodelists should have.  Change some JS to not
break, and some other JS to be a little more efficient with the new world of
lazy listness.  Bug 240186, r=neil on the JS changes, r=jst on the content
changes, sr=jst


git-svn-id: svn://10.0.0.236/trunk@154907 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-15 01:51:32 +00:00
bzbarsky%mit.edu
5577133073 Remove GenericElementCollection; convert consumers to nsContentList for extra
lazy goodness.  Bug 76994, r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@154850 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-14 04:26:00 +00:00
bzbarsky%mit.edu
7f257d2fab Use IsContentOfType instead of nsIDOMNode::type to check for an element. Bug
237213, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@154740 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 00:23:22 +00:00
sicking%bigfoot.com
e4632ed495 Bug 237566: Remove nsIContent::ReplaceChildAt and supportive codepaths.
r=bz sr=jst


git-svn-id: svn://10.0.0.236/trunk@154723 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-12 22:48:33 +00:00
dbaron%dbaron.org
8eddaadb96 Use a stub implementation of nsIDocumentObserver for implementors of nsIDocumentObserver in the layout library. b=232351 r=jst sr=peterv
git-svn-id: svn://10.0.0.236/trunk@151970 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 21:04:33 +00:00
jst%mozilla.jstenback.com
12ed685455 Fixing bug 230840. DeCOMtaminating nsIDocumentObserver, nsIAttribute, nsIContentList, and nsIContentIterator, and doing some other cleanup. r=jonas@sicking.cc, sr=bryner@brianryner.com
git-svn-id: svn://10.0.0.236/trunk@151784 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-24 00:46:17 +00:00
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
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
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
bzbarsky%mit.edu
c6ed9701dd Fix up name resolution under forms to not find elements that are just
randomly in the document.  Bug 148782, r=caillon, sr=jst


git-svn-id: svn://10.0.0.236/trunk@144869 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-15 02:07:55 +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
9bbf8fb610 Bug 211281 optimization for 'rare' oom check
r=bz sr=bz


git-svn-id: svn://10.0.0.236/trunk@144351 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-01 18:41:39 +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