gecko-dev/accessible/base
Emilio Cobos Álvarez 619cb14d87 Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz
The main renaming was generated with the following python script:

```

import sys
import re

CAMEL_CASE_REGEX = re.compile(r"(^|_|-)([A-Z])([A-Z]+)")
DISPLAY_REGEX = re.compile(r"\bNS_STYLE_DISPLAY_([^M][A-Z_]+)\b")

def to_camel_case(ident):
  return re.sub(CAMEL_CASE_REGEX,
                lambda m: m.group(2) + m.group(3).lower(), ident)

def constant_to_enum(constant):
  return "StyleDisplay::" + to_camel_case(constant) + ("_" if constant == "NONE" else "")

def process_line(line):
  return re.sub(DISPLAY_REGEX,
                lambda m: constant_to_enum(m.group(1)), line)

lines = []
with open(sys.argv[1], "r") as f:
  for line in f:
    lines.append(process_line(line))

with open(sys.argv[1], "w") as f:
  for line in lines:
    f.write(line)
```

And the following shell commands:

```
find . -name '*.cpp' -exec python display.py {} \;
find . -name '*.h' -exec python display.py {} \;
```

MozReview-Commit-ID: 91xYCbLC2Vf
2016-09-01 20:41:17 -07:00
..
AccessibleOrProxy.cpp bug 1259023 - make nsIAccessible.parent work with proxies r=yzen 2016-04-13 04:00:56 -04:00
AccessibleOrProxy.h bug 1259023 - make nsIAccessible.parent work with proxies r=yzen 2016-04-13 04:00:56 -04:00
AccEvent.cpp Bug 1268320 - rename AccEvent::GetDocAccessible to AccEvent::Document, r=marcoz 2016-05-19 13:56:58 -04:00
AccEvent.h Bug 1268320 - rename AccEvent::GetDocAccessible to AccEvent::Document, r=marcoz 2016-05-19 13:56:58 -04:00
AccGroupInfo.cpp
AccGroupInfo.h
AccIterator.cpp Bug 1263782 - Kill off the deprecated nsINode::IsInDoc(). r=baku 2016-03-31 11:58:25 +01:00
AccIterator.h bug 1278392 - use std::unique_ptr for AccIterators r=froydnj 2016-06-07 17:36:44 -04:00
AccTypes.h Bug 1261439 - replace nsAccUtils::IsEmbeddedObject on a bit flag check, r=marcoz 2016-04-08 08:35:11 -04:00
ARIAMap.cpp Bug 1294086 - implement ARIA feed role, r=yzen 2016-08-10 14:07:29 -04:00
ARIAMap.h Bug 1285272 - Add functionality in ARIAMap to use integer index instead of a raw pointer for role map entries. r=yzen 2016-07-18 11:52:44 -04:00
ARIAStateMap.cpp
ARIAStateMap.h
Asserts.cpp
DocManager.cpp Bug 1268544: Integrate remote COM objects into a11y code; r=tbsaunde 2016-08-18 09:49:13 -06:00
DocManager.h bug 1241453 - allow caching xpc documents for remote documents r=davidb 2016-01-26 07:49:25 -05:00
EmbeddedObjCollector.cpp bug 1261144 - call Accessible::IsText() directly from EmbeddedObjCollector r=lsocks 2016-04-11 21:41:09 -04:00
EmbeddedObjCollector.h bug 1261144 - stop including Filters.h in EmbeddedObjCollector.h r=lsocks 2016-04-11 21:41:09 -04:00
EventQueue.cpp Bug 1268320 - rename AccEvent::GetDocAccessible to AccEvent::Document, r=marcoz 2016-05-19 13:56:58 -04:00
EventQueue.h Bug 1261425 - coalesce mutation events by a tree structure, r=yzen 2016-04-07 09:30:22 -04:00
EventTree.cpp Bug 1283268 - Change nsAutoPtr to UniquePtr in EventTree and Accessible classes. r=nfroyd 2016-06-29 12:57:00 +02:00
EventTree.h Bug 1283268 - Change nsAutoPtr to UniquePtr in EventTree and Accessible classes. r=nfroyd 2016-06-29 12:57:00 +02:00
Filters.cpp bug 1261144 - remove filters::GetEmbeddedObj() because it is unused r=lsocks 2016-04-11 21:41:09 -04:00
Filters.h bug 1261144 - remove filters::GetEmbeddedObj() because it is unused r=lsocks 2016-04-11 21:41:09 -04:00
FocusManager.cpp Bug 1268320 - rename AccEvent::GetDocAccessible to AccEvent::Document, r=marcoz 2016-05-19 13:56:58 -04:00
FocusManager.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Logging.cpp bug 1297661 - remove printf that was useless after bug 939049 r=smaug 2016-08-24 10:32:18 -04:00
Logging.h Bug 1296113 - accessible element insertion following inaccessible element insertions results in a wrong tree, r=yzen 2016-08-19 12:10:58 -04:00
MarkupMap.h Bug 634004 - Implement accessibility API support for html:details and html:summary elements, r=surkov 2016-06-01 17:07:56 +02:00
moz.build Bug 1268544: Integrate remote COM objects into a11y code; r=tbsaunde 2016-08-18 09:49:13 -06:00
NotificationController.cpp Bug 1268544: Integrate remote COM objects into a11y code; r=tbsaunde 2016-08-18 09:49:13 -06:00
NotificationController.h Bug 1261425 - coalesce mutation events by a tree structure, r=yzen 2016-04-07 09:30:22 -04:00
nsAccCache.h Bug 1187139 (part 2) - Replace nsBaseHashtable::Enumerate() calls in accessible/ with iterators. r=tbsaunde. 2015-11-29 14:02:07 -08:00
nsAccessibilityService.cpp Bug 527003 - make a11y service store info about its consumers. Only shut down a11y when there are no more consumers remaining. r=surkov, tbsaunde 2016-08-30 12:04:20 -04:00
nsAccessibilityService.h Bug 527003 - make a11y service store info about its consumers. Only shut down a11y when there are no more consumers remaining. r=surkov, tbsaunde 2016-08-30 12:04:20 -04:00
nsAccessiblePivot.cpp Bug 1261754 - Part 11: Move opacity from nsStyleDisplay to nsStyleEffects. r=dholbert 2016-04-12 15:52:43 +10:00
nsAccessiblePivot.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
nsAccUtils.cpp Bug 1261439 - replace nsAccUtils::IsEmbeddedObject on a bit flag check, r=marcoz 2016-04-08 08:35:11 -04:00
nsAccUtils.h Bug 1261439 - replace nsAccUtils::IsEmbeddedObject on a bit flag check, r=marcoz 2016-04-08 08:35:11 -04:00
nsCoreUtils.cpp Bug 970346 - Add a DocShell attribute to override the default touch event options to a tab. r=bz 2016-07-18 10:26:38 -04:00
nsCoreUtils.h Bug 1251944 - get rid of nsCoreUtils::GetRoleContent, r=davidb 2016-03-04 10:36:18 -05:00
nsEventShell.cpp Bug 1261174 - more events logging, r=yzen 2016-04-05 18:39:55 -04:00
nsEventShell.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsTextEquivUtils.cpp Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz 2016-09-01 20:41:17 -07:00
nsTextEquivUtils.h
Platform.h Bug 1268544: Integrate remote COM objects into a11y code; r=tbsaunde 2016-08-18 09:49:13 -06:00
Relation.h bug 1278392 - use std::unique_ptr for AccIterators r=froydnj 2016-06-07 17:36:44 -04:00
RelationType.h
RelationTypeMap.h
Role.h Bug 634004 - Implement accessibility API support for html:details and html:summary elements, r=surkov 2016-06-01 17:07:56 +02:00
RoleMap.h Bug 634004 - Implement accessibility API support for html:details and html:summary elements, r=surkov 2016-06-01 17:07:56 +02:00
SelectionManager.cpp Bug 1185307 part.2 Replace upcast from nsISelection to mozilla::dom::Selection with nsISelection::AsSelection() r=smaug 2016-06-17 22:32:49 +09:00
SelectionManager.h
States.h
Statistics.h
StyleInfo.cpp Bug 1235373 - Add an assert to check validity of pointers: mElement->GetPrimaryFrame() and frame. r=surkov 2015-12-28 06:25:00 -05:00
StyleInfo.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
TextAttrs.cpp Bug 1286317 - part 1 - remove Qt widget usage from gfx. r=jrmuizel 2016-07-12 20:27:57 -04:00
TextAttrs.h
TextRange-inl.h Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
TextRange.cpp Bug 1261439 - replace nsAccUtils::IsEmbeddedObject on a bit flag check, r=marcoz 2016-04-08 08:35:11 -04:00
TextRange.h Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
TextUpdater.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
TextUpdater.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
TreeWalker.cpp Bug 1274381 - scope accessible elements search to inserted nodes, r=yzen, f=marcoz 2016-08-05 10:20:58 -04:00
TreeWalker.h Bug 1274381 - scope accessible elements search to inserted nodes, r=yzen, f=marcoz 2016-08-05 10:20:58 -04:00