Andrew McCreight
81b1d1c977
Bug 1447849 - Eliminate the anonymous union from XPTTypeDescriptor. r=njn
...
For bug 1438688, I need to statically initialize all of the data types
in xpt_struct.h. It turns out that the approach I was using for unions
is C99 and not C++. While for some reason Clang and GCC are okay with
that, MSVC is not.
One of the unions is a gnarly anonymous union in
XPTTypeDescriptor. However, every arm of this union is either 1 or 2
uint8_t, so I think it is reasonable to eliminate the union and
replace it with two fields, mData1 and mData2. I've fixed up the
places that read this data to use accessor methods with nice asserts
about the tag on the variant, so if anything I think that part is
nicer.
The code in xpt_struct.cpp that writes to this data is maybe less
nice, but I'm deleting it in bug 1438688 so I think that's okay. We
also lose some detail in the comments about the relationship between
what is stored in memory compared to what is stored on disk, but I
think that's okay, too.
MozReview-Commit-ID: DGi19f8HnMi
--HG--
extra : rebase_source : e3535ecb3d7f02bdb643df153e8aba3e106d9104
2018-03-21 16:35:55 -07:00
Boris Zbarsky
35d4bc91ec
Bug 1444143 part 13. Remove nsIFrameLoader. r=mystor
...
MozReview-Commit-ID: 4LG8nIePsMH
2018-03-21 22:43:17 -04:00
Peter Van der Beken
f5754d679a
Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
...
--HG--
extra : rebase_source : 5911f91bd7a63cd3603494e087e3858bd0527500
2018-03-01 20:19:56 +01:00
Boris Zbarsky
837dc7eaaa
Bug 1446711 part 8. Get rid of nsIDOMMouseEvent. r=qdot
...
MozReview-Commit-ID: 2FK1MA4LGZj
2018-03-20 00:16:07 -04:00
Boris Zbarsky
1a7c5067ca
Bug 1446851. Get rid of nsIDOMWheelEvent. r=qdot
...
We can't include WheelEventBinding.h in MouseEvents.h because that produces
this include loop:
WheelEventBinding.h -> MouseEventBinding.h -> UIEventBinding.h ->
nsGlobalWindow.h -> nsGlobalWindowInner.h -> nsRefreshDriver.h ->
AnimationEventDispatcher.h -> AnimationComparator.h -> Animation.h ->
EffectCompositor.h -> PseudoElementHashEntry.h -> Element.h ->
PointerEventHandler.h -> MouseEvents.h -> WheelEventBinding.h
MozReview-Commit-ID: 5KNwH69aJYW
2018-03-20 00:16:05 -04:00
Boris Zbarsky
5f74b75e04
Bug 1446850. Get rid of nsIDOMMouseScrollEvent. r=qdot
...
MozReview-Commit-ID: ZT9E3Fhtw0
2018-03-19 15:50:56 -04:00
Boris Zbarsky
d05e564049
Bug 1446710. Get rid of nsIDOMXULCommandEvent. r=qdot
...
MozReview-Commit-ID: C2C6oWtagG3
2018-03-19 15:50:37 -04:00
Boris Zbarsky
5c19641a68
Bug 1446709. Get rid of nsIDOMScrollAreaEvent. r=qdot
...
MozReview-Commit-ID: IXixthbqXqM
2018-03-19 15:50:22 -04:00
Boris Zbarsky
5b34d749e4
Bug 1446708. Get rid of nsIDOMFocusEvent. r=qdot
...
MozReview-Commit-ID: ChTQpN6EzdC
2018-03-19 15:50:19 -04:00
Boris Zbarsky
2f66e620e3
Bug 1446533
part 12. Remove nsIDOMCharacterData. r=mystor
...
MozReview-Commit-ID: KXex3Rjcire
2018-03-19 15:47:42 -04:00
Boris Zbarsky
b990bb4bdb
Bug 1446599
part 4. Remove nsIDOMProcessingInstruction. r=mystor
...
MozReview-Commit-ID: EZVcDlMO3ev
2018-03-19 15:15:40 -04:00
Boris Zbarsky
4fa4d2a7f5
Bug 1446598 part 2. Get rid of nsIDOMComment. r=mystor
...
MozReview-Commit-ID: GGXPQnlwuUM
2018-03-19 15:15:39 -04:00
Boris Zbarsky
46cdbdc51b
Bug 1433566 part 13. Remove nsIDOMText. r=mystor
...
MozReview-Commit-ID: DvaZ96j5exf
2018-03-19 15:15:39 -04:00
Bogdan Tara
7eb4cdd58d
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-03-17 12:34:09 +02:00
Boris Zbarsky
4fbe59c404
Bug 1445417 part 4. Remove nsIDOMDragEvent. r=mystor
...
MozReview-Commit-ID: 6hQ7mHLaLcx
2018-03-16 22:25:25 -04:00
Adrian Wielgosik
87a72d3f51
Bug 1446515 - Remove nsIDOMFileList. r=bz
...
MozReview-Commit-ID: 4ab1e6NTcOB
--HG--
extra : rebase_source : 09388e531e2bcc6a133cc1ec76946a79ddf2bcb0
2018-03-16 20:55:32 +01:00
Noemi Erli
4472289127
Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE
2018-03-15 19:43:12 +02:00
Adrian Wielgosik
27009d1b15
Bug 1445408 - Remove nsIDOMClientRect. r=bz
...
MozReview-Commit-ID: HP4E3cADa8i
--HG--
extra : rebase_source : caffa42f22f6c25d62d080aa6f65e5105ad263e9
2018-03-13 14:19:17 +01:00
Adrian Wielgosik
bb82957302
Bug 1445408 - Remove nsIDOMClientRectList. r=bz
...
MozReview-Commit-ID: 22sQNVs0wFP
--HG--
extra : rebase_source : f96617033678e372a32971517300182dd4c3ac57
2018-03-01 17:14:26 +01:00
Adrian Wielgosik
43a3ada8a9
Bug 1418077 - Remove nsIDOMHTMLFormElement. r=bz
...
MozReview-Commit-ID: 9eQxvfIMB22
--HG--
extra : rebase_source : f75e043da542b567e31d15db25791c738b275a09
2018-03-14 21:42:25 +01:00
Ryan VanderMeulen
5383105dd9
Bug 1086964 - Remove uses of no_pgo that are no longer needed. r=dmajor
2018-03-14 18:18:32 -04:00
Boris Zbarsky
12b661df01
Bug 1445140 part 5. Remove nsIDOMDocumentType. r=mystor
...
MozReview-Commit-ID: B6iktNYbWn9
2018-03-13 16:24:01 -04:00
Boris Zbarsky
dae236c7cb
Bug 1444686 part 14. Remove nsIDOMDataTransfer. r=mystor
...
MozReview-Commit-ID: BLi4w10clkP
2018-03-13 16:24:01 -04:00
Narcis Beleuzu
298d1d55b5
Merge mozilla-central to inbound. a=merge CLOSED TREE
2018-03-13 12:36:54 +02:00
Andrew McCreight
47cc3bb70c
Bug 1445073 - Pass XPTInterfaceDirectoryEntry into xptiInterfaceEntry::Create(). r=njn
...
Also, I set some flags in the ctor instead of later and I also removed
a comment which refers to SetHeader(), which does not exist any more.
MozReview-Commit-ID: 27mcRTnanrZ
--HG--
extra : rebase_source : ec87aed9fa46c2202b607cbcdb4c8347eaa50949
2018-03-12 11:17:48 -07:00
Boris Zbarsky
ba4b5f9979
Bug 1444919 part 2. Remove nsIDOMClipboardEvent. r=mystor
...
MozReview-Commit-ID: YmJ04OiqFo
2018-03-13 00:59:24 -04:00
Andrew McCreight
48c9169246
Bug 1444129, part 7 - Rename fields of XPTMethodDescriptor. r=njn
...
MozReview-Commit-ID: IwOCyKOY4mR
--HG--
extra : rebase_source : 315d82cb066cbcbfe325279a33366ed7be6fe68a
2018-03-07 15:22:35 -08:00
Andrew McCreight
89bbb84e4f
Bug 1444129, part 6 - Rename fields of XPTParamDescriptor. r=njn
...
MozReview-Commit-ID: 62OFcZ6s2kd
--HG--
extra : rebase_source : 30b263dad71433fb4665235db575d778d07fa785
2018-03-07 15:17:55 -08:00
Andrew McCreight
639c12b1b2
Bug 1444129, part 5 - Rename fields of XPTTypeDescriptor and XPTConstDescriptor. r=njn
...
MozReview-Commit-ID: LdDpZwKDxJH
--HG--
extra : rebase_source : 2c9f5390792885566fa91b40dc0cbc4a46c0fd42
2018-03-07 14:34:22 -08:00
Andrew McCreight
f613470d37
Bug 1444129, part 4 - Rename the one field of XPTTypeDescriptorPrefix. r=njn
...
MozReview-Commit-ID: 4rO1xtMfHD6
--HG--
extra : rebase_source : 647fc9265ee52d32cab8aa276c64200d66442aa0
2018-03-07 14:06:31 -08:00
Andrew McCreight
f7a3e0281d
Bug 1444129, part 3 - Rename XPTInterfaceDescriptor fields. r=njn
...
MozReview-Commit-ID: C5jenxkkDgl
--HG--
extra : rebase_source : 98c588e8433009c00acf014eb58be10b73fdb8cf
2018-03-07 13:40:47 -08:00
Andrew McCreight
324e8c87a2
Bug 1444129, part 2 - Rename fields of XPTInterfaceDirectoryEntry. r=njn
...
MozReview-Commit-ID: 8bGFwMyzhTx
--HG--
extra : rebase_source : 3097c11e868c6868c9420b8e55893e0f7abd08de
2018-03-07 13:37:08 -08:00
Andrew McCreight
7a9835414d
Bug 1444129, part 1 - Rename fields of XPTHeader. r=njn
...
MozReview-Commit-ID: COPpBBEbVbC
--HG--
extra : rebase_source : c5085ee2e3256516d092768d82464d9c9fd76790
2018-03-07 13:28:54 -08:00
Andrew McCreight
e4b9916e1e
Bug 1443951 - Remove some ancient XPTInfo logging. r=njn
...
MozReview-Commit-ID: KCyIEHEnMUf
--HG--
extra : rebase_source : 35936c2cd41d72d51110dbe1fd2fa238cee03106
2018-03-07 13:22:05 -08:00
Andrew McCreight
7566c49fc5
Bug 1442363, part 5 - Constify XPTInterfaceDescriptor::method_descriptors. r=njn
...
Also, change some reinterpret casts to static casts, because there was
no need for them to be reinterpret.
MozReview-Commit-ID: EtPmwxboaq9
--HG--
extra : rebase_source : 59fe2d74c8567af4d8000cb230e8dc0f8bf728ff
2018-02-27 15:28:16 -08:00
Andrew McCreight
5ba4e8d4e6
Bug 1442363, part 4 - Constify XPTInterfaceDirectoryEntry::interface_descriptor. r=njn
...
MozReview-Commit-ID: E4DFA4dodK3
--HG--
extra : rebase_source : 039ee0b94f33a8de7f982e97d941a3d5f0a9aaed
2018-02-27 15:23:03 -08:00
Andrew McCreight
b58cc63048
Bug 1442363, part 2 - Constify XPTHeader::interface_directory. r=njn
...
MozReview-Commit-ID: 3oLZFtXBsV8
--HG--
extra : rebase_source : 3a8ac38d09709e0aedaa4ddbf876f073ae9131c9
2018-02-27 15:08:42 -08:00
Andrew McCreight
b458c8cf4e
Bug 1442363, part 1 - Constify RegisterXPTHeader(). r=njn
...
Once the XPT data is statically allocated, all of the pointers in
xpt_struct.h have to be made const, as well as the XPTHeader
itself. The existing consumers mostly assume things are const already,
so the bulk of the work is tweaking the deserialization code in
xpt_struct.cpp so that the final result is const. I've broken up these
changes into a set of patches.
This patch also gets rid of xptiTypelibGuts::GetHeader(), which is
never called.
MozReview-Commit-ID: FJpmNjY87SN
--HG--
extra : rebase_source : b28456625e4c80023bd350c67163085011bc7cee
2018-02-27 14:58:03 -08:00
Kannan Vijayan
627eb6ae9a
Bug 1411415 - r=bz r=fitzgen
2018-03-05 19:27:02 -05:00
Sebastian Hengst
3a10644021
Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout
...
Backed out changeset 83c87140dc3d (bug 888600)
Backed out changeset 2efb9b1753f6 (bug 888600)
Backed out changeset af5303781961 (bug 888600)
Backed out changeset 79ef59047e63 (bug 888600)
Backed out changeset 30d568d628dd (bug 888600)
Backed out changeset c7bd4c6c9741 (bug 888600)
--HG--
extra : histedit_source : 791b22f6770f4fead2f909478a93d65d85829fe0%2Cbb387309e90f53e1dde45dcf8cf4ebedcc6e5c5e
2018-03-01 11:51:09 +02:00
Andrew McCreight
d3c4d54b03
Bug 1441677, part 6 - Get rid of macros for nsXPTParamInfo flags. r=njn
...
Also, get rid of a gratuitous use of a trinary operator in
nsXPCWrappedJSClass::CallMethod, clean up the style a little, and mark
an unimplemented ctor as deleted.
MozReview-Commit-ID: Kp64sMxyRWc
--HG--
extra : rebase_source : e6082003d3759234cd5f4630b5560b14930c0a88
2018-02-27 13:36:34 -08:00
Andrew McCreight
ae2f96e797
Bug 1441677, part 5 - Demacroize nsXPTMethodInfo masks. r=njn
...
Also, clean up the style a little and mark an unimplemented ctor as
deleted.
MozReview-Commit-ID: JqmveE6qWFa
--HG--
extra : rebase_source : 62c8249de1f52686b4dd5d2a043261d2618d7433
2018-02-27 09:49:58 -08:00
Andrew McCreight
4f8bbff9e8
Bug 1441677, part 4 - Use functions to check XPTInterfaceDescriptor::flags. r=njn
...
MozReview-Commit-ID: 6qcgWbetgSv
--HG--
extra : rebase_source : c0ebec9533bdcf81a263990b882595f1326e54da
2018-02-27 09:03:13 -08:00
Andrew McCreight
1f1a2fe0ba
Bug 1441677, part 3 - Use a function to get the tag of an XPT type. r=njn
...
MozReview-Commit-ID: Bo5ZR8c9S9D
--HG--
extra : rebase_source : 96c8f4295e358c8fa06736de4cb58376c3be1d10
2018-02-27 09:42:27 -08:00
Andrew McCreight
a0cddfbd87
Bug 1441677, part 2 - Move things only used in xpt_struct.cpp there. r=njn
...
Also, remove a few unused things.
Removing the include of xpt_arena.h from xpt_struct.h required that I
added it to two other files.
MozReview-Commit-ID: 4bMDRYt0Zxc
--HG--
extra : rebase_source : 91548b62dbf4b92bf918d196067e6fabb9a72302
2018-02-27 08:44:28 -08:00
Andreea Pavel
d805787970
Merge mozilla-central to autoland. a=merge on a CLOSED TREE
2018-02-28 00:25:43 +02:00
Peter Van der Beken
6cf0e1c871
Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
...
--HG--
extra : rebase_source : f6f781b04923f67f60718706a78b3c4de15eca94
2018-02-22 20:22:29 +01:00
Andrew McCreight
eda8c9ed75
Bug 1441255, part 2 - Don't make an extra copy of the name string in xptiInterfaceEntry. r=njn
...
MozReview-Commit-ID: DBOcq2ZNqKu
--HG--
extra : rebase_source : d11137e2ec6a429cd9223a722fac36dc9deeac5a
2018-02-26 11:10:16 -08:00
Andrew McCreight
2c61ab2952
Bug 1441255, part 1 - Fix argument names for xptiInterfaceEntry creation. r=njn
...
MozReview-Commit-ID: 27n5GsGWnPl
--HG--
extra : rebase_source : 27613c96cc042bb0335fc8a51602ec6071f57b26
2018-02-26 10:51:45 -08:00
Andrew McCreight
ee205d4ac0
Bug 1441217 - Use nsXPTMethodInfo instead of XPTMethodDescriptor in XPConnect. r=njn
...
nsXPTMethodInfo is a nicer structure to use, and this paves the way
for making the two types different, which will be needed if I make
XPTMethodDescriptor statically allocated.
Also, use the higher level accessor methods.
MozReview-Commit-ID: JbRdLU5Wwyt
--HG--
extra : rebase_source : 48f6c4e98e43c75006ceeb02bd727b59d3726681
2018-02-26 08:19:02 -08:00