Boris Zbarsky
20a6d96dc4
Bug 804631. Add the WebIDL API for Document. r=peterv
...
I'm not entirely happy with the XPath bits. If we had an
nsXPathEvaluator member, or if the WebIDL API were on
nsIDOMXPathEvaluator or something, all that stuff would need a lot
less code...
2012-12-22 00:27:27 -08:00
Masayuki Nakano
2455263ab2
Bug 813445 part.14 Make dom::EventListenerFlags for nsEventListenerManager r=smaug
2012-12-16 10:26:05 +09:00
Masayuki Nakano
eb6b871bcb
Bug 813445 part.1 Make widget::EventFlags and remove NS_EVENT_FLAG_TRUSTED r=roc+smaug, feedback=emk
2012-12-16 10:26:03 +09:00
Trevor Saunders
47a98e7c37
bug 819940 - remove nsISupportsArray::EnumerateForwards() r=ehsan
2012-12-10 05:27:14 -05:00
Jason Orendorff
27cfa2217b
Bug 788290 - Rewrite some XUL template tests to use DOM rather than E4X. r=enn
2012-12-10 09:02:00 -05:00
Saurabh Anand
c9e3659e16
Bug 818817 - Fix some compiler warnings, r=Ms2ger
2012-12-09 22:53:19 +05:30
Boris Zbarsky
4e84aec584
Bug 817473 part 1. Make nsIDOMXULDocument inherit from nsIDOMDocument, so that XUL documents end up with Document.prototype and Node.prototype on their proto chain. r=peterv
2012-12-06 15:21:18 -05:00
Trevor Saunders
f1b73ccb3d
bug 801466 - part 3.1 remove some prmem usage from dom/ and content/ r=mounir
2012-12-05 02:55:37 -05:00
Andrew McCreight
bf4449f2b7
Bug 792861 - Make HoldJSObjects/DropJSObjects infallible. r=smaug
2012-11-12 17:15:00 -08:00
Olli Pettay
1e72329799
Bug 811206, Fix JSHolder drop handling, part 3 (fixes), r=mccr8,khuey
...
--HG--
extra : rebase_source : 7b2726d2aa7f5764a3c4cb750e5a735728069687
2012-11-28 03:37:57 +02:00
Andrew McCreight
28e0b1694e
Bug 814453 - Eliminate NS_IMPL_CYCLE_COLLECTION_UNLINK_NATIVE_0 and NS_IMPL_CYCLE_COLLECTION_TRACE_NATIVE_BEGIN. r=smaug
2012-11-23 11:27:06 -08:00
Benoit Jacob
ec39e2a150
Bug 814444 - Remove now-useless TRAVERSE_NATIVE_BEGIN and UNLINK_BEGIN_NATIVE macros - r=mccr8
2012-11-22 12:15:38 -05:00
Ed Morley
58c3ec8021
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-11-15 16:17:36 +00:00
Olli Pettay
660783c739
Bug 749448 - Remove XTF, r=bz
2012-11-15 14:27:13 +02:00
Ryan VanderMeulen
8187210f11
Merge the last PGO-green inbound changeset to m-c.
2012-11-14 21:43:07 -05:00
Olli Pettay
4c8a07a5fd
Bug 810793 - nsXULTemplateQueryProcessorXML::GetDatasource should pass outer window to nsIXMLHttpRequest::Init, r=sicking
2012-11-13 13:03:52 +02:00
Boris Zbarsky
d23220892d
Bug 811449 part 8. Get rid of nsGenericElement. r=peterv
2012-11-14 14:10:08 -08:00
Peter Van der Beken
508194a997
Fix for bug 804950 (New DOM binding APIs for Element). r=bz.
...
--HG--
extra : rebase_source : a8691ead07dfa8ecca812396047627dc15474d83
2012-10-16 13:51:00 +02:00
Benoit Jacob
a1d7e0f511
Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 1: automatic changes - r=mccr8
2012-11-15 02:32:40 -05:00
Benoit Jacob
ee1217da86
Bug 806279 - CC macros refactoring: part 3: fold the TRAVERSE_NATIVE and AMBIGUOUS cases - r=mccr8,smaug
2012-11-15 02:32:39 -05:00
Peter Van der Beken
584658dc3e
Fix for bug 804991 (Make FromContent expect a non-null pointer and add FromContentOrNull). r=bz.
...
--HG--
extra : rebase_source : 52e1c9171d05ba034971cfa16741e12061e7335d
2012-09-26 16:17:51 +02:00
Ehsan Akhgari
894e1bca85
Merge mozilla-central into mozilla-inbound
2012-11-14 17:51:31 -08:00
Ms2ger
dd0deeb865
Merge PGO-green chanageset from inbound to m-c.
2012-11-04 10:26:52 +01:00
Ms2ger
5ffd0edacd
Bug 807410 - Part b: Pass the "GC on destruction" flag to the nsJSContext constructor; r=jst
2012-11-04 09:05:23 +01:00
Ms2ger
ca9e7e960f
Bug 807410 - Part a: Pass the global object to the nsJSContext constructor; r=jst
2012-11-04 09:04:04 +01:00
Neil Rashbrook
8cdc6abc40
Bug 664695 Improve signature of nsIConsoleService::GetMessageArray r=bsmedberg r=msucan
2012-11-03 10:59:29 +00:00
Ryan VanderMeulen
e3feaeecef
Backout 06b998c1100d (bug 664695) due to mochitest-other orange.
2012-11-02 17:12:22 -04:00
Neil Rashbrook
7464774f68
Bug 664695 Improve signature of nsIConsoleService::GetMessageArray r=bsmedberg
2012-11-02 20:07:50 +00:00
Jet Villegas
3727936e46
Bug 806068 part 2: Change in-tree usage of -moz-initial to initial. r=dholbert
2012-10-30 16:57:36 +01:00
Peter Van der Beken
efd72d6b0c
Fix for bug 778152 (Content window does not have an XMLHttpRequest property when accessed via an Xray wrapper in a subscript) - rename ProtoOrIfaceArray. r=bz.
...
--HG--
extra : rebase_source : c426270fc1ebee818629bd94dfc8d11af59bfc00
2012-10-09 20:50:27 +02:00
Matt Joras
d1fe98e6b3
Bug 798033 - Removes 'using namespace' from /content headers - r=bsmedberg
2012-10-27 13:24:04 -04:00
Phil Ringnalda
b6c07f4fe7
Back out c25bc74b7fd3 (bug 798033) for build bustage
2012-10-26 19:05:18 -07:00
Matt Joras
cc0bb2727c
Bug 798033 - Removes 'using namespace' from /content headers - r=bsmedberg
2012-10-14 00:04:51 -05:00
Bobby Holley
d7bb2e50ba
Bug 797821 - Don't pass XPCONNECT_GLOBAL_FLAGS for xbl and xul document gSharedGlobalClass. r=mrbkap
...
A lot of these flags don't make sense in this context.
2012-10-25 17:01:08 +02:00
Bobby Holley
703a9798c9
Bug 797821 - Stop making nsXBLDocumentInfo and nsXULPrototypeDocument globals with XPConnect. r=mrbkap
...
We already weren't creating a scope for them. They're generally pretty isolated
and are just used for holding functions that get cloned into other scopes.
Apparently mccr8 once found an edge from an nsXULPrototypeDocument scope into
another scope, but I don't think that should really break anything.
2012-10-25 17:01:07 +02:00
Bobby Holley
826ce1e16b
Bug 797821 - Stop passing wantXrays directly to CreateGlobalObject. r=mrbkap
...
This can happen after the fact where it needs to.
2012-10-25 17:01:07 +02:00
Bobby Holley
3b50be121c
Bug 797821 - Simplify the call signature for XPC::CreateGlobalObject. r=mrbkap
2012-10-25 17:01:07 +02:00
Bobby Holley
66202aeb25
Bug 789224 - Remove signed script security checks. r=mrbkap
2012-10-22 08:29:55 +02:00
Bobby Holley
cbd9a55d15
Bug 789224 - Remove miscellaneous UniversalXPConnect checks sprinkled throughout gecko. r=mrbkap
2012-10-22 08:29:55 +02:00
Peter Van der Beken
57adeb4354
Fix for bug 773780 (Add API for new DOM bindings for Node). r=bz.
...
--HG--
extra : rebase_source : 5dd51c4ad5274da9235c8c341b0531f234e95a91
2012-10-09 14:31:24 +02:00
Olli Pettay
032a88a9b8
Bug 801609 - Simplify popup and contextmenu handling and make the listener skippable, r=mccr8
...
--HG--
rename : content/canvas/test/test_toBlob.html => content/canvas/test/test_mozGetAsFile.html
rename : dom/base/test/test_gsp-qualified.html => dom/base/test/test_gsp-standards.html
extra : rebase_source : 8e017d2fa6ff12cfcf0b0f8a56dadd541aca16bf
2012-10-16 15:37:26 +03:00
Ms2ger
f5b72a0de2
Bug 795610 - Part d: Prepare HTMLElement.click() for WebIDL bindings; r=mounir
2012-10-06 09:19:52 +02:00
Andrew Quartey
9f926a0d71
Bug 792581 - part 10: Replace LL_SUB macro with mathematical minus operator. r=ehsan
2012-10-05 01:05:27 -04:00
Andrew Quartey
b1b8b7f76b
Bug 792581 - part 4: Replace LL_GE_ZERO macro with standard relation. r=ehsan
2012-10-03 10:13:19 -04:00
Andrew Quartey
9eed719a44
Bug 792581 - part 1: Replace LL_IS_ZERO macro with standard relation. r=ehsan
2012-10-03 10:13:18 -04:00
Ed Morley
3d3703a920
Merge mozilla-central to mozilla-inbound
2012-10-02 11:19:03 +01:00
Cameron McCormack
0dc074a5c3
Bug 795802 - Define content flags like frame state bits. r=bz
...
--HG--
extra : rebase_source : 4d67320ada060e29644ab6c070a1d5154b304d96
2012-10-02 10:52:06 +10:00
Peter Van der Beken
5d0ed87cc3
Bug 794582 - Rename nsINode::GetSlots() to nsINode::Slots() and remove null-checks; r=mounir
2012-08-11 00:27:28 +02:00
Ms2ger
ddc2dbbc65
Bug 793116 - Remove nsISupports argument to xpc_CreateGlobalObject; r=bholley
2012-10-02 10:24:11 +02:00
Kyle Huey
e5eb83ac5a
Bug 760331: Coalesce data for inline style across nodes. r=bz
...
This patch enables sharing of an nsAttrValue's MiscContainer between nodes for style rules. MiscContainers of type eCSSStyleRule are now refcounted (with some clever struct packing to ensure that the amount of memory allocated for MiscContainer remains unchanged on 32 and 64 bit). This infrastructure can be used to share most MiscContainer types in the future if we find advantages to sharing other types than just eCSSStyleRuley. A cache mapping strings to MiscContainers has been added to nsHTMLCSSStyleSheet. MiscContainers can be shared between nsAttrValues when one nsAttrValue is SetTo another nsAttrValue or when there is a cache hit in this cache. This patch also adds the ability to tell a style rule that it belongs to an nsHTMLCSSStyleSheet, with appropriate accessor functions to separate that from the existing case of belonging to an nsCSSStyleSheet.
The primary use case is to reduce memory use for pages that have lots of inline style attributes with the same value. This can happen easily with large pages that are automatically generated. An (admittedly pathological) testcase in Bug 686975 sees over 250 MB of memory savings with this change. Reusing the same MiscContainer for multiple nodes saves the overhead of maintaining separate copies of the string containing the serialized value of the style attribute and of creating separate style rules for each node. Eliminating duplicate style rules enables further savings in layout through style context sharing. The testcase sees the amount of memory used by style contexts go from over 250 MB to 10 KB.
Because the cache is based on the text value of the style attribute, it will not handle attributes that have different text values but are parsed into identical style rules. We also do not attempt to share MiscContainers when the node's base URI differs from the document URI. The effect of these limitations is expected to be low.
2012-09-30 09:40:24 -07:00