92 Commits

Author SHA1 Message Date
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
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
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
sicking%bigfoot.com
db4678c2f2 Bug 181808: Use macros to declare and implement nsIDocumentObserver
r=caillon sr=bz


git-svn-id: svn://10.0.0.236/trunk@134395 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-25 08:33:30 +00:00
bzbarsky%mit.edu
256d54cb48 document.forms can get confused and insert the same form multiple times
in the list.  Bug 166752, r=caillon/jkeiser, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@129106 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-09 19:44:29 +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
jst%netscape.com
ed117f9119 Fixing bug 156364. Laying the groundwork for associating more info with elements in the DOM, and moving event listener managers and range lists out of nsGenericElement slots. This change cuts down on the size of nsGenericElement. r=sicking@bigfoot.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@127114 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-13 00:50:50 +00:00
bzbarsky%mit.edu
4200beed9b Fix silly logic error in lazy lists. Bug 158948, r=jkeiser, sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@125731 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 20:43:48 +00:00
bzbarsky%mit.edu
ac24e852ff add an additional one-slot global content list cache. Bug 140758 stuff
again, patch by jst@netscape.com, r=bzbarsky, sr=rbs


git-svn-id: svn://10.0.0.236/trunk@124834 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 07:10:41 +00:00
bzbarsky%mit.edu
e31abc7df2 Bug 153519 -- parent ContentLists to their root elements. r=peterv, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124789 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 00:44:20 +00:00
bzbarsky%mit.edu
3aea8ccfdb Fix debug-only crash. Bug 155259, r=harishd, sr=jag
git-svn-id: svn://10.0.0.236/trunk@124451 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 01:25:23 +00:00
bzbarsky%mit.edu
7c94c072e9 Make content lists lazy. Bug 104603, r=jkeiser, sr=jst
git-svn-id: svn://10.0.0.236/trunk@124253 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-28 01:30:09 +00:00
jst%netscape.com
7b7411c3ef Fixing bug 134278. Die kNameSpaceID_HTML, die! r=sicking@bigfoot.com, sr=heikki@netscape.com
git-svn-id: svn://10.0.0.236/trunk@121894 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-20 22:47:02 +00:00
bzbarsky%mit.edu
5ad9be30cc Bug 140758 redux -- cache results of getElementsByTagName in case people call
it in a loop.  r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@121093 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-08 20:48:19 +00:00