475 Commits

Author SHA1 Message Date
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
f5ef7fbf53 Fix windows bustage this time
git-svn-id: svn://10.0.0.236/trunk@196508 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-15 09:18:35 +00:00
cvshook%sicking.cc
98f1d1c517 Bug 334075: Push mFlagsOrSlots to nsINode to allow storing flags and (in the future) slots on nsGenericDOMDataNodes. r=mrbkap sr=bz
git-svn-id: svn://10.0.0.236/trunk@196502 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-15 07:03:15 +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
35553cc59b Make nsIDocumentEncoder::init scriptable. Bug 330517, patch by jpl24
<jlurz24@gmail.com>, r=bzbarsky, sr=sicking


git-svn-id: svn://10.0.0.236/trunk@195756 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-01 05:25:52 +00:00
bzbarsky%mit.edu
bf19ef708d Rename GetNodePrincipal to NodePrincipal. Bug 327246, r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@195579 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-27 18:21:11 +00:00
neil%parkwaycc.co.uk
d9aa680b29 Improve box object hashtable storage b=326931 r=jst sr=bz
git-svn-id: svn://10.0.0.236/trunk@195440 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-26 12:42:49 +00:00
bzbarsky%mit.edu
906143da63 Dont clear our props if we're not changing owner documents. Bug 335333, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@195381 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-25 20:03:26 +00:00
bzbarsky%mit.edu
24d1be29e9 Dispatch mutation events even in documents that are not rendered in a window.
Bug 201236, patch by Alex Vincent <ajvincent@gmail.com>, r=smaug, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@195285 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-24 19:52:21 +00:00
peterv%propagandism.org
78cadf3883 Better fix for bug 47852 (NAMESPACE_ERR not being thrown when setting Node.prefix). r/sr=sicking.
git-svn-id: svn://10.0.0.236/trunk@194509 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-17 17:13:11 +00:00
cvshook%sicking.cc
5d88584166 Bug 333942. Move GetParent to nsINode and add GetNodeParent there too. There is a risk that this'll add some binary size, but hopefully not too much. r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@194451 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-15 05:09:16 +00:00
mrbkap%gmail.com
002afae6e8 Remove defunct assertions from debug-only code. bug 334055, r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@194441 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-15 00:39:35 +00:00
jst%mozilla.jstenback.com
197612f082 Fixing bug 321299. Make sure XPConnect wrappers get properly reparented when moving nodes from document to document. r=mrbkap@gmail.com, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@194099 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-11 03:49:44 +00:00
peterv%propagandism.org
7f98af870e Fix for bug 47852 (NAMESPACE_ERR not being thrown when setting Node.prefix). r/sr=sicking.
git-svn-id: svn://10.0.0.236/trunk@193739 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-06 20:54:53 +00:00
bzbarsky%mit.edu
2174fa79e3 Make sure to not double-insert anonymous kids if the DOM messes with them. Bug
330925, r+sr=sicking


git-svn-id: svn://10.0.0.236/trunk@193586 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 03:44:00 +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
14903561f3 Add comments describing some more files.
git-svn-id: svn://10.0.0.236/trunk@193306 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-31 08:00:42 +00:00
cvshook%sicking.cc
5b56da64f7 Bug 329982: Give nsXULElement::RemoveChildAt some lovin' to make it deal better with mutationevent handlers mutating the DOM
git-svn-id: svn://10.0.0.236/trunk@193071 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-27 22:00:40 +00:00
cvshook%sicking.cc
7a0a94b541 Bug 331547: Get rid of nsGenericElement::WillAddOrRemove
git-svn-id: svn://10.0.0.236/trunk@192958 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-24 22:43:23 +00:00
cvshook%sicking.cc
825f8563f9 Relanding patches that (hopefully) don't affect Tdhtml
git-svn-id: svn://10.0.0.236/trunk@192885 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-24 00:09:50 +00:00
cvshook%sicking.cc
e2c22d1f10 Back out a few of my patches to see if any caused the Tdhtml regression in bug 331364.
git-svn-id: svn://10.0.0.236/trunk@192842 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-23 08:21:21 +00:00
cvshook%sicking.cc
01c5812080 Bug 330526. Don't call Release on mContent in the middle of putting the nsDOMEventRTTearoff in the cache. r=aaronr@us.ibm.com sr=jst
git-svn-id: svn://10.0.0.236/trunk@192509 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-17 00:51:04 +00:00
cvshook%sicking.cc
801863a1ca Bug 330084: Don't crash when removing an node from the tree that noone holds on to. r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@192506 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-17 00:28:26 +00:00
Olli.Pettay%helsinki.fi
a516ec74ad Bug 329437, Push DispatchClickEvent up to nsGenericElement r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@192322 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-14 19:57:33 +00:00
Olli.Pettay%helsinki.fi
4ea967fd3e Bug 329125, Remove nsMutationEvent::mTarget r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@192075 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-09 18:14:17 +00:00
cvshook%sicking.cc
856dc03d54 Bug 325730. Mutation-event handlers can cause further mutations to the DOM. We need to be more attentive to those. r=bz sr=jst
git-svn-id: svn://10.0.0.236/trunk@192009 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-08 21:47:32 +00:00
Olli.Pettay%helsinki.fi
769ff62416 Bug 328885, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@191999 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-08 20:22:35 +00:00
Olli.Pettay%helsinki.fi
b6cdf7cb60 Bug 234455, Centralize event dispatch r=jst, sr=bz
git-svn-id: svn://10.0.0.236/trunk@191900 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-07 17:08:51 +00:00
cvshook%sicking.cc
abe4275037 Bug 326618: Remove assertion that we know can happen and that is no longer dangerous. r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@190490 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-18 02:54:15 +00:00
wr%rosenauer.org
a752e82511 Bug 326964 - fixed bogus assertion (missing nsIDOMNode::DOCUMENT_TYPE_NODE), p=ajvincent@gmail.com, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@189816 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-13 06:58:59 +00:00
peterv%propagandism.org
00979c1224 Remove unnecessary casts pointed out by bz.
git-svn-id: svn://10.0.0.236/trunk@189406 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-08 10:06:47 +00:00
peterv%propagandism.org
32838fc08a Fix for bug 315901 (Move RangeList and EventListenerManager hashes to nsContentUtils). r/sr=jst.
git-svn-id: svn://10.0.0.236/trunk@189306 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 14:34:10 +00:00
cbiesinger%web.de
6322c04952 bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
bzbarsky%mit.edu
1510aacc39 Push up GetPrincipal to nsINode (as GetNodePrincipal). This way all nsINodes
(content, documents, attr nodes) can return their principal as needed.
Eliminate lazy allocation of principals in nsDocument.  Bug 324600, r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@188770 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-02 20:02:34 +00:00
cvshook%sicking.cc
8d4b46ee48 Bug 324723: Make nsPropertyTable resistent against using the wrong base pointer by enforcing type safety. r/sr=jst
git-svn-id: svn://10.0.0.236/trunk@188286 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-26 23:40:49 +00:00
cvshook%sicking.cc
5fe171311b Bug 324572: Move property methods to nsINode and make nsIAttribute inherit nsINode.
r/sr=bz


git-svn-id: svn://10.0.0.236/trunk@188174 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-25 20:49:56 +00:00
bzbarsky%mit.edu
31719bf3ba Implement an nsINode interface; move some common stuff from nsIContent and
nsIDocument to nsINode.  Bug 323311, r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@187813 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-19 03:34:18 +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
roc+%cs.cmu.edu
b662160399 Bug 323230. Add FindAttrValueIn as an efficient way to look up an attribute value in a table of atoms. r=sicking,sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@187743 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-18 04:09:33 +00:00
bzbarsky%mit.edu
94e0ed0513 Make element and document RemoveChild methods share code. Bug 312522, patch by
Alex Vincent <ajvincent@gmail.com>, r=sicking, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@187484 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-12 16:33:42 +00:00
bzbarsky%mit.edu
56212b4998 Do the right thing for lookupPrefix on a default namespace. Bug 308478, r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@187154 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-08 23:31:49 +00:00
cvshook%sicking.cc
40aed54409 Bug 322570: Make LookupPrefix work even for unused namespace declarations.
r/sr=bz


git-svn-id: svn://10.0.0.236/trunk@187110 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-06 23:52:34 +00:00
cvshook%sicking.cc
36a1fa551d Bug 232639: Make nsXULElement::GetAttrNameAt actually work.
r/sr=bz


git-svn-id: svn://10.0.0.236/trunk@186756 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-30 20:12:35 +00:00
cvshook%sicking.cc
4d0919d856 Bug 296207: Optimize nsDOMAttributeMap::SetNamedItemInternal.
r=allan sr=peterv


git-svn-id: svn://10.0.0.236/trunk@186694 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-29 03:01:58 +00:00
cvshook%sicking.cc
cf43ff4e7d Bug 284950: DeCOMTaminate nsIContent::GetAttrNameAt
r/sr=bz


git-svn-id: svn://10.0.0.236/trunk@186678 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-28 21:52:39 +00:00
dbaron%dbaron.org
dfd0a1dbe2 Add ownerDocument to reachable list when needed. b=241518 r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@185732 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-06 05:50:12 +00:00
dbaron%dbaron.org
6efef3c0ad Make wrapper preservation (the mechanism that makes the GC use reachability information between certain C++ objects rather than rooting at language boundaries) use an interface (nsIDOMGCParticipant) to get reachability information. Preserve the wrappers for event handlers as long as what they are attached to is reachable (from C++ or JS) to avoid entraining event handler closures in cycles. b=241518 r=mrbkap sr=jst
git-svn-id: svn://10.0.0.236/trunk@185636 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-03 07:42:40 +00:00
cvshook%sicking.cc
34e5538159 Bug 308120: Deal better with anonymous (direct) children being moved in the DOM.
r=bz sr=bryner


git-svn-id: svn://10.0.0.236/trunk@185382 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-29 19:09:41 +00:00
bzbarsky%mit.edu
cf434cba7f Remove content ids. Bug 166637, r=sicking, sr=peterv
git-svn-id: svn://10.0.0.236/trunk@185376 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-29 16:47:18 +00:00
bzbarsky%mit.edu
916a43a789 Make ParseAttribute handle namespaced attributes too, since SVG needs to
ParseAttribute things like xlink:href.  Bug 314568, r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@185374 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-29 16:37:15 +00:00