Commit Graph

4337 Commits

Author SHA1 Message Date
Boris Zbarsky
224115946f Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent
In the new setup, all per-interface DOM binding files are exported into
mozilla/dom.  General files not specific to an interface are also exported into
mozilla/dom.

In terms of namespaces, most things now live in mozilla::dom.  Each interface
Foo that has generated code has a mozilla::dom::FooBinding namespace for said
generated code (and possibly a mozilla::bindings::FooBinding_workers if there's
separate codegen for workers).

IDL enums are a bit weird: since the name of the enum and the names of its
entries all end up in the same namespace, we still generate a C++ namespace
with the name of the IDL enum type with "Values" appended to it, with a
::valuelist inside for the actual C++ enum.  We then typedef
EnumFooValues::valuelist to EnumFoo.  That makes it a bit more difficult to
refer to the values, but means that values from different enums don't collide
with each other.

The enums with the proto and constructor IDs in them now live under the
mozilla::dom::prototypes and mozilla::dom::constructors namespaces respectively.
Again, this lets us deal sanely with the whole "enum value names are flattened
into the namespace the enum is in" deal.

The main benefit of this setup (and the reason "Binding" got appended to the
per-interface namespaces) is that this way "using mozilla::dom" should Just
Work for consumers and still allow C++ code to sanely use the IDL interface
names for concrete classes, which is fairly desirable.

--HG--
rename : dom/bindings/Utils.cpp => dom/bindings/BindingUtils.cpp
rename : dom/bindings/Utils.h => dom/bindings/BindingUtils.h
2012-05-03 00:35:38 -04:00
Bobby Holley
b7e05a0784 Bug 750859 - remove unused (or seldom-used) PrivilegeManager functions. r=bz 2012-05-02 23:57:34 +02:00
Masatoshi Kimura
c0d9bc2d8d Bug 750023 - Add a null check in nsXMLHttpRequest::CreatePartialBlob. r=smaug 2012-04-30 15:49:15 -07:00
Andrew McCreight
c7b15dad64 Bug 737075 - unmark gray strongly held observers implemented in JS. r=bsmedberg, smaug 2012-04-30 12:01:11 -07:00
Robert O'Callahan
1fe7590d18 Bug 664918. Part 0: Refactor nsMediaCache's handling of principals into a helper method in nsContentUtils. r=bzbarsky 2012-04-30 15:11:00 +12:00
Ryan VanderMeulen
b7a26726b2 Merge m-c to m-i 2012-04-29 16:35:05 -04:00
Ed Morley
0183a7123f Merge mozilla-central to mozilla-inbound 2012-04-27 17:57:52 +01:00
Aryeh Gregor
5ac3b1b2c3 Bug 748725 - nsINode::GetParentElement() should return dom::Element*; r=smaug 2012-04-27 16:21:12 +03:00
Ed Morley
fb66bff90a Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-04-27 12:52:26 +01:00
Olli Pettay
8ddef242ff Backout Bug 747675 to see if it has caused startup crashes 2012-04-27 13:37:55 +03:00
Phil Ringnalda
fe946c3539 Merge m-c to m-i 2012-04-26 21:40:59 -07:00
Olli Pettay
5bb9c161f6 Bug 747675, try to decrease max forgetSkippable times, r=mccr8 2012-04-25 16:43:18 +03:00
Ed Morley
eb2b16513c Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-04-26 13:46:02 +01:00
Kyle Huey
e87571c44e Merge m-i to m-c. 2012-04-25 20:22:53 -07:00
Justin Lebar
736f94b4ef Bug 714861 - Run <iframe mozbrowser> in a separate process (disabled by default). r=cjones,bz,tn,smaug 2012-04-25 12:35:58 -04:00
Ed Morley
2666b058b1 Backout 949cb1977ef9 (bug 714861) for build bustage 2012-04-25 16:51:31 +01:00
Justin Lebar
e59845cd83 Bug 714861 - Run <iframe mozbrowser> in a separate process (disabled by default). r=cjones,bz,tn,smaug 2012-04-25 11:29:28 -04:00
Olli Pettay
083b3ec440 Bug 740063 - Add nsINode::AsDOMNode(), r=jst
--HG--
extra : rebase_source : a838243c11e212ec419df1dd1a219e955c4edc2d
2012-04-25 16:47:30 +03:00
Olli Pettay
035e6ba78f Bug 747675, try to decrease max forgetSkippable times, r=mccr8
--HG--
extra : rebase_source : 1378eaedd2c24ec8ccb37506d71858087925bf10
2012-04-25 16:43:18 +03:00
Aryeh Gregor
874f428261 Bug 702948 - Make Range.detach() a no-op; r=smaug 2012-04-25 15:03:48 +03:00
Masayuki Nakano
e089b336f8 Bug 630811 part.2 Replace nsInputEvent::isShift, nsInputEvent::isControl, nsInputEvent::isAlt and nsInputEvent::isMeta r=smaug 2012-04-25 12:00:02 +09:00
Ehsan Akhgari
c7d143b9fa Merge mozilla-central into mozilla-inbound 2012-04-24 21:29:44 -04:00
Aryeh Gregor
d9fb0a3314 Bug 480647 part 2 - Move ParseLegacyFontSize to nsContentUtils so editor/ can use it; r=bz 2012-04-24 13:57:23 +03:00
Ed Morley
352ceec39d Merge from mozilla-central 2012-04-24 11:46:16 +01:00
Aryeh Gregor
c7d23199c4 Bug 599983 part 2 - Don't emit or process _moz_dirty more than necessary; r=ehsan,bz 2012-04-24 09:06:11 +03:00
Serge Gautherie
0de2062243 Bug 744663. (Cv1) Use 'test' pre instead of redundant 'log' pre, Improve on-screen logging. r=smaug.
(a=test-only)
2012-04-24 03:02:33 +02:00
Serge Gautherie
d5db47c735 Bug 744663. (Bv1) Inline finishWSTest(), Use executeSoon() between sub-tests, Improve message contents, Receive "end" messages too, Add an additional forcegc(), Nits. r=smaug.
(a=test-only)
2012-04-24 03:01:35 +02:00
Serge Gautherie
57059c57c4 Bug 744663. (Av1) Improve documentation and logs, Nits. r=smaug.
(a=test-only)
2012-04-24 03:00:43 +02:00
Ehsan Akhgari
fec480dc6c Merge mozilla-central into birch 2012-04-22 16:10:35 -04:00
Ehsan Akhgari
f46cd86f86 Bug 747516 - Admit mozilla::dom::Link into a weight loss program; r=bz 2012-04-20 17:48:54 -04:00
Phil Ringnalda
017e6a2601 Back out dd82458147fd (bug 714861) for mochitest-3 failures and Linux mochitest-chrome leaks 2012-04-19 20:06:34 -07:00
Justin Lebar
ceda947d1e Bug 714861 - Run <iframe mozbrowser> in a separate process (disabled by default). r=cjones,bz,tn,smaug 2012-04-20 09:54:43 +10:00
Nicholas Nethercote
76a872e30a Bug 747803 - Remove NS_SIZE_IN_HEAP. r=bz. 2012-04-19 14:15:23 +10:00
David Keeler
42c3843cfa Bug 743429 - channelType can also be binary/octet-stream in nsObjectLoadingContent::OnStartRequest. r=joshmoz 2012-04-11 15:38:43 -07:00
Ehsan Akhgari
54b7d07b21 Merge mozilla-central and mozilla-inbound; a=me 2012-04-18 16:26:35 -04:00
Jared Wein
f13f9d18eb Bug 711618 - Platform changes for click-to-play permissions. r=josh a=blassey 2012-04-18 11:40:55 -07:00
Ed Morley
28113eace9 Merge last PGO-green changeset of mozilla-inbound to mozilla-central a=merge 2012-04-17 17:47:09 -07:00
Olli Pettay
7fb32d1337 Bug 743178, CORS may keep XHR alive too long, r=bz, a=tracking-firefox14+ 2012-04-17 23:55:40 +03:00
Daniel Holbert
c63a29715b Bug 744464: Fix incorrect bounds-check of unsigned value in nsPlainTextSerializer::AppendElementEnd. r=smaug 2012-04-17 09:55:50 -07:00
Henri Sivonen
e1d2b4b167 Bug 744366 - Assert about old readyState before readyState transitions. r=bzbarsky. 2012-04-17 09:41:49 +03:00
Aryeh Gregor
9c718775c7 Bug 702948 - Add telemetry to count how many ranges are detached; r=smaug 2012-04-17 17:36:22 +03:00
Tanvi Vyas
0a66ad886a bug 570505 - fix csp to avoid creating strings from URIs and un-hose test_bug558431. r=dveditz 2012-04-17 06:16:05 -07:00
David Keeler
1db5141197 Bug 739575 - Prioritize click-to-play over alternate content in nsObjectLoadingContent::GetPluginSupport. r=josh 2012-04-26 16:25:21 -07:00
Daniel Holbert
66f34b8da9 Bug 749229: Remove unnecessary assertion about unsigned value being >=0, in nsEventSource::SetReconnectionTimeout. r=smaug 2012-04-26 09:42:28 -07:00
Masatoshi Kimura
f17f15dabb Bug 745498 - Add testcases for DOM4 exception types. r=sicking 2012-04-26 09:42:26 -07:00
David Anderson
38bfcb0aba Remove simple JS_FrameIterator use from content, DOM, and caps (bug 744617, r=mrbkap).
--HG--
extra : rebase_source : 003a5285b549845d47c9298606d737620db5bb3d
2012-04-16 12:30:00 -07:00
Josh Aas
ea708e3e6b Bug 745241: Clean up some plugin stream functions. r=bsmedberg 2012-04-15 17:34:01 -04:00
Ms2ger
d460ea9808 Bug 743438 - Move some style rule functions from nsIContent to Element; r=mounir sr=bz 2012-04-14 15:09:19 +02:00
Ms2ger
f58f1b50e0 Bug 742837 - Remove dead code and cleanup around nsDOMScriptObjectFactory; r=bz 2012-04-14 15:03:16 +02:00
Ms2ger
2523b4992f Bug 688415 - Outparamdel nsDocument::GetRadioGroup; r=volkmar 2012-04-14 14:57:06 +02:00