Commit Graph

325 Commits

Author SHA1 Message Date
Aaron Klotz
a90989b900 Bug 1304449: Part 4 - Change Windows a11y MSAA id generation to partition based on content process id; r=tbsaunde
MozReview-Commit-ID: 1IBkP20uc1f

--HG--
extra : rebase_source : d0861da3419534f04f2e9de66157b8cde57c1ccd
2016-10-05 15:56:20 -06:00
Alexander Surkov
7ac6ae3836 Bug 1306127 - reorder event may be not coalesced, r=yzen 2016-10-05 12:51:31 -04:00
Alexander Surkov
cbb86a3700 Bug 1294853 part4 - do not fire preceding hides if they are coalesced, r=yzen 2016-10-04 15:34:18 -04:00
Phil Ringnalda
c1e745733c Merge m-i to m-c, a=merge
MozReview-Commit-ID: IffTwuMbwmG
2016-10-03 20:09:05 -07:00
Astley Chen
8e60824f68 Bug 1292447: part 10 - Get a11y StyleInfo::TextIndent value resolved correctly. r=surkov,TYLin
MozReview-Commit-ID: Gz0ae9x1WtB

--HG--
extra : rebase_source : a320a405408087de47c879099fbb55641636b56e
2016-10-03 18:14:21 +08:00
Alexander Surkov
aa70decced Bug 1294853 part3 - pop up preceding hides from trimmed subtree, r=yzen 2016-10-03 16:12:30 -04:00
Alexander Surkov
33530da7cc Bug 1294853 part2 - hide should preceed a parent show if event tree is trimmed, r=yzen 2016-09-30 10:46:05 -04:00
Carsten "Tomcat" Book
6636b09ddd merge mozilla-inbound to mozilla-central a=merge 2016-09-30 12:02:16 +02:00
Xidorn Quan
cc1649886e Bug 1266621 part 1 - Convert text-decoration-color to store complex color. r=heycam
MozReview-Commit-ID: LEGICgvgQDY

--HG--
extra : rebase_source : 6c68c6e26648354d4d5515e199fdf07711eca726
2016-09-27 20:19:48 +10:00
Alexander Surkov
e124c53ded Bug 1294853 part1 - hide should preceed its related show on a move, r=yzen 2016-09-29 15:44:18 -04:00
Alexander Surkov
3e59ef8ff4 Bug 1280551 - Documents sometimes load with no child accessibles but all text merged into document, r=yzen 2016-09-21 14:15:20 -04:00
Alexander Surkov
898680fc8e Bug 1301770 - dismiss mutation events if their container has been shown or hidden afterwards, r=yzen 2016-09-13 15:21:26 -04:00
Paul Bignier
c9501b6a52 Bug 1282408 - add ignore initialization check flag for variables from TTextAttr. r=surkov.alexander 2016-07-28 15:45:09 +02:00
Michael Li
bddc9c1a5c Bug 1295603 - ignore mutation events if contained by shown or hidden container, r=surkov 2016-09-12 10:43:40 -04:00
Nicholas Nethercote
742fc7eb48 Bug 1297961 (part 1) - Introduce nsURI::GetSpecOrDefault(). r=hurley.
This function is an infallible alternative to nsIURI::GetSpec(). It's useful
when it's appropriate to handle a GetSpec() failure with a failure string, e.g.
for log/warning/error messages. It allows code like this:

  nsAutoCString spec;
  uri->GetSpec(spec);
  printf("uri: %s", spec.get());

to be changed to this:

  printf("uri: %s", uri->GetSpecOrDefault().get());

This introduces a slight behavioural change. Previously, if GetSpec() failed,
an empty string would be used here. Now, "[nsIURI::GetSpec failed]" will be
produced instead. In most cases this failure string will make for a clearer
log/warning/error message than the empty string.
* * *
Bug 1297961 (part 1b) - More GetSpecOrDefault() additions. r=hurley.

I will fold this into part 1 before landing.

--HG--
extra : rebase_source : ddc19a5624354ac098be019ca13cc24b99b80ddc
2016-08-26 16:02:31 +10:00
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
Yura Zenevich
ddff7f9c94 Bug 527003 - make a11y service store info about its consumers. Only shut down a11y when there are no more consumers remaining. r=surkov, tbsaunde
MozReview-Commit-ID: KF5d6xaO83E
2016-08-30 12:04:20 -04:00
Trevor Saunders
4a3e7cb852 bug 1297661 - remove printf that was useless after bug 939049 r=smaug 2016-08-24 10:32:18 -04:00
Aaron Klotz
7debf7c239 Bug 1268544: Integrate remote COM objects into a11y code; r=tbsaunde
MozReview-Commit-ID: ctPgegQ83a
2016-08-18 09:49:13 -06:00
Alexander Surkov
b31c083715 Bug 1296113 - accessible element insertion following inaccessible element insertions results in a wrong tree, r=yzen 2016-08-19 12:10:58 -04:00
Sebastian Hengst
5842832f4e Backed out changeset ff58e1a5f483 (bug 1268544) 2016-08-19 10:02:19 +02:00
Aaron Klotz
92899f5101 Bug 1268544: Integrate remote COM objects into a11y code; r=tbsaunde
MozReview-Commit-ID: ctPgegQ83a
2016-08-18 09:49:13 -06:00
Phil Ringnalda
0d69896d44 Backed out 6 changesets (bug 1288841, bug 1268544) for causing Win7 e10s Marionette to fail in test_import_script.py TestImportScriptContent.test_imports_apply_globally
Backed out changeset c9f49a119255 (bug 1288841)
Backed out changeset a9d43e83e070 (bug 1268544)
Backed out changeset d898178a0809 (bug 1268544)
Backed out changeset 4887b4164dd9 (bug 1268544)
Backed out changeset 7c3a5a770cae (bug 1268544)
Backed out changeset 12aa15cf5879 (bug 1268544)

--HG--
rename : accessible/ipc/other/DocAccessibleChild.cpp => accessible/ipc/DocAccessibleChild.cpp
rename : accessible/ipc/other/DocAccessibleChild.h => accessible/ipc/DocAccessibleChild.h
rename : accessible/ipc/win/PDocAccessible.ipdl => accessible/ipc/PDocAccessible.ipdl
rename : accessible/ipc/win/ProxyAccessible.cpp => accessible/ipc/ProxyAccessible.cpp
rename : accessible/ipc/win/ProxyAccessible.h => accessible/ipc/ProxyAccessible.h
2016-08-18 00:30:21 -07:00
Aaron Klotz
01e4a55f10 Bug 1268544: Integrate remote COM objects into a11y code; r=tbsaunde
MozReview-Commit-ID: ctPgegQ83a
2016-08-15 14:24:12 -06:00
Yura Zenevich
83fa4597e7 Bug 1295649 - adding back removed 'a11y initialized' telemetry measurement. r=surkov
MozReview-Commit-ID: 75xgQlaPA7N
2016-08-16 16:48:01 -04:00
Wes Kocher
021a12c86f Backed out changesets e4a39e456f89 (bug 1268544) for mass build bustage a=backout CLOSED TREE
***
Backed out changeset 119a4b187938 (bug 1268544)
***
Backed out changeset d83cba382cfe (bug 1268544)
***
Backed out changeset a0085eb5ffe7 (bug 1268544)
***
Backed out changeset eefa457c3680 (bug 1288843)
***
Backed out changeset 17dc46beb1a5 (bug 1288841)
***
Backed out changeset e76f58f328d4 (bug 1268544)
***
Backed out changeset ffc8ee715fdb (bug 1268544)
***
Backed out changeset 99f0ea19b8f5 (bug 1268544)
***
Backed out changeset 2bdfb9514317 (bug 1268544)
***
Backed out changeset e4b3a5e1756d (bug 1268544)

--HG--
rename : accessible/ipc/other/DocAccessibleChild.cpp => accessible/ipc/DocAccessibleChild.cpp
rename : accessible/ipc/other/DocAccessibleChild.h => accessible/ipc/DocAccessibleChild.h
rename : accessible/ipc/win/PDocAccessible.ipdl => accessible/ipc/PDocAccessible.ipdl
rename : accessible/ipc/win/ProxyAccessible.cpp => accessible/ipc/ProxyAccessible.cpp
rename : accessible/ipc/win/ProxyAccessible.h => accessible/ipc/ProxyAccessible.h
extra : amend_source : dc73ec117c7279539cab36af821637bb1b0236bd
extra : histedit_source : 438ce81f07a53af61b1cabf7620f30b090e7d5e2%2Ccb6472913fe0d7d2ec66bf0cedc18f2e4d00678e
2016-08-15 15:58:45 -07:00
Aaron Klotz
9c133fb86d Bug 1268544: Integrate remote COM objects into a11y code; r=tbsaunde
MozReview-Commit-ID: ctPgegQ83a
2016-08-15 14:24:12 -06:00
Nicholas Nethercote
bab6d17ebf Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj.
This patch makes the following changes on many in-class methods.

- NS_IMETHODIMP F() override;      --> NS_IMETHOD F() override;
- NS_IMETHODIMP F() override {...} --> NS_IMETHOD F() override {...}
- NS_IMETHODIMP F() final;         --> NS_IMETHOD F() final;
- NS_IMETHODIMP F() final {...}    --> NS_IMETHOD F() final {...}

Using NS_IMETHOD is the preferred way of marking in-class virtual methods.
Although these transformations add an explicit |virtual|, they are safe --
there's an implicit |virtual| anyway because |override| and |final| only work
with virtual methods.

--HG--
extra : rebase_source : 386ee4e4ea2ecd8d5001efabc3ac87b4d6c0659f
2016-08-08 10:54:47 +10:00
Alexander Surkov
30c2b9aee8 Bug 1294086 - implement ARIA feed role, r=yzen 2016-08-10 14:07:29 -04:00
Yura Zenevich
7d6abb5975 Bug 527003 - separating XPCOM parts from nsAccessibilityService. Removing a11y service in favour of using nsAccessibilityService directly. Adding support for a11y service shutdown. r=surkov
MozReview-Commit-ID: KKeywNi3fQb
2016-08-08 20:51:39 -04:00
Alexander Surkov
727cb49410 Bug 1292627 - group text leaf insertions by parent before processing, r=yzen 2016-08-08 13:02:26 -04:00
Alexander Surkov
72a5e88c04 Bug 1274381 - scope accessible elements search to inserted nodes, r=yzen, f=marcoz 2016-08-05 10:20:58 -04:00
Carsten "Tomcat" Book
336105a0de merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Michael Li
7778ca1358 Bug 1285272 - Add functionality in ARIAMap to use integer index instead of a raw pointer for role map entries. r=yzen
MozReview-Commit-ID: 8FduVyUkJic

--HG--
extra : rebase_source : 2685c6fdfc3b2f4851da18539aa298093f858779
2016-07-18 11:52:44 -04:00
Kartikaya Gupta
eb68bbaaa8 Bug 970346 - Add a DocShell attribute to override the default touch event options to a tab. r=bz
MozReview-Commit-ID: 4BdhwQRBavd
2016-07-18 10:26:38 -04:00
Lee Salzman
16ca3223d9 Bug 1286317 - part 1 - remove Qt widget usage from gfx. r=jrmuizel 2016-07-12 20:27:57 -04:00
Alexander Surkov
2f30d77482 Bug 1279665 - skip aria-owns deferred accessible creation for XUL elements, r=yzen 2016-07-08 11:56:30 -04:00
Michael Li
cebbecb62d Bug 1283268 - Change nsAutoPtr to UniquePtr in EventTree and Accessible classes. r=nfroyd 2016-06-29 12:57:00 +02:00
Andi-Bogdan Postelnicu
f03cd9f1d5 Bug 1283060 - prevent null pointer dereference in logging::TreeInfo. r=surkov.alexander
MozReview-Commit-ID: KhNGsH8MRVz

--HG--
extra : rebase_source : 25dd42331cdff7c3fca75286350a87f0e536b43e
2016-06-29 14:06:31 +03:00
Carsten "Tomcat" Book
7c1fa57b1d Backed out changeset b3acfc1fa613 (bug 1274381) for causing regression (bug 1281828) and on request from marcoz 2016-06-24 10:53:11 +02:00
Alexander Surkov
d219d06d6d Bug 1274381 - scope accessible elements search to inserted nodes, r=yzen, f=marcoz 2016-06-21 10:53:06 -04:00
Alexander Surkov
05a65c74c5 Bug 1278294 - add DOM tree logging, part=7, r=yzen 2016-06-21 07:41:06 -04:00
Masayuki Nakano
13d4f396fe Bug 1185307 part.2 Replace upcast from nsISelection to mozilla::dom::Selection with nsISelection::AsSelection() r=smaug
MozReview-Commit-ID: Gs3oiAgJFG9

--HG--
extra : rebase_source : a136405d99ff3361a595157986b3a33026bcd5f5
2016-06-17 22:32:49 +09:00
Alexander Surkov
f33c2d2c00 Bug 1278294 - move accessible tree logging into separate method, part=6, r=yzen 2016-06-20 11:35:38 -04:00
Astley Chen
5bcbb06586 Bug 1277131 : Part 3 - rename nsGkAtoms::tableOuterFrame and nsCSSAnonBoxes::tableOuter. r=heycam
MozReview-Commit-ID: 7GIjtUH9hdZ

--HG--
extra : rebase_source : 818cead88e560effa402e183b4a642fd1a7b9191
2016-06-16 13:35:43 +01:00
Masayuki Nakano
a1636168ba Bug 1278014 part.6 Rename SelectionType::SELECTION_SPELLCHECK to SelectionType::eSpellCheck r=smaug
MozReview-Commit-ID: 4n2jEVax37O

--HG--
extra : rebase_source : eb8c0dbedfeac83de330ccef874525dea355b52c
2016-06-09 18:37:36 +09:00
Masayuki Nakano
d960ef26d5 Bug 1278014 part.5 Rename SelectionType::SELECTION_NORMAL to SelectionType::eNormal r=smaug
MozReview-Commit-ID: AAdxTTKEvrk

--HG--
extra : rebase_source : 82e10db6b8b17d4f571625e34bb3c8f1905ef58a
2016-06-09 18:35:22 +09:00
Masayuki Nakano
00591135a4 Bug 1278014 part.2 Define mozilla::SelectionType as an enum class and use it instead of RawSelectionType as far as possible r=smaug
This patch defines mozilla::SelectionType as an enum class.  This is safer than nsISelectionController::SELECTION_* since setting illegal value to its variable is checked at build time.  So, as far as possible, this should be used everywhere (but of course, this isn't available in scriptable interfaces).

And also this implements some useful methods for managing SelectionType and RawSelectionType which are implemented in layout/nsSelection.cpp because nsISelectionController is implemented by both PresShell and nsTextEditorState.  Therefore, implementing one of them may make hard to find them.  On the other hand, nsSelection.cpp is a better file name to look for them.

Note that this patch creates mozilla::Selection::RawType() for binding.  Native code should keep using Selection::Type() but the binding code needs to use RawType() due to impossible to convert from SelectionType to RawSelectionType without explicit cast.

MozReview-Commit-ID: 81vX7A0hHQN

--HG--
extra : rebase_source : d9f88e217c713c60d1c2578ce6421c73ccba8650
2016-06-11 11:06:37 +09:00
Jonathan Watt
b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00