Commit Graph

89 Commits

Author SHA1 Message Date
Jim Mathies
fbdb9901db Bug 1198459 - Prevent accessibility from initializing in content processes when e10s is running. r=tbsaunde 2015-12-10 14:28:33 -05:00
Carsten "Tomcat" Book
22ca09e4b0 Backed out changeset bcb4ebf6ffac (bug 1198459) for bustage 2015-12-10 11:14:27 +01:00
Jim Mathies
06f24062b9 Bug 1198459 - Prevent accessibility from initializing in content processes when e10s is running. r=tbsaunde 2015-12-09 08:35:06 -05:00
Kyle Huey
588db30b9f Bug 1222127: Use the inner window to compute style. r=baku 2015-11-19 14:47:20 +08:00
Nicholas Nethercote
ed2c7d6ad2 Bug 1224403 (part 8) - Use LayoutDeviceIntMargin more in HyperTextAccessible. r=kats. 2015-11-12 05:34:27 -08:00
Trevor Saunders
c433e1166f bug 1213402 - fixup silly array , on windows r=me landing on a CLOSED TREE 2015-11-10 17:39:27 -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
Nathan Froyd
2215616591 Bug 1222174 - add override declarations in AccessibleWrap.h; r=tbsaunde
clang-cl complains about not having these otherwise.
2015-11-05 15:20:09 -05:00
Trevor Saunders
c2aeb25607 bug 1219528 - don't bail out of AccessibleWrap::accNavigate if the accessible wraps a proxy r=davidb 2015-10-30 19:27:42 -04:00
Trevor Saunders
3518d844e8 bug 1219528 - make AccessibleWrap::accNavigate cases using relations work with proxies r=davidb 2015-10-30 19:27:42 -04:00
Trevor Saunders
aaa572adef bug 1219528 - make NAVDIR_{FIRST,LAST}CHILD and NAVDIR_{NEXT,PREVIOUS} cases of AccessibleWrap::accNavigate deal with proxies r=davidb 2015-10-30 19:27:42 -04:00
Trevor Saunders
e2745b6fcb bug 1218564 - remove check for password roles in AccessibleWrap::get_accValue r=surkov
The text computed for a password entry's accessible should not include the
actual password text, so this check is not necessary.
2015-10-28 14:58:24 -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
James Teh
6b55ec5a35 Bug 1210549 - Fix AccessibleWrap::GetXPAccessibleFor for proxied accessibles r=tbsaunde 2015-10-21 19:54:09 -04:00
James Teh
70a159051f Bug 1210549 - Allow IServiceProvider::QueryService to work for proxied accessibles r=tbsaunde 2015-10-21 19:54:09 -04:00
Trevor Saunders
bde12e1837 bug 1215657 - make AccessibleWrap::get_accSelection work with proxies r=davidb 2015-10-20 15:25:00 -04:00
Trevor Saunders
c78db0bac2 bug 1215657 - make AccessibleWrap::accDoDefaultAction work with proxies r=davidb 2015-10-20 15:25:00 -04:00
Trevor Saunders
218e2dfa9d bug 1215657 - make AccessibleWrap::accHitTest() work with proxies r=davidb 2015-10-20 15:25:00 -04:00
Trevor Saunders
a4d36fb54a bug 1215657 - make AccessibleWrap::accSelect work with proxies r=davidb 2015-10-20 15:25:00 -04:00
Trevor Saunders
2ab1fd5ca1 bug 1215657 - make AccessibleWrap::get_accDefaultAction work with proxied accessibles r=davidb 2015-10-20 15:25:00 -04:00
Trevor Saunders
925b10e817 bug 1215657 - make AccessibleWrap::get_accFocus work with proxied accessibles
r=davidb
2015-10-20 15:25:00 -04: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
1831af2eea bug 1213327 - store interfaces a proxy implements on the Accessible wrapping it
r=davidb
2015-10-16 16:13:38 -04:00
Trevor Saunders
72c48034dc bug 1213606 - work around proxy's that don't have a wrapper for their document r=davidb 2015-10-14 14:09:49 -04:00
Olli Pettay
7244b6d588 Bug 1213382 - proxy more accessible selection methods, r=tbsaunde 2015-10-13 22:08:00 +03:00
Trevor Saunders
cf85b4a812 bug 1210741 - make AccessibleWrap::get_accLocation work with proxied accessibles r=davidb 2015-10-07 18:26:56 -04:00
Trevor Saunders
5a43bdeeec bug 1208779 - null check aAccessible in GetChildIDFor() for 32 bit as well as 64 bit windows r=davidb 2015-09-29 11:34:07 -04:00
Trevor Saunders
56acf0dde9 bug 1207862 - make AccessibleWrap::GetXPAccessibleFor() return the AccessibleWrap for proxies r=davidb 2015-09-24 19:23:19 -04:00
Trevor Saunders
2f2aaad72c bug 1207862 - make WrapperFor() take a const ProxyAccessible * r=davidb 2015-09-24 19:23:19 -04:00
Trevor Saunders
3d044546f3 bug 1207862 - refactor GetXPAccessibleFor() so proxies and non proxies are handle in the same place for each type of id r=davidb
While we're reorganizing this function move the simple cases to the beginning,
      and make lookup in the document tree last.
2015-09-24 19:23:18 -04:00
Trevor Saunders
afbff190c8 bug 1199735 - fire windows events on proxies r=davidb 2015-09-17 16:49:25 -04:00
Trevor Saunders
afb68cddb4 bug 1199735 - factor win event dispatch logic into its own function r=davidb 2015-09-17 16:49:24 -04:00
Trevor Saunders
7dc9023910 bug 1199735 - remove event logging from the windows AccessibleWrap::HandleAccEvent r=davidb
if this is useful it would make more sense to log it outside of the windows
layer.  Since its not clear it is useful, and it makes it harder to separate
event dispatch logic from HandleAccEvent its easiest to just remove it for now.
2015-09-17 16:49:24 -04:00
Trevor Saunders
20ef8ce558 bug 1196460 - remove proxy's ids when they are destroyed r=surkov 2015-09-14 13:33:39 -04:00
Trevor Saunders
61e40ac5c7 bug 1196460 - teach GetChildIDFor() to deal with proxied accessibles r=surkov 2015-09-14 13:33:38 -04:00
Trevor Saunders
06230447cd bug 1196460 - add method to get wrapper of proxy for document containing this proxied accessible r=surkov 2015-09-14 13:33:38 -04:00
Trevor Saunders
d4f0cffc3f bug 1196460 - create different proxy wrappers depending on the type of the proxy r=surkov 2015-09-14 13:33:37 -04:00
Trevor Saunders
dd73716c5d bug 1196372 - make GetHWNDFor() work with proxied accessibles r=surkov 2015-09-10 10:53:34 -04:00
Trevor Saunders
50fbde3f50 bug 1186536 - Bail out of ProxyTextChangeEvent() if the proxy doesn't have a wrapper r=davidb
This probably should never happen, but it seems to sometimes in the wild, and
its hard to know what caused that without a test case.  So for now work around
the issue by adding a null check.
2015-09-09 17:37:15 -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
Chris Peterson
cd0fd3466a Bug 1198124 - Enable -Wshadow in directories that have no -Wshadow warnings. r=glandium 2015-08-25 09:14:38 -07:00
Trevor Saunders
d257415265 bug 1192330 - update text change data for proxied text change events r=surkov 2015-08-19 12:48:58 -04:00
Trevor Saunders
2b5f6116ed bug 1192330 - add ia2AccessibleText::UpdateTextChangeData r=surkov
Soon we will need to be able to update the text change event data from both
 HandleAccEvent() and ProxyTextChangeEvent(), so separate out the logic to do
 that into a function.
2015-08-19 12:48:58 -04:00
Trevor Saunders
e43b77bce9 bug 1192330 - remove ia2AccessibleText::GetModifiedText() r=surkov
There's no point in this indirection since ia2AccessibleText has direct access
to this data.
2015-08-19 12:48:58 -04:00
Trevor Saunders
a91563ffa5 bug 1192330 - move static text change data from HyperTextAccessibleWrap to ia2AccessibleText r=surkov
This will enable us to remove the virtual function GetModifiedText().
2015-08-19 12:48:58 -04:00
Trevor Saunders
26446a85b0 bug 1185122 - don't try and fire platform events in the child process r=lsocks 2015-08-06 13:15:12 -04:00
Trevor Saunders
0e0d0d9ae0 bug 1187055 - check the proxy being destroyed has a wrapper before cleaning it up r=davidb
All proxies should have wrappers on windows.  So it doesn't make much sense
that we need a null check here, however it seems to happen in the wild that
proxy->GetWrapper() returns null.
2015-07-28 11:54:18 -04:00
Jeff Muizelaar
1f2e10f9ba Bug 1178426. Add GfxInfo to ServicesList.h. r=nfroyd 2015-07-08 16:51:09 -04:00
Trevor Saunders
b3bf76ffe5 bug 1172523 - fire useful text change events for proxies r=lsocks 2015-07-14 11:02:03 -04:00
Birunthan Mohanathas
47ed3a3675 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00