gecko-dev/accessible/base
Emilio Cobos Álvarez 256c124f94 Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj
This was done by:

This was done by applying:

```
diff --git a/python/mozbuild/mozbuild/code-analysis/mach_commands.py b/python/mozbuild/mozbuild/code-analysis/mach_commands.py
index 789affde7bbf..fe33c4c7d4d1 100644
--- a/python/mozbuild/mozbuild/code-analysis/mach_commands.py
+++ b/python/mozbuild/mozbuild/code-analysis/mach_commands.py
@@ -2007,7 +2007,7 @@ class StaticAnalysis(MachCommandBase):
         from subprocess import Popen, PIPE, check_output, CalledProcessError

         diff_process = Popen(self._get_clang_format_diff_command(commit), stdout=PIPE)
-        args = [sys.executable, clang_format_diff, "-p1", "-binary=%s" % clang_format]
+        args = [sys.executable, clang_format_diff, "-p1", "-binary=%s" % clang_format, '-sort-includes']

         if not output_file:
             args.append("-i")
```

Then running `./mach clang-format -c <commit-hash>`

Then undoing that patch.

Then running check_spidermonkey_style.py --fixup

Then running `./mach clang-format`

I had to fix four things:

 * I needed to move <utility> back down in GuardObjects.h because I was hitting
   obscure problems with our system include wrappers like this:

0:03.94 /usr/include/stdlib.h:550:14: error: exception specification in declaration does not match previous declaration
0:03.94 extern void *realloc (void *__ptr, size_t __size)
0:03.94              ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/malloc_decls.h:53:1: note: previous declaration is here
0:03.94 MALLOC_DECL(realloc, void*, void*, size_t)
0:03.94 ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/mozilla/mozalloc.h:22:32: note: expanded from macro 'MALLOC_DECL'
0:03.94     MOZ_MEMORY_API return_type name##_impl(__VA_ARGS__);
0:03.94                                ^
0:03.94 <scratch space>:178:1: note: expanded from here
0:03.94 realloc_impl
0:03.94 ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/mozmemory_wrap.h:142:41: note: expanded from macro 'realloc_impl'
0:03.94 #define realloc_impl mozmem_malloc_impl(realloc)

   Which I really didn't feel like digging into.

 * I had to restore the order of TrustOverrideUtils.h and related files in nss
   because the .inc files depend on TrustOverrideUtils.h being included earlier.

 * I had to add a missing include to RollingNumber.h

 * Also had to partially restore include order in JsepSessionImpl.cpp to avoid
   some -WError issues due to some static inline functions being defined in a
   header but not used in the rest of the compilation unit.

Differential Revision: https://phabricator.services.mozilla.com/D60327

--HG--
extra : moz-landing-system : lando
2020-01-20 16:19:48 +00:00
..
ARIAMap.cpp Bug 1540813 - Support new ARIA roles insertion and deletion, r=Jamie 2019-08-21 20:36:39 +00:00
ARIAMap.h Bug 1600362 - Cleanup IntersectionObserver. r=smaug 2019-11-29 20:39:36 +00:00
ARIAStateMap.cpp
ARIAStateMap.h
AccEvent.cpp Bug 1578355 - Part 1: Move user-activation code from EventStateManager to UserActivation; r=smaug 2019-09-20 20:51:25 +00:00
AccEvent.h Bug 1558390: For OOP iframes, also send the embedder accessible when the BrowserBridgeChild is created. r=yzen,nika 2019-06-13 02:19:42 +00:00
AccGroupInfo.cpp
AccGroupInfo.h
AccIterator.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-10-21 14:13:44 +00:00
AccIterator.h Bug 1587791 - remove XBL backed accessible relations support r=MarcoZ 2019-10-10 14:08:17 +00:00
AccTypes.h
AccessibleOrProxy.cpp
AccessibleOrProxy.h
Asserts.cpp
DocManager.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
DocManager.h Bug 1543013 - part 2: Make accessible use mozilla::PresShell directly rather than via nsIPresShell r=Jamie 2019-04-13 12:13:15 +00:00
EmbeddedObjCollector.cpp
EmbeddedObjCollector.h
EventQueue.cpp
EventQueue.h
EventTree.cpp
EventTree.h
Filters.cpp
Filters.h
FocusManager.cpp Bug 1594337: When dismissing a pop-up or the menu bar, if focus is inside an OOP iframe, restore a11y focus inside the iframe. r=yzen 2019-11-13 16:01:02 +00:00
FocusManager.h Bug 1190882: If the focused accessible is removed from the tree, fire a11y focus on the document. r=eeejay 2019-05-15 00:31:16 +00:00
IDSet.h
Logging.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
Logging.h
MarkupMap.h Bug 982125 - make HTML5 <mark> accessible, r=Jamie 2019-11-18 05:34:15 +00:00
NotificationController.cpp Bug 1597916 - Allow frameless containers when dispatching text removed events. r=Jamie 2020-01-13 01:02:51 +00:00
NotificationController.h Bug 686400 - Filter content insertions in DocAccessible. r=Jamie 2019-08-01 16:19:15 +00:00
Pivot.cpp Bug 1601537: Fix text navigation in text leaf Accessibles on Android. ?MarcoZ r=MarcoZ 2019-12-16 06:25:54 +00:00
Pivot.h Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-10-06 18:29:55 +00:00
Platform.h Bug 1543013 - part 1: Mark some methods of nsCoreUtils as MOZ_CAN_RUN_SCRIPT r=Jamie 2019-04-13 12:13:13 +00:00
Relation.h
RelationType.h
RelationTypeMap.h
Role.h Bug 982125 - make HTML5 <mark> accessible, r=Jamie 2019-11-18 05:34:15 +00:00
RoleMap.h Bug 981248 - Rewrite <input type=number> to avoid an anonymous input. r=masayuki,surkov,jwatt,ntim,jfkthame,smaug 2020-01-14 19:01:05 +00:00
SelectionManager.cpp Bug 1608071: part 2) Rename `nsContentUtils::GetCommonAncestor` and related methods. r=smaug 2020-01-13 10:29:44 +00:00
SelectionManager.h Bug 1543013 - part 2: Make accessible use mozilla::PresShell directly rather than via nsIPresShell r=Jamie 2019-04-13 12:13:15 +00:00
States.h
Statistics.h
StyleInfo.cpp Bug 1576194 - Remove kDisplayKTable. r=mats 2019-08-23 15:52:05 +00:00
StyleInfo.h
TextAttrs.cpp Bug 1602317 - Switch style system to associated constants-in-body. r=heycam 2019-12-09 03:32:28 +00:00
TextAttrs.h Bug 1602317 - Switch style system to associated constants-in-body. r=heycam 2019-12-09 03:32:28 +00:00
TextRange-inl.h
TextRange.cpp
TextRange.h Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
TextUpdater.cpp
TextUpdater.h
TreeWalker.cpp Bug 1587512 - remove XBL dialog support bits; remove XBL support from TreeWalker; update XBL related comments and remove XBL mutation test r=MarcoZ,Jamie 2019-10-14 05:36:10 +00:00
TreeWalker.h
XULMap.h Bug 1513325 - Remove textbox binding. r=emilio,dao 2019-10-09 09:27:28 +00:00
moz.build Bug 1587791 - remove XBL backed accessible relations support r=MarcoZ 2019-10-10 14:08:17 +00:00
nsAccCache.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsAccUtils.cpp Bug 1600362 - Cleanup IntersectionObserver. r=smaug 2019-11-29 20:39:36 +00:00
nsAccUtils.h Bug 1543013 - part 2: Make accessible use mozilla::PresShell directly rather than via nsIPresShell r=Jamie 2019-04-13 12:13:15 +00:00
nsAccessibilityService.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsAccessibilityService.h Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2020-01-09 21:50:11 +00:00
nsAccessiblePivot.cpp Bug 1580019 - Refactor nsIAccessiblePivot to a stateless Pivot class. r=Jamie 2019-09-18 22:23:58 +00:00
nsAccessiblePivot.h Bug 1580019 - Refactor nsIAccessiblePivot to a stateless Pivot class. r=Jamie 2019-09-18 22:23:58 +00:00
nsCoreUtils.cpp Bug 1569262 - Rename nsIDocShellTreeItem::GetRootTreeItem to GetInProcessRootTreeItem for Fission marking. r=nika 2019-08-07 19:24:00 +00:00
nsCoreUtils.h Bug 686400 - Add function to nsCoreUtils for display: contents. r=Jamie 2019-08-01 16:19:06 +00:00
nsEventShell.cpp
nsEventShell.h
nsTextEquivUtils.cpp Bug 1546697 - Use a consistent style for enum classes in layout. r=dholbert 2019-04-25 23:03:04 +00:00
nsTextEquivUtils.h Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00