Commit Graph

178 Commits

Author SHA1 Message Date
Jonas Sicking
7e74d1ba6f Bug 659539 Part 2: Create nsINode::NodeType/NodeName/LocalName and make them non-virtual. r=bz 2011-06-14 00:56:49 -07:00
Jonas Sicking
f653bfb946 Bug 659053 Part 2: Implement a faster non-recursive Node.isEqualNode directly on nsINode. r=peterv. Fixes were r=bent 2011-06-14 00:56:48 -07:00
Jonas Sicking
cc4977777e Bug 659053 Part 1: Merge nsIDOM3Node into nsIDOMNode. Also removes Node.getFeature. r=peterv 2011-06-14 00:56:48 -07:00
Ms2ger
c665a4e4c0 Bug 664123 - Backout bugs 659053 and 659539 (changesets 9c49f69d8bab-1b11c64ffcdf) 2011-06-14 16:25:51 +02:00
Jonas Sicking
91ddf8ed15 Bug 659539 Part 2: Create nsINode::NodeType/NodeName/LocalName and make them non-virtual. r=bz 2011-06-14 00:56:49 -07:00
Jonas Sicking
6279797e1c Bug 659053 Part 2: Implement a faster non-recursive Node.isEqualNode directly on nsINode. r=peterv 2011-06-14 00:56:48 -07:00
Jonas Sicking
17ec46a39a Bug 659053 Part 1: Merge nsIDOM3Node into nsIDOMNode. Also removes Node.getFeature. r=peterv 2011-06-14 00:56:48 -07:00
Jonas Sicking
b35fd6c424 Bug 659530: Clean up and remove unused code that we no longer need with the safer mutation events implementation. r=smaug 2011-05-25 10:58:23 -07:00
Jonas Sicking
0e17979856 Bug 650493 Part 1: Simplify mutation events by firing all but DOMNodeRemoved off of script runners, and DOMNodeRemoved before starting any update batches or aquiring any state. r=smaug/peterv 2011-05-09 12:33:03 -07:00
Craig Topper
ceba599007 Bug 585255 - Remove nsTreeWalker usage from nsFocusManager. r=sicking 2011-04-11 19:46:59 -07:00
David Zbarsky
aa301d629c Bug 583514 - implement click and accesskey for all HTML elements r=smaug 2011-04-11 18:56:37 +02:00
Boris Zbarsky
65b7797520 Bug 581177 followup. Remove bogus comment and rev iids. 2011-04-08 00:02:10 -07:00
Boris Zbarsky
a338fbe2e2 Bug 581177 part 8. Compress the flags so it's clear what's free. r=sicking 2011-04-07 19:29:50 -07:00
Boris Zbarsky
a63405c419 Bug 581177 part 7. Make 'may have contenteditable attr' into a boolean flag. r=sicking 2011-04-07 19:29:50 -07:00
Boris Zbarsky
f0517db35a Bug 581177 part 6. Make 'has name' into a boolean flag. r=sicking 2011-04-07 19:29:50 -07:00
Boris Zbarsky
8578808ee1 Bug 581177 part 5. Make 'may have style' into a boolean flag. r=sicking 2011-04-07 19:29:50 -07:00
Boris Zbarsky
2d8a1be03f Bug 581177 part 4. Make 'has id' into a boolean flag. r=sicking 2011-04-07 19:29:50 -07:00
Boris Zbarsky
a3b8ef7c1e Bug 581177 part 3. Make IsElement() use a boolean flag. r=sicking 2011-04-07 19:29:49 -07:00
Boris Zbarsky
257c275219 Bug 581177 part 2. Separate mParent from the flags it used to cohabit with. r=sicking 2011-04-07 19:29:49 -07:00
Boris Zbarsky
038d06b0fa Bug 581177 part 1. Separate mFlags and mSlots into separate members. Stop storing flags in slots. r=sicking 2011-04-07 19:29:49 -07:00
Ehsan Akhgari
fc408ed65e Backout changeset 88eb5b5bb5d2 (bug 583514) because of reftest orange 2011-04-02 07:55:52 -04:00
David Zbarsky
ca29061d7e Bug 583514 - implement click and accesskey for all HTML elements r=smaug 2011-04-01 18:50:58 -04:00
Chris Jones
28d67e6217 Bug 550611: Make nsTArray optionally infallible. sr=bsmedberg a=blocking
--HG--
rename : xpcom/glue/nsTArray.cpp => xpcom/glue/nsTArray-inl.h
2010-11-08 20:48:59 -06:00
Peter Van der Beken
1de207af3c Fix for bug 565742 (too much QIing/Addrefing/Releasing under NativeInterface2JSObject). r=smaug, a=bsmedberg. 2010-07-13 17:44:51 +02:00
Markus Stange
2ea78354c5 Bug 572689 - Make nsSVGRenderingObservers observe elements instead of frames. r=roc 2010-08-13 15:31:31 +02:00
Olli Pettay
abf43f852b Bug 566466 - speed up createElement(), r=jst, peterv 2010-07-23 12:49:57 +03:00
Boris Zbarsky
f4cb58ddb5 Bug 479655 part 1.5. Free up two more element bits. r=jst 2010-06-18 12:23:04 -04:00
Ms2ger
991ef5697d Bug 566776 - Some nsINode methods defined in nsGenericElement.cpp return nsnull as an nsresult. r=jst 2010-05-20 10:41:00 -04:00
Jonas Sicking
0a93bbb190 Bug 564863: Speed up id/name handling by letting elements register/unregister themselves. r=smaug 2010-06-03 18:09:20 -07:00
Jonas Sicking
c46348bf73 Bug 564591: Speed up BindToTree/UnbindFromTree by only doing accesskey related work if the accesskey attribute is set. r=smaug 2010-06-03 18:08:57 -07:00
Boris Zbarsky
618860a145 Bug 564979. Get rid of nsINode::GetSibling and just use GetNext/PreviousSibling instead. r=peterv, sr=sicking 2010-05-17 14:18:25 -04:00
Boris Zbarsky
9f46f37b84 Backed out changeset 90d627f2471e (bug 564979) because it broke mochitests. 2010-05-17 14:59:49 -04:00
Boris Zbarsky
f830440dab Bug 564979. Get rid of nsINode::GetSibling and just use GetNext/PreviousSibling instead. r=peterv, sr=sicking 2010-05-17 14:18:25 -04:00
L. David Baron
ade6177e17 Make the 'noappend' selector optimizations only restyle later siblings, which is what they need to do. (Bug 534804) r=bzbarsky 2010-05-14 22:01:46 -07:00
L. David Baron
a464130609 Additional restyling is needed for :empty + E and :empty ~ E selectors. (Bug 534804) r=bzbarsky 2010-05-14 22:01:45 -07:00
Michael Kohler
9397418412 Bug 506041 Part 2: Correct misspellings in source code
r=timeless
2010-05-13 14:19:50 +02:00
Doug Turner
2225a94f11 Bug 564402 - slots #define in Qt, prevents Qt builds on trunk. r/sr=jst
--HG--
extra : rebase_source : 5f7ac6c449ea03e4be8ab6834d3f1880cb7d9c80
2010-05-11 16:32:17 -07:00
Boris Zbarsky
6d68f7887f Bug 564432 part 2. Give nsINode a first-child pointer r=jst, sr=sicking 2010-05-10 21:12:34 -04:00
Boris Zbarsky
2a6505321c Bug 564432 part 1. Give nsINode next/previous sibling pointers. r=jst, sr=sicking 2010-05-10 21:12:33 -04:00
Boris Zbarsky
4625aac0dd Bug 560503. Don't check for mutation observer uniqueness; callers should handle that. r=sicking 2010-05-05 14:18:03 -04:00
Peter Van der Beken
d062d2ec2d Part 9 of fix for bug 560273 (Stop using DOM tearoffs from quickstubs) - use nsNode3Tearoff for all nodes. r=jst.
--HG--
extra : rebase_source : 4f073ae38036328091d2d4cf1e0ffbac2a06e98b
2010-04-19 17:41:37 +02:00
Peter Van der Beken
b480e94b8d Part 8 of fix for bug 560273 (Stop using DOM tearoffs from quickstubs) - add nsINode::Get/SetTextContent. r=jst.
--HG--
extra : rebase_source : b4d9121b6a883d8c5f3ed526b630f2facc94a21e
2010-04-19 17:41:33 +02:00
Peter Van der Beken
60b38d0d40 Part 7 of fix for bug 560273 (Stop using DOM tearoffs from quickstubs) - add nsINode::IsEqualNode/CompareDocumentPosition/IsSameNode. r=jst.
--HG--
extra : rebase_source : d4722a28e8c913dcb6f9a1e7bf13261a12b60525
2010-04-19 17:40:17 +02:00
Peter Van der Beken
68600cb34a Part 6 of fix for bug 560273 (Stop using DOM tearoffs from quickstubs) - add nsINode::GetFeature. r=jst.
--HG--
extra : rebase_source : 7b2ef182466615e7b244f7c5e55f327855b3cc6a
2010-04-19 17:40:16 +02:00
Peter Van der Beken
2d92228c9a Part 5 of fix for bug 560273 (Stop using DOM tearoffs from quickstubs) - add nsIDOM3Node namespace-related methods to nsINode. r=jst.
--HG--
extra : rebase_source : 9f4680ed3d8dec7001503c57f9d4bede74392b2f
2010-04-19 17:40:16 +02:00
Peter Van der Beken
04e42800d3 Part 3 of fix for bug 560273 (Stop using DOM tearoffs from quickstubs) - add nsINode::Get/SetUserData. r=jst.
--HG--
extra : rebase_source : a0f3ab12ed0f02dccf4d848fc879ee7c6497986a
2010-04-19 17:40:15 +02:00
Peter Van der Beken
abd7f913e0 Part 1 of fix for bug 560273 (Stop using DOM tearoffs from quickstubs) - add nsINode::GetBaseURI. r=sicking.
--HG--
extra : rebase_source : 5a07f12d9d13d92b796fd5f2cb182b069c3f87bf
2010-04-19 17:40:15 +02:00
Boris Zbarsky
5e646b58c9 Bug 562688 part 15. Remove the eELEMENT bit. r=jst 2010-04-30 09:12:06 -04:00
Boris Zbarsky
04027a9479 Bug 562688 part 4. Change GetRootContent and the like to return Elements. r=jst, sr=sicking 2010-04-30 09:12:05 -04:00
Boris Zbarsky
350834e088 Bug 562688 part 2. Create a mozilla::dom::Element class sitting between nsGenericElement and nsIContent. r=jst, sr=sicking 2010-04-30 09:12:05 -04:00
Boris Zbarsky
405d564c49 Bug 562688 part 1. Add a new non-virtual IsElement API on nsINode. r=jst, sr=sicking 2010-04-30 09:12:04 -04:00
Peter Van der Beken
6fe7a598df Fix for bug 558973 ("ASSERTION: Nodes that are not documents, document fragments or elements can't be parents!"). r=jst.
--HG--
extra : rebase_source : 6d9f76e94457823bb425f546053f4d24e80aec5c
2010-04-15 10:28:57 +02:00
Robert O'Callahan
a982d52092 Bug 534566. Use separate nsPropertyTables for different categories so we don't pollute the property name list with unrelated names. r=sicking 2010-04-23 14:41:38 +12:00
Timothy Nikkel
3f76f48e84 Bug 502937. Part 2. Add bits to nsINode.h. r=bzbarsky sr=sicking 2010-01-18 03:26:28 -06:00
Craig Topper
771eede254 Bug 557416: Remove unnecessary includes and forward declarations of nsPresContext. r=roc 2010-04-10 16:10:12 -04:00
Robert Longson
c6f98571f9 Bug 553053 - Should not create frames for SVG animation elements, it interferes with clipPath validation and is inefficient. r=dholbert,sr=roc 2010-03-19 11:17:49 +00:00
Peter Van der Beken
75418d48ea Rev IID (follow-up from bug 540848).
--HG--
extra : rebase_source : 193c4ec222412dc014b850002078d060ec0227e0
2010-03-18 19:26:30 +01:00
Peter Van der Beken
3e3654ffca Fix for bug 540848 (Add appendChild/insertBefore/replaceChild/removeChild on nsINode). r=bz.
--HG--
extra : rebase_source : 4550ff196ab5fd1acbc72e7c94b7a31d073ae5dd
2010-03-17 16:06:19 +01:00
Mike Kristoffersen
abdb2aa82c Build bustage on Qt due to macro definition of malloc, realloc, etc. Most of this is just moving Qt #includes around. r=dougt
--HG--
extra : rebase_source : 9734e9e68754a6fc45bddbdc60bb5e898bb8cdb2
2010-03-04 13:51:42 -08:00
Boris Zbarsky
1ca5801f4b Bug 500882 part 8. Remove the SetMayHaveFrame/MayHaveFrame vestiges. r=smaug 2009-12-24 16:20:06 -05:00
Masayuki Nakano
13ffca5258 Bug 42676 Can't drag to extend selection out of blocks with overflow:hidden/auto/scroll r=Olli 2009-12-12 13:25:21 +09:00
David Zbarsky
8d8553ee41 Bug 488249. Replace IsNodeOfType(eHTML) checks with namespace checks. r+sr=jst 2009-08-24 16:02:07 -04:00
Karl Tomlinson
2d82dcbdc4 b=513802 type qualifiers ignored on function return type in nsINode::ChildIterator r=bz
--HG--
extra : rebase_source : da95ee41a254aea7356d8c86a61d0ba38b7e07e6
2009-09-03 08:48:41 +12:00
Boris Zbarsky
36622c6995 Backed out changeset 4aa19414e651 (bug 488249) to fix test orange.
--HG--
extra : rebase_source : ae1c0155ec32b0887eff27ded77c6ba2b37dda64
2009-08-24 20:51:57 -04:00
David Zbarsky
932e28482f Bug 488249. Replace IsNodeOfType(eHTML) checks with namespace checks. r+sr=jst 2009-08-24 16:02:07 -04:00
Peter Van der Beken
ca8ccf47e0 Fix for bug 482788 (Lightweight DOM wrappers). r=jst, sr=mrbkap. 2009-05-12 22:20:42 +02:00
Henri Sivonen
af98547431 Bug 487949 - Land HTML5 parser on trunk preffed off r=mrbkap, sr=jonas 2009-06-29 00:44:22 +02:00
Johnny Stenback
eb2ed73403 Backed out changeset 168dd0eb7283 2009-06-28 11:47:11 -07:00
Henri Sivonen
28fcb8397f Merge trunk into HTML5 repo 2009-06-26 18:22:48 +03:00
Olli Pettay
6ddf70029c Bug 388422 - Avoid checks for editability in BindToTree, r+sr=peterv
--HG--
extra : rebase_source : 06eae0083f9b620e6a7ee2fe63a22c974b29608c
2009-06-23 15:57:56 +03:00
Henri Sivonen
54e806273c Bug 484988 - Make HTML5 parser-performed removals notify but not fire mutation events 2009-05-28 20:42:26 +03:00
Olli Pettay
e64efde796 Bug 484775 - DocumentFragments and Attribute nodes should expose nsIDOMEventTarget to JS, r+sr=peterv
--HG--
extra : rebase_source : 7bce078904782a5a907eebbbff7b74a905cfa8c1
2009-05-07 16:59:51 +03:00
Olli Pettay
fc5f3a87aa backout bug484775 2009-05-07 10:19:06 +03:00
Olli Pettay
d9072725ae Bug 484775 - DocumentFragments and Attribute nodes should expose nsIDOMEventTarget to JS, r+sr=peterv
--HG--
extra : rebase_source : 9c6f8f9d3cd1283adb7b69b93440f7da01924326
2009-05-07 09:31:04 +03:00
Blake Kaplan
54734b9d0b Bug 475864 - Move native anonymous content checks into a wrapper so that quickstubs don't sidestep them. r=jst sr=bzbarsky 2009-04-23 00:21:22 -07:00
Boris Zbarsky
62f2010d94 Bug 485808. Create an iterator class to do forward iteration over the result of GetChildArray(). r+sr=sicking 2009-04-09 21:36:41 -04:00
Arpad Borsos
8dc04b2fe9 Bug 474369 - get rid of nsVoidArray, content part; r=jwatt, sr=sicking 2009-03-20 09:15:35 +01:00
Boris Zbarsky
a1f888815b Bug 476245. Keep better track of our anonymous content. r=smaug, sr=jst 2009-02-24 13:39:09 -05:00
L. David Baron
1e283adeaa Backed out changeset a328b5ae57e0 (bug 476245) for causing failures of test_videocontrols.html across platforms (although Linux hasn't cycled yet). 2009-02-24 13:38:35 -08:00
Boris Zbarsky
58d51f648c Bug 476245. Keep better track of our anonymous content. r=smaug, sr=dbaron 2009-02-24 13:39:09 -05:00
Chris Pearce
9375bb735b Bug 462455. Initiate media load when appending <source> child elements to media elements. r=doublec,sr=roc
--HG--
extra : rebase_source : b9bca050ef528705c08988d3677bf9bd8c865f33
2009-02-16 14:05:28 +13:00
Boris Zbarsky
7011c1e34c Bug 307394 part 1. Create a non-COM way to get at XBL child nodes, and put an IndexOf() method on nsINodeList. r+sr=peterv 2009-01-29 14:46:18 -05:00
Peter Van der Beken
78fa6325a2 Fix for bug 466224 (Make quickstubs call nsINode/nsINodeList methods). r/sr=jst. 2009-01-02 18:00:18 +01:00
Boris Zbarsky
882c93dc0b Bug 454821. Better signature for GetChildArray. r+sr=sicking 2008-12-03 09:02:03 -05:00
Peter Van der Beken
c39cb1e482 Fix for bug 457022 (Cache DOM wrappers in the DOM object). r/sr=jst. 2008-11-13 17:54:52 +01:00
Peter Van der Beken
2b8cf3c2d4 Backed out changeset ba895ab8cbe7 to fix orange 2008-11-03 16:28:50 +01:00
Peter Van der Beken
28ba94cca8 Fix for bug 457022 (Cache DOM wrappers in the DOM object). r/sr=jst. 2008-11-03 14:49:53 +01:00
Peter Van der Beken
e743beb9c4 Fix for bug 457897 (Remove QI on 'this' object when calling from JS to C++). Patch by jorendorff and me, r/sr=jst. 2008-11-03 11:31:47 +01:00
Boris Zbarsky
284e2ff6c9 Bug 454317. Improve GetClasses to not do virtual calls when not needed. r=smaug, sr=jst 2008-09-10 23:22:20 -04:00
Boris Zbarsky
5c5b4e41fc Add a faster method for iterating the nsIContent children of an
nsINode if we know that there will be no DOM mutations of any sort
during the iteration.  Bug 429744, r+sr=jst
2008-07-11 16:42:19 -04:00
jonas@sicking.cc
c052f989a1 Bug 423355: Never fire mutation events on native-anon content. Also includes fix for nsIContent::IsInNativeAnonymousSubtree. Patch by Smaug. r/sr=sicking a=beltzner 2008-04-11 15:44:48 -07:00
masayuki@d-toybox.com
5f50f3f99e Bug 348341 "Reverse conversion" doesn't work by Kotoeri(Japanese input). r=josh+peterv+roc, sr=roc, b1.9=pavlov 2008-02-19 23:40:04 -08:00
dbaron@dbaron.org
cafaf208a1 Fix handling of dynamic changes for advanced CSS selectors (and avoid the cost of doing so in the normal case). b=401291, 75386, 98997, 229915, 404418 (blocking1.9+) r+sr=bzbarsky a=blocking1.9+ on 404418 2008-02-18 22:17:07 -08:00
dwitte@stanford.edu
d9595c6e9e Bug 414894 - Remove content arena. r=smaug, sr=sicking, a=schrep 2008-02-02 15:41:24 -08:00
roc+@cs.cmu.edu
bc08ac141a Bug 355548. Clean up MathML's font handling by moving most of it to the style system. Creates nsMathMLElement to put functionality there. Tightens MathML attribute parsing and introduces full support for 'scriptsizemultiplier', 'scriptminsize' and their interactions with CSS font-size. r+sr=dbaron 2008-01-09 01:38:28 -08:00
roc+@cs.cmu.edu
09582c48ae backing out bug 355548 due to test failures 2008-01-08 15:11:27 -08:00
roc+@cs.cmu.edu
d95bd7253c Fixing bustage 2008-01-08 14:49:13 -08:00
roc+@cs.cmu.edu
459c356854 Bug 355548. Clean up MathML's font handling by moving most of it to the style system. Creates nsMathMLElement to put functionality there. Tightens MathML attribute parsing and introduces full support for 'scriptsizemultiplier', 'scriptminsize' and their interactions with CSS font-size. r+sr=dbaron 2008-01-08 14:36:46 -08:00
neil@parkwaycc.co.uk
dafb9ad144 Make XUL elements really native anonymous b=410119 r=smaug sr+a=sicking 2008-01-04 03:24:41 -08:00
tor@cs.brown.edu
168385db14 Bug 390379 - Implement feImage. p=tor,longsonr r=longsonr, sr=roc a=dsicore 2008-01-02 12:49:13 -08:00