Commit Graph

170 Commits

Author SHA1 Message Date
Trevor Saunders
5a6d7c2794 bug 1241453 - add an AccessibleOrProxy class r=davidb
We have several places that store either a ProxyAccessible* or an Accessible*
 in the same member using a uintptr_t and stealing the lowest bit of the
 pointer.  The goal of the AccessibleOrProxy class is to make this simpler and
 consolidate the logic involved in doing it.
2016-01-26 07:49:25 -05:00
David Rajchenbach-Teller
41e4edde4b Bug 1224374 - Profiler labels for the 25 top chrome hangs;r=BenWa,MarcoZ
Experience shows that we do not have enough profiler labels to make
BHR hang reports meaningful. This patch adds enough labels to let us
exploit hang reports matching the 25 topmost chrome hangs.
2016-01-14 23:03:11 +01:00
Alexander Surkov
28d32c5bd2 Bug 1233118 - implement IAccessible2_3::selectionRanges, r=yzen 2016-01-20 12:53:03 -05:00
Sebastian Hengst
e687c33b0f Backed out 2 changesets (bug 1224374) for Windows bustage. r=bustage on a CLOSED TREE
Backed out changeset 5f458e6e4997 (bug 1224374)
Backed out changeset 0dc02cb0b604 (bug 1224374)
2016-01-19 21:30:41 +01:00
David Rajchenbach-Teller
3a3c914116 Bug 1224374 - Profiler labels for the 25 top chrome hangs;r=BenWa,MarcoZ
Experience shows that we do not have enough profiler labels to make
BHR hang reports meaningful. This patch adds enough labels to let us
exploit hang reports matching the 25 topmost chrome hangs.
2016-01-14 23:03:11 +01:00
Eitan Isaacson
17f0419b09 Bug 1239051 - Labels should expose labeled controllers action. r=tbsaunde 2016-01-14 12:37:15 -08:00
Trevor Saunders
0204efbf5d bug 1228400 - null check tabChild before notifying the parent process about new child documents r=davidb 2016-01-07 14:18:40 -05:00
Nicholas Nethercote
4d571fac6a Bug 1232852 (part 3) - Remove unused parameters from some accessibility code. r=tbsaunde. 2015-12-15 21:24:06 -08:00
Bogdan Postelnicu
5bbc94187d Bug 1235373 - Add an assert to check validity of pointers: mElement->GetPrimaryFrame() and frame. r=surkov 2015-12-28 06:25:00 -05:00
Robert O'Callahan
884728e2c1 Bug 1221043. Revert to including trailing whitespace for accessibility APIs. r=marcoz,mats 2015-12-01 02:21:25 +13:00
Nicholas Nethercote
5a8d025266 Bug 1187139 (part 2) - Replace nsBaseHashtable::Enumerate() calls in accessible/ with iterators. r=tbsaunde. 2015-11-29 14:02:07 -08:00
Nicholas Nethercote
79d571c5c9 Bug 1187139 (part 1) - Replace nsBaseHashtable::Enumerate() calls in accessible/ with iterators. r=tbsaunde. 2015-11-29 14:02:07 -08:00
Alexander Surkov
f074f0378b Bug 1226000 - control may pick up its name from wrong label, r=yzen 2015-11-24 14:44:24 -05:00
Trevor Saunders
a3ee5aa18b bug 1213402 - add another , to fix silly string concatonation r=me landed on a CLOSED TREE 2015-11-10 21:45:12 -05:00
Trevor Saunders
4871fe153a bug 1213402 - separate value change events into text value changes and numeric value changes r=davidb
Arguably these are different things, and it will be easier to proxy events for
atk this way because atk only wants the numeric value changes.
2015-11-10 15:55:08 -05:00
Nicholas Nethercote
6474cc9afe Bug 1222943 (part 1) - Change Touch::mRadius from nsIntPoint to LayoutDeviceIntPoint. r=kats.
This adds a three missing unit conversions for touch radii.
2015-11-09 21:37:31 -08:00
Alexander Surkov
f84f5ef832 Bug 1219744 - no child_of/parent_of relations for aria-owns, r=yzen 2015-11-02 12:42:27 -05:00
Robert O'Callahan
c9cf62c475 Bug 264412. Refactor nsIFrame::GetRenderedText API to be more sane. r=mats,marcoz
The test changes here are to adjust for the fact that
nsTextFrame::GetRenderedText can now trim whitespace from the end of lines
that end in a hard line break.
2015-10-30 19:23:10 +13:00
Alexander Surkov
3b1f584fc6 Bug 1219743 - remove special ARIA owns support for ARIA menus, r=yzen 2015-10-30 23:19:52 -04:00
Alexander Surkov
5c8dc74dae Bug 1219299 - rework aria-owns implementation, r=yzen 2015-10-29 18:08:48 -04:00
Kyle Huey
fffe5cc829 Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00
Robert O'Callahan
37b74104b6 Revert incorrectly committed changes ab657569f554 and a396f4262479 2015-10-24 22:38:22 +13:00
Robert O'Callahan
162b00750e Bug 264412. Refactor nsIFrame::GetRenderedText API to be more sane. r=mats,marcoz
The test changes here are to adjust for the fact that
nsTextFrame::GetRenderedText can now trim whitespace from the end of lines
that end in a hard line break.
2015-10-24 22:27:29 +13:00
Nicholas Nethercote
e9d0adefb3 Bug 1186786 - Replace nsBaseHashtable::EnumerateRead() calls in accessible/ with iterators. r=tbsaunde. 2015-10-19 17:52:43 -07:00
Takeshi Kurosawa
9b5b3b3bfe Bug 1007975 - div with display:table exposes table semantics r=surkov
- Construct a table accessible object if a content in question is HTML <table>
- Drop checking whether a table accessible object is built by CSS display:table from HTMLTableAccessbile::IsProbablyLayoutTable
2015-10-19 21:46:54 +09:00
Nathan Froyd
e4e2da55c9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Trevor Saunders
906aa7a1f0 bug 1213327 - allow accessibles wrapping proxies to store the set of interfaces implemented by the proxy r=davidb
This is not a nice solution, however its basically the only option.  We need to
store the set of interfaces the proxy implementes, preferably without
increasing the size of ProxyAccessibleWrap.
2015-10-16 16:13:38 -04:00
Trevor Saunders
bb67d32b39 bug 1207862 - Add DocManager::TopLevelRemoteDocs() r=davidb
Soon we will need to iterate over all of the top level remote documents.
2015-09-24 19:23:18 -04:00
Alexander Surkov
7465d053af Bug 1133213 - make aria-owns to alter the accessible tree, fire show/hide mutation events as we do for the accessible tree alterations, r=yzen, f=davidb 2015-09-15 12:01:51 -04:00
Trevor Saunders
1525a8a526 bug 1201395 - call ProxyCreated with the correct interfaces when creating top level documents r=davidb 2015-09-03 18:41:19 -04:00
Nicholas Nethercote
69d088e45f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Masayuki Nakano
4d5cd63d14 Bug 895274 part.27 Rename NS_MOUSE_BUTTON_DOWN to eMouseDown r=smaug 2015-08-29 08:58:30 +09:00
Masayuki Nakano
cd786809b4 Bug 895274 part.26 Rename NS_MOUSE_BUTTON_UP to eMouseUp r=smaug 2015-08-29 08:58:30 +09:00
Masayuki Nakano
08c1409ff7 Bug 895274 part.3 Make the enum of event messages a named enum IGNORE IDL r=smaug 2015-08-26 21:56:59 +09:00
Trevor Saunders
09a22d049a bug 1189277 - only coalesce reorder events when a previous one for the same target is obsolete r=surkov
Having one reorder event that superseeds another does not mean that the
dependant mutation events for the first reorder are obsolete.  So we if we
coalesce a reorder event away we should leave its subordinate mutation events
alone.
2015-08-18 14:36:11 -04:00
Aryeh Gregor
bac1b8bdfe Bug 1179451 - Part 1: Rewrite some ternary operators as if/else. r=froydnj 2015-08-13 15:22:48 +03:00
Alexander Surkov
f2b93bae43 Bug 1193786 - crash in mozilla::dom::Element::FindAttrValueIn, r=marcoz 2015-08-13 08:43:26 -04:00
Lorien Hu
77ddb155a5 Bug 1175913 - (Part 1) Subscribe to EventListenerService and recreate accessibles on click listener changes r=tbsaunde 2015-08-04 23:35:54 -04:00
Trevor Saunders
acbc7d7d5d bug 1186528 - don't create a DocAccessibleChild if we can't tell the parent process about it r=lsocks 2015-07-31 13:44:59 -04:00
Nicholas Nethercote
03d1cfeea8 Bug 1182969 - Use nsTHashTable::Iterator in accessible/. r=tbsaunde. 2015-07-22 20:49:25 -07:00
Trevor Saunders
b3bf76ffe5 bug 1172523 - fire useful text change events for proxies r=lsocks 2015-07-14 11:02:03 -04:00
Trevor Saunders
d557580189 bug 1172523 - Allow getting the modified text from an AccTextChangeEvent without copying r=lsocks 2015-07-14 11:02:02 -04:00
Trevor Saunders
909d7df70c bug 1181177 - null check tabChild in DocManager::CreateDocOrRootAccessible r=davidb
This causes e10s to behave differently from non e10s, because in e10s we don't
forward the creation of the document to the parent process.  However this only
seems to happen in strange edge cases.
2015-07-14 10:13:21 -04:00
Trevor Saunders
9c67e88e45 bug 1172525 - rework forwarding events to the parent process r=davidb, lsocks
The set of events fired to platform accessibility is not the same as the set in
the event queue.  Therefore we should forward events to the parent process
someplace where they are the same so the same events can be emitted for child
processes.
2015-07-13 13:57:48 -04:00
Trevor Saunders
c3ed0f0ced bug 1170153 - check documents have a docshell before trying to tell the parent process about new remote DocAccessibles r=davidb
We should never create DocAccessibles for documents that are going away so it
seems like this shouldn't be necessary, but without a test case its hard to
know why we are creating DocAccessibles for documents without docshells.  So
for now work around the issue and hope it doesn't matter in practice.
2015-07-06 12:51:22 -04:00
Juan Gomez
01df2f691b Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Frédéric Wang
42c43180f5 Bug 1178817 - Fix segfault in mozilla::a11y::HTMLTableRowAccessible::GroupPosition(). r=MarcoZ
CLOSED TREE
2015-07-01 05:02:00 -04:00
Marco Zehe
8add6f13cc Bug 1178018 - Add and adjust more roles, subroles, and role descriptions on OS X to match Webkit and Blink, r=surkov 2015-06-27 10:50:33 -07:00
Marco Zehe
66ed3c5046 Bug 1137748 - Expose correct roles, subroles, and roledescriptions for various WAI-ARIA roles on OS X, r=surkov 2015-06-26 17:31:44 -07:00
Alexander Surkov
b3627cf530 Bug 1177268 - implement aria-rowcount/index and aria-colcount/index, r=marcoz 2015-06-26 14:41:22 -07:00