gecko-dev/dom
Nika Layzell 568787b95f Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium
By default, windows.h exposes a large number of problematic define statements
which are UpperCamelCase, such as a define from `CreateWindow` to
`CreateWindow{A,W}`.

As many of these names are generic (e.g. CreateFile, CreateWindow), they can
mess up Gecko code that may legitimately have its own methods with the same
names.

The header also defines some traditional SCREAMING_SNAKE_CASE defines which
can mess up our code by conflicting with local values.

This patch adds a simple code generator which generates wrappers for these
defines, and uses them to wrap the windows.h wrapper using the `stl_wrappers`
mechanism, allowing us to use windows.h in more places.

Differential Revision: https://phabricator.services.mozilla.com/D10932
2018-11-28 12:56:20 -05:00
..
abort
animation Bug 1504065 - Run background-color animations on the compositor. r=birtles 2018-11-28 00:58:46 +00:00
asmjscache Bug 1509450 - Remove unnecessary inclusions of ContentParent.h and ContentChild.h r=froydnj 2018-11-26 14:49:44 +00:00
audiochannel
base Bug 1448426 - Wrap windows.h to avoid problematic define statements, r=froydnj,glandium 2018-11-28 12:56:20 -05:00
battery
bindings Bug 1508472 - Part 1: First batch of comment fix-ups in preparation for the tree reformat r=sylvestre 2018-11-27 10:08:58 +00:00
broadcastchannel
browser-element Bug 1503681 - rel=noopener implicit for target=_blank in anchor and area elements when no rel attribute is set - fix tests, r=me 2018-11-28 13:42:57 +01:00
cache Bug 1509450 - Remove unnecessary inclusions of ContentParent.h and ContentChild.h r=froydnj 2018-11-26 14:49:44 +00:00
canvas Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00
chrome-webidl Backed out 13 changesets (bug 1500948, bug 1509362, bug 1509591, bug 1448426, bug 1500949, bug 1487249, bug 1509930, bug 1500950, bug 1500944) for causing crashes and assertion failures on PBackgroundParent.cpp:696 CLOSED TREE 2018-11-28 02:57:32 +02:00
clients Bug 1509450 - Remove unnecessary inclusions of ContentParent.h and ContentChild.h r=froydnj 2018-11-26 14:49:44 +00:00
commandhandler
console Bug 1480544 - Allow Console API to log messages on stdout, r=bgrins 2018-11-15 21:47:58 +01:00
credentialmanagement
crypto Bug 1508472 - Part 1: First batch of comment fix-ups in preparation for the tree reformat r=sylvestre 2018-11-27 10:08:58 +00:00
encoding Bug 1500026 - Make the fallback encoding object listen to locale changes r=jfkthame 2018-11-22 12:30:13 +00:00
events Bug 1505601 - Turn nsIDocShell XPIDL const lists into cenums; r=bzbarsky 2018-11-28 03:30:56 +00:00
fetch Bug 1508472 - Part 1: First batch of comment fix-ups in preparation for the tree reformat r=sylvestre 2018-11-27 10:08:58 +00:00
file Bug 1508980 - Add more .eslintrc.js files for dom/ and update .eslintignore. r=Gijs 2018-11-21 14:27:27 +00:00
filehandle
filesystem Bug 1508980 - Add more .eslintrc.js files for dom/ and update .eslintignore. r=Gijs 2018-11-21 14:27:27 +00:00
flex Bug 1508980 - Add more .eslintrc.js files for dom/ and update .eslintignore. r=Gijs 2018-11-21 14:27:27 +00:00
gamepad
geolocation Bug 1506014 - Refactor some of the common code in the implementations of nsIContentPermissionRequest into a common base class r=baku 2018-11-14 05:33:25 +00:00
grid Bug 1508980 - Add more .eslintrc.js files for dom/ and update .eslintignore. r=Gijs 2018-11-21 14:27:27 +00:00
html Merge mozilla-central to inbound. CLOSED TREE 2018-11-28 12:02:34 +02:00
imptests
indexedDB Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00
interfaces Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00
ipc Backed out 13 changesets (bug 1500948, bug 1509362, bug 1509591, bug 1448426, bug 1500949, bug 1487249, bug 1509930, bug 1500950, bug 1500944) for causing crashes and assertion failures on PBackgroundParent.cpp:696 CLOSED TREE 2018-11-28 02:57:32 +02:00
jsurl Bug 1508980 - Add more .eslintrc.js files for dom/ and update .eslintignore. r=Gijs 2018-11-21 14:27:27 +00:00
locales Bug 1508532 - Provide more verbose description of cdm add-on. r=cpearce,flod 2018-11-21 09:43:47 +00:00
manifest Bug 1508980 - Add more .eslintrc.js files for dom/ and update .eslintignore. r=Gijs 2018-11-21 14:27:27 +00:00
mathml
media Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00
messagechannel
midi Bug 1506014 - Refactor some of the common code in the implementations of nsIContentPermissionRequest into a common base class r=baku 2018-11-14 05:33:25 +00:00
network Backed out 13 changesets (bug 1500948, bug 1509362, bug 1509591, bug 1448426, bug 1500949, bug 1487249, bug 1509930, bug 1500950, bug 1500944) for causing crashes and assertion failures on PBackgroundParent.cpp:696 CLOSED TREE 2018-11-28 02:57:32 +02:00
notification Bug 1508980 - Add more .eslintrc.js files for dom/ and update .eslintignore. r=Gijs 2018-11-21 14:27:27 +00:00
offline
payments Backed out 4 changesets (bug 1477117) for causing hazard build bustage on payments/PaymentRequest.cpp:1066 CLOSED TREE 2018-11-28 02:28:36 +02:00
performance Bug 1506512 - ServerTiming header must be updated onStopRequest as well. r=valentin 2018-11-16 10:17:15 +00:00
permission
plugins Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00
power
presentation Bug 1505601 - Turn nsIDocShell XPIDL const lists into cenums; r=bzbarsky 2018-11-28 03:30:56 +00:00
prio
promise Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre 2018-11-28 00:54:56 +00:00
push Bug 1507677 - Add nsIContentPermissionRequest.topLevelPrincipal r=baku 2018-11-20 01:52:47 +00:00
quota Bug 1507540 part 6. Make nsIVariant's "type" a notxpcom attribute. r=froydnj 2018-11-19 20:20:05 -05:00
reporting
res
script Bug 1510007 - Move JSFreeOp's definition to js/public/MemoryFunctions.h, and make jsapi.h not #include that header. r=sfink 2018-11-21 18:11:15 -08:00
security Merge mozilla-central to inbound. CLOSED TREE 2018-11-28 12:02:34 +02:00
serviceworkers Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre 2018-11-28 00:54:56 +00:00
simpledb
smil
storage Backed out 13 changesets (bug 1500948, bug 1509362, bug 1509591, bug 1448426, bug 1500949, bug 1487249, bug 1509930, bug 1500950, bug 1500944) for causing crashes and assertion failures on PBackgroundParent.cpp:696 CLOSED TREE 2018-11-28 02:57:32 +02:00
svg Bug 1486952 - Update overflow on the correct svg frame(s) when the viewBox changes. r=jwatt 2018-11-23 15:58:27 +00:00
system Bug 1509450 - Remove unnecessary inclusions of ContentParent.h and ContentChild.h r=froydnj 2018-11-26 14:49:44 +00:00
tests Bug 1503681 - rel=noopener implicit for target=_blank in anchor and area elements when no rel attribute is set - fix tests, r=me CLOSED TREE 2018-11-28 12:39:19 +01:00
u2f
url
vr
webauthn Backed out changeset ad857edac6a5 (bug 1498163) for failing devtools/client/performance/test/browser_perf-telemetry-04.js on a CLOSED TREE 2018-11-27 11:05:28 +02:00
webbrowserpersist Bug 1509450 - Remove unnecessary inclusions of ContentParent.h and ContentChild.h r=froydnj 2018-11-26 14:49:44 +00:00
webgpu
webidl Backed out 13 changesets (bug 1500948, bug 1509362, bug 1509591, bug 1448426, bug 1500949, bug 1487249, bug 1509930, bug 1500950, bug 1500944) for causing crashes and assertion failures on PBackgroundParent.cpp:696 CLOSED TREE 2018-11-28 02:57:32 +02:00
websocket Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre 2018-11-28 00:54:56 +00:00
workers Bug 1510007 - Move JSFreeOp's definition to js/public/MemoryFunctions.h, and make jsapi.h not #include that header. r=sfink 2018-11-21 18:11:15 -08:00
worklet
xbl Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre 2018-11-28 00:54:56 +00:00
xhr Bug 1510007 - Move JSFreeOp's definition to js/public/MemoryFunctions.h, and make jsapi.h not #include that header. r=sfink 2018-11-21 18:11:15 -08:00
xml Bug 1472237 - Always do XML Pretty print even if the frame is hidden r=mats 2018-11-16 08:16:27 +00:00
xslt Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre 2018-11-28 00:54:56 +00:00
xul Bug 1506787: Support tabindex attribute (including value -1) on non-control XUL elements. r=smaug 2018-11-17 02:38:27 +00:00
jar.mn
moz.build