gecko-dev/accessible/base
Nicholas Nethercote 58786e1ea7 Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
This patch makes the following changes to the macros.

- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
  classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
  mostly misused.

- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
  universally available now anyway.

- Combines the first two string literal arguments of PROFILER_LABEL and
  PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
  them to be separate, and it forced a '::' in the label, which isn't always
  appropriate. Also, the meaning of the "name_space" argument was interpreted
  in an interesting variety of ways.

- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
  it clearer they construct RAII objects rather than just being function calls.
  (I myself have screwed up the scoping because of this in the past.)

- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
  the caller doesn't need to. This makes a *lot* more of the uses fit onto a
  single line.

The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).

- Fixes a bunch of labels that had gotten out of sync with the name of the
  class and/or function that encloses them.

- Removes a useless PROFILER_LABEL use within a trivial scope in
  EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
  any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
  a good idea.

- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
  done within them, instead of at their callsites, because that's a more
  standard way of doing things.

--HG--
extra : rebase_source : 318d1bc6fc1425a94aacbf489dd46e4f83211de4
2017-06-22 17:08:53 +10:00
..
ARIAMap.cpp Bug 1374316 - Add aria-readonly to several roles as per ARIA 1.1. r=surkov 2017-06-19 11:09:23 -04:00
ARIAMap.h
ARIAStateMap.cpp
ARIAStateMap.h
AccEvent.cpp bug 1270916 - allow keeping AccTreeMutation in a list r=davidb 2016-11-16 23:46:51 -05:00
AccEvent.h bug 1270916 - add methods to maintain a queue of mutation events to coalesce or fire r=davidb 2016-11-16 23:46:58 -05:00
AccGroupInfo.cpp
AccGroupInfo.h
AccIterator.cpp
AccIterator.h
AccTypes.h
AccessibleOrProxy.cpp
AccessibleOrProxy.h
Asserts.cpp
DocManager.cpp Bug 1330765 - Only attempt to shutdown a11y if last XPC doc was just removed. r=surkov 2017-06-22 12:37:42 -07:00
DocManager.h Bug 1297474 - shutdown accessibility service only if there are no references to accessibles in JS. r=surkov 2016-11-22 08:40:13 -05:00
EmbeddedObjCollector.cpp
EmbeddedObjCollector.h
EventQueue.cpp
EventQueue.h
EventTree.cpp bug 1324019 - remove TreeMutation::mEventTree field r=davidb 2016-12-16 14:07:44 -05:00
EventTree.h bug 1324019 - remove TreeMutation::mEventTree field r=davidb 2016-12-16 14:07:44 -05:00
Filters.cpp
Filters.h
FocusManager.cpp Bug 1309271 - Patch to cleanup nesting and updated comments per review nits. r=surkov 2017-06-13 06:44:55 -05:00
FocusManager.h
Logging.cpp Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj. 2017-06-20 19:19:05 +10:00
Logging.h Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj. 2017-06-20 19:19:05 +10:00
MarkupMap.h Bug 1373786 - Mapping of "article" role and element is incorrect for AX API and ATK. r=surkov 2017-06-16 16:07:23 -04:00
NotificationController.cpp Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange. 2017-06-22 17:08:53 +10:00
NotificationController.h bug 1270916 - add methods to maintain a queue of mutation events to coalesce or fire r=davidb 2016-11-16 23:46:58 -05:00
Platform.h Bug 1366374 - Check if AccessibleHandler.dll is registered before using. r=aklotz 2017-06-15 15:55:06 -07:00
Relation.h
RelationType.h
RelationTypeMap.h Bug 1374697 - Add ATK support for aria-details and aria-errormessage. r=surkov 2017-06-21 15:53:00 -04:00
Role.h Bug 1373786 - Mapping of "article" role and element is incorrect for AX API and ATK. r=surkov 2017-06-16 16:07:23 -04:00
RoleMap.h Bug 1373786 - Mapping of "article" role and element is incorrect for AX API and ATK. r=surkov 2017-06-16 16:07:23 -04:00
SelectionManager.cpp
SelectionManager.h Bug 1340771 part 2 - Introduce a WeakFrame class for heap allocated weak frame pointers, stored in a hashtable for fast lookup. r=tn 2017-03-01 18:03:14 +01:00
States.h
Statistics.h
StyleInfo.cpp Bug 1315874 - Drop 'ForElement' from GetStyleContextForElementXXX methods; r=heycam 2017-04-05 14:39:23 +09:00
StyleInfo.h
TextAttrs.cpp Bug 1285533. Remove non-fontconfig platform fontlist codepath. r=lsalzman 2017-03-22 14:58:19 -04:00
TextAttrs.h
TextRange-inl.h
TextRange.cpp
TextRange.h
TextUpdater.cpp
TextUpdater.h
TreeWalker.cpp Bug 1353094 - simplify the logic of accessible subtrees removal, r=davidb 2017-04-25 14:02:41 -04:00
TreeWalker.h Bug 1353094 - simplify the logic of accessible subtrees removal, r=davidb 2017-04-25 14:02:41 -04:00
moz.build Bug 835981 part 5. Change nsIDOMXULElement::GetBoxObject consumers to nsXULElement. r=peterv 2017-02-02 10:32:58 -05:00
nsAccCache.h Bug 1347667 - unlink accessible's parent before accessible's shutdown when document shutdowns, r=yzen 2017-03-20 09:42:39 -04:00
nsAccUtils.cpp
nsAccUtils.h
nsAccessibilityService.cpp Bug 1349835 - Create accessibles for <input type=checkbox/radio> with -moz-appearance:none. r=surkov 2017-05-31 21:29:49 +02:00
nsAccessibilityService.h Bug 1352802 - Typo fixes around 'accessible'. r=MattN 2017-04-03 09:47:00 -07:00
nsAccessiblePivot.cpp
nsAccessiblePivot.h
nsCoreUtils.cpp Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj. 2017-06-20 19:19:52 +10:00
nsCoreUtils.h Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj. 2017-06-20 19:19:52 +10:00
nsEventShell.cpp
nsEventShell.h
nsTextEquivUtils.cpp
nsTextEquivUtils.h