Commit Graph

5385 Commits

Author SHA1 Message Date
Nicholas Nethercote
ad0dd8414a Bug 1223310 (part 2) - Use LayoutDeviceIntRect for bounds-related functions in nsIWidget. r=kats.
The patch renames the existing functions (GetBounds(), GetClientBounds(), etc)
by adding an |Untyped| suffix. It then adds typed equivalents, and uses those
typed equivalents in all the call sites where it's easy to do so. The trickier
remaining call sites are converted to use the Untyped-suffix version.

--HG--
extra : rebase_source : 6bfb15bfc4698e2eba7d4db55497299d3dffcd51
2015-11-09 21:37:32 -08:00
Trevor Saunders
2478fff23c 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
c54f947de7 bug 1213402 - fixup silly array , on windows r=me landing on a CLOSED TREE 2015-11-10 17:39:27 -05:00
Trevor Saunders
974cb05c7a bug 1213402 - Fire numeric value change events for proxies r=davidb 2015-11-10 15:55:09 -05:00
Trevor Saunders
3dd3759899 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
ab7974e9a5 Bug 1222943 (part 1) - Change Touch::mRadius from nsIntPoint to LayoutDeviceIntPoint. r=kats.
This adds a three missing unit conversions for touch radii.

--HG--
extra : rebase_source : 353494783099ed0520cc69ae691a4cf5360c9b20
2015-11-09 21:37:31 -08:00
Alexander Surkov
d5d70c968a Bug 1221542, bug 1221543 - crash in mozilla::a11y::DocAccessible::SeizeChild/PutChildrenBack, r=davidb 2015-11-09 14:47:38 -05:00
Justin Obara
d8a59a9eeb Bug 1169019 - Removed screenreader announcement from gecko. r=yzen 2015-11-08 21:24:41 -08:00
Alexander Surkov
253f5cfdd0 Bug 1220897 - fix IAccessible2::get_accessibleWithCaret, r=tbsaunde 2015-11-06 23:31:12 -05:00
Trevor Saunders
23e5f861c1 bug 1221551 - unbind child documents before rebinding them r=davidb
It seems possible that a child document could be bound to a parent document
without first being unbound.  Some evidence for this being possible is that
OuterDocAccessible::InsertChildAt() explicitly checks for this and does
something similar if it already has a child.
2015-11-06 17:29:17 -05:00
Nathan Froyd
e256faafbd 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
Alexander Surkov
6606e57d29 Bug 582024 - ARIA active-descendant should work for ARIA owned elements, r=yzen 2015-11-03 11:03:34 -05:00
Alexander Surkov
acb8fed93c Bug 499917 - take into account aria-owns when calculating group attributes, test only, r=yzen 2015-11-03 11:03:23 -05:00
Yura Zenevich
b03320ca91 Bug 1220860 - fixing an error with getting documentElement on AccessFu stop. r=eeejay 2015-11-02 15:28:53 -08:00
Alexander Surkov
08b94a69ed Bug 1219744 - no child_of/parent_of relations for aria-owns, r=yzen 2015-11-02 12:42:27 -05:00
Birunthan Mohanathas
9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Robert O'Callahan
2d8cd33dc4 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.

--HG--
extra : commitid : 42YjYQUaiwY
extra : rebase_source : 69d3a9c5086c116365a0488d1b4fc52fc6524196
2015-10-30 19:23:10 +13:00
Alexander Surkov
d32bb30926 Bug 1219743 - remove special ARIA owns support for ARIA menus, r=yzen 2015-10-30 23:19:52 -04:00
Trevor Saunders
103dd0c968 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
c145de8b16 bug 1219528 - make AccessibleWrap::accNavigate cases using relations work with proxies r=davidb 2015-10-30 19:27:42 -04:00
Trevor Saunders
5cf6510d00 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
e9c2a868bb bug 1219528 - add ProxyAccessible::{Next,Prev}Sibling() and ProxyAccessible::{First,Last}Child() r=davidb 2015-10-30 19:27:42 -04:00
Alexander Surkov
54171e1ece Bug 1219299 - rework aria-owns implementation, r=yzen 2015-10-29 18:08:48 -04:00
Trevor Saunders
b7738102b4 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
c7d3c4e21a Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00
Ryan VanderMeulen
c31f57b4af Bug 448064 - Add crashtest.
--HG--
extra : rebase_source : 87a5ceacbe69406d7e764c39a034b0829b64a46e
2015-10-24 15:03:19 -04:00
Robert O'Callahan
0e2b65352f Revert incorrectly committed changes ab657569f554 and a396f4262479
--HG--
extra : commitid : IHQ60dccnSZ
extra : amend_source : 9302339fd951446a37909b31a1ccb56aff470325
2015-10-24 22:38:22 +13:00
Robert O'Callahan
ff38db98f3 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.

--HG--
extra : commitid : Dn0U0KPLfbY
extra : rebase_source : 57a6ad2e3ba1f7ec6aef9b940d8facdbba7e9c91
2015-10-24 22:27:29 +13:00
Tooru Fujisawa
38a0e6918a Bug 1217038 - Remove for-each and legacy array comprehension from accessible/. r=yzen
--HG--
extra : commitid : DTBUPm8NCs3
2015-10-18 23:21:31 +09:00
Nicholas Nethercote
ae59720e00 Bug 1186786 - Replace nsBaseHashtable::EnumerateRead() calls in accessible/ with iterators. r=tbsaunde.
--HG--
extra : rebase_source : 3909fa78de6ce0b3d6acd9fe2017e7cb5021c84f
2015-10-19 17:52:43 -07:00
James Teh
f8dd54d3ca Bug 1210549 - Fix AccessibleWrap::GetXPAccessibleFor for proxied accessibles r=tbsaunde 2015-10-21 19:54:09 -04:00
James Teh
ab37f2b8a2 Bug 1210549 - Allow IServiceProvider::QueryService to work for proxied accessibles r=tbsaunde 2015-10-21 19:54:09 -04:00
James Teh
2d65b6dfc8 Bug 1210549 - Make proxied accessibles defunct when proxy dies r=tbsaunde 2015-10-21 19:54:09 -04:00
Carsten "Tomcat" Book
ce97f44675 Backed out changeset f20fa392e98b (bug 1199755) for assertions/test failures in test_content_integration.htm on a CLOSED TREE 2015-10-21 12:28:56 +02:00
Lorien Hu
6259455408 Bug 1199755 - Correctly fetch remote children of non-proxy mozAccessibles, r=tbsaunde 2015-10-13 21:29:09 +03:00
Takeshi Kurosawa
da38a008ad 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

--HG--
extra : transplant_source : %15%A0%F3%22%8C%AB%AB%0E%CF%1D%A3H%E4%2Aj%CB8%BDy%F0
2015-10-19 21:46:54 +09:00
Trevor Saunders
8ba1d0d320 bug 1215657 - make AccessibleWrap::get_accSelection work with proxies r=davidb 2015-10-20 15:25:00 -04:00
Trevor Saunders
ad29692daa bug 1215657 - make AccessibleWrap::accDoDefaultAction work with proxies r=davidb 2015-10-20 15:25:00 -04:00
Trevor Saunders
1da4ea6d30 bug 1215657 - make AccessibleWrap::accHitTest() work with proxies r=davidb 2015-10-20 15:25:00 -04:00
Trevor Saunders
5cd07e19be bug 1215657 - make AccessibleWrap::accSelect work with proxies r=davidb 2015-10-20 15:25:00 -04:00
Trevor Saunders
a62582d550 bug 1215657 - make AccessibleWrap::get_accDefaultAction work with proxied accessibles r=davidb 2015-10-20 15:25:00 -04:00
Trevor Saunders
c2be473e90 bug 1215657 - make AccessibleWrap::get_accFocus work with proxied accessibles
r=davidb
2015-10-20 15:25:00 -04:00
Nathan Froyd
01583602a9 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

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Trevor Saunders
53e6b1571b bug 1213327 - expose iAccessibleHyperlink on proxied accessibles r=davidb 2015-10-16 16:13:38 -04:00
Trevor Saunders
e39b0ca57d bug 1213327 - store interfaces a proxy implements on the Accessible wrapping it
r=davidb
2015-10-16 16:13:38 -04:00
Trevor Saunders
034d16ce0e 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
34e02634ff bug 1213516 - fire showing state change event for atk in place of an alert event r=davidb 2015-10-16 14:59:08 -04:00
Yura Zenevich
709f9eb640 Bug 1211122 - ensuring that we check position against an actual doc/dialog on doc load event. r=marcoz 2015-10-16 09:39:30 -04:00
Carsten "Tomcat" Book
15c4d32dd7 merge mozilla-inbound to mozilla-central a=merge 2015-10-16 13:17:56 +02:00
Phil Ringnalda
908ee17508 Back out changeset 12ac8139ecd9 (bug 1213516) for Linux build bustage
CLOSED TREE
2015-10-15 22:52:58 -07:00