Nicholas Nethercote
1dc3cd94f1
Bug 1224482 (part 7) - Make GetScaledScreenBounds() return a CSSIntRect. r=kats.
...
Also changes mOriginalBounds to a CSSIntRect*.
--HG--
extra : rebase_source : 4580d2c5266c6d88a7114d03b974cb9358d8051d
2015-11-13 01:37:02 -08:00
Nicholas Nethercote
7e046817ef
Bug 1224482 (part 6) - Change nsScreenGonk::m{Virtual,Natural}Bounds to LayoutDevcieIntRect. r=kats.
...
--HG--
extra : rebase_source : c7ff7a0a4d734cba5832b388cf207b865f15fb8b
2015-11-13 01:37:02 -08:00
Nicholas Nethercote
1615245145
Bug 1224482 (part 5) - Avoid excessive mozilla:: prefixes in nsIWidget and its subclasses. r=kats.
...
A couple of typedefs make things a lot nicer.
--HG--
extra : rebase_source : ca9f02e31301601af1b0f975c5c111945af4d5e7
2015-11-13 01:37:02 -08:00
Nicholas Nethercote
e48ef7f5e0
Bug 1224482 (part 4) - Make GetClientSize() return a LayoutDeviceIntSize. r=kats.
...
--HG--
extra : rebase_source : 6364076d0924ed1cd5a952ffa1fcb0543c05c0f7
2015-11-13 01:37:02 -08:00
Nicholas Nethercote
f38ebf7649
Bug 1224482 (part 3) - Replace GetClientOffsetUntyped() with GetClientOffset(). r=kats.
...
The patch also changes nsMenuPopupFrame::mLastClientOffset to
LayoutDeviceIntPoint.
--HG--
extra : rebase_source : d7c0784efd332e382db3f2857c8f43eabc1c807c
2015-11-13 01:37:02 -08:00
Nicholas Nethercote
7a746a27ea
Bug 1224482 (part 2) - Replace GetNaturalBoundsUntyped() with GetNaturalBounds(). r=kats.
...
--HG--
extra : rebase_source : 912780c975c0bd0d66596b287077b0ab1fcb6d9f
2015-11-13 01:37:02 -08:00
Nicholas Nethercote
369f54f3a3
Bug 1224482 (part 1) - Tweak typed/untyped versions of Get{,Client,Screen}Bounds(). r=kats.
...
In nsIWidget, GetBoundsUntyped(), GetClientBoundsUntyped() and
GetScreenBoundsUntyped() are currently the primary implementations, and the
untyped versions are defined on top of them. This patch flips that around.
--HG--
extra : rebase_source : 15b2f08f90bf4d1e209c6cb885f6a6e3b8db6708
2015-11-12 16:04:52 -08:00
Robert O'Callahan
7739604da7
Bug 1222092
. Don't let sFocusedIMEWidget keep an nsIWidget alive during shutdown. r=masayuki
...
--HG--
extra : commitid : GsPzx7tAfKb
extra : rebase_source : e202fd334b43956966daa1c7e9297d12c822dfd4
2015-11-13 17:05:54 +13:00
Kartikaya Gupta
f0ee7dc630
Bug 1224325 - Ensure the coordinates passed to Gesture:SingleTap have the resolution unapplied so that they are in the RCD's CSS space. r=rbarker
...
--HG--
extra : commitid : 4nriCnBX1P5
2015-11-13 17:14:45 -05:00
Josh Aas
04c4cdae58
Bug 1223966: Don't claim we support NSTextInput interface. r=masayuki
2015-11-13 15:38:03 -06:00
Kartikaya Gupta
6b4995e92f
Bug 1223296
- Fire a Gesture:SingleTap message to browser.js even on the C++ APZ codepath. r=rbarker
...
--HG--
extra : commitid : GvuSYOt7CxQ
2015-11-13 15:10:52 -05:00
Kartikaya Gupta
8b57a39a60
Bug 1223296
- Fire the MozMouseHittest event even if the C++ APZ is enabled. r=rbarker,botond
...
--HG--
extra : commitid : 7J4EjtaTGHs
2015-11-13 15:10:52 -05:00
Kartikaya Gupta
820bc62753
Bug 1223296
- Extract the function that dispatches a MozMouseHittest into a helper. r=rbarker
...
--HG--
extra : commitid : ImT31n1mpgZ
2015-11-13 15:10:51 -05:00
Sotaro Ikeda
c6514fa7b9
Bug 1224445 - Add NS_NATIVE_OPENGL_CONTEXT handling to nsWindow::GetNativeData() r=mwu
2015-11-13 02:18:14 -08:00
Nicholas Nethercote
f1b954f437
Bug 1224403 (part 12) - Remove WidgetToScreenOffsetUntyped(). r=kats.
...
There are few enough calls now that using WidgetToScreenOffset() +
ToUnknownPoint() is a better approach.
--HG--
extra : rebase_source : 18ec6677f6416b02069a646b6f45dcfaa4045671
2015-11-12 15:37:18 -08:00
Nicholas Nethercote
b28bb12951
Bug 1224403 (part 11) - Remove a GetBoundsUntyped() call. r=kats.
...
--HG--
extra : rebase_source : 5de6d29c7b7a03d11c32239e7eeb3e935b2bd92c
2015-11-12 15:37:18 -08:00
Nicholas Nethercote
d5fcd40f2f
Bug 1224403 (part 10) - Make nsScreenGonk::GetNaturalBoundsUntyped() typed. r=kats.
...
--HG--
extra : rebase_source : 5f07908c287af3e6e272047a72837641a4d6824e
2015-11-12 05:44:43 -08:00
Nicholas Nethercote
9c6cbed1d0
Bug 1224403 (part 9) - Remove GetRestoredBoundsUntyped(). r=kats.
...
The typed version can be used everywhere without difficulty.
--HG--
extra : rebase_source : 841d7202126e8be16f47ed2c14c4ec20fe101b28
2015-11-12 05:43:01 -08:00
Nicholas Nethercote
a63371ae36
Bug 1224403 (part 7) - Use LayoutDeviceIntMargin more in IMMHandler. r=kats.
...
--HG--
extra : rebase_source : bd16246a0f6d79f9a5c40813dd5d9a1085b06c6a
2015-11-12 05:22:44 -08:00
Nicholas Nethercote
3ce44673ed
Bug 1224403 (part 6) - Remove one WidgetToScreenOffsetUntyped() call. r=kats.
...
--HG--
extra : rebase_source : fe8441c71cf642684c5b2edee1e7175630917760
2015-11-12 05:08:31 -08:00
Nicholas Nethercote
ab29eab5df
Bug 1224403 (part 5) - Make OnDefaultButtonLoaded() return/take a LayoutDeviceIntMargin. r=kats.
...
--HG--
extra : rebase_source : e12b1703343cc95b52b4a20bd56a3790def99325
2015-11-12 04:34:29 -08:00
Nicholas Nethercote
e2fe66176b
Bug 1224403 (part 4) - Make {Get,Set}NonClientMargins() return/take a LayoutDeviceIntMargin. r=kats.
...
This required adding {To,From}UnknownMargin().
--HG--
extra : rebase_source : de7e8f56604825bcc1babe5e05a8f8623a402cad
2015-11-11 23:05:04 -08:00
Nicholas Nethercote
f703d45de5
Bug 1224403 (part 3) - Make mNonClientOffset a LayoutDeviceIntMargin. r=kats.
...
Surprisingly enough, this requires no other changes, because it's only ever
accessed on a per-field basis, rather than the entire struct at once.
--HG--
extra : rebase_source : a3b1efad0dae6b1ddab3ab77f046e2924c62231b
2015-11-11 20:04:01 -08:00
Nicholas Nethercote
7922110bde
Bug 1224403 (part 2) - Split GetClientOffset() into typed and untyped versions. r=kats.
...
--HG--
extra : rebase_source : 5197f42325d36313ad8c6178baaabcf6f7df532c
2015-11-11 19:56:06 -08:00
Nicholas Nethercote
ff5231e6d2
Bug 1224403 (part 1) - Make Configuration::mBounds a LayoutDeviceIntRect. r=kats.
...
--HG--
extra : rebase_source : a0ae2779dfd9bc10730c8b38bc082453845daa1f
2015-11-10 16:27:26 -08:00
Sotaro Ikeda
3b4ee54eab
Bug 1221446 - Add virtual display support to GonkDisplayJB r=mwu
2015-11-12 21:09:58 -08:00
Nicholas Nethercote
489c83b1dd
Bug 1223690 - Remove implicit Rect conversions. r=jrmuizel.
...
gfxRect can be implicitly constructed from IntRect, which hides a number of
implicit conversion points, makes Moz2Dification harder, and has some
surprising effects.
This patch removes the implicit constructor and replaces it with an explicit
conversion function:
gfxRect ThebesRect(const IntRect&)
This is the obvious outcome of removing the constructor.
But there is also a second, less obvious outcome: currently we do a number of
IntRect-to-Rect conversions using ToRect(), which (surprisingly) works because
it turns into an implicit IntRect-to-gfxRect conversion (via the implicit
constructor) combined with an explicit gfxRect-to-Rect conversion (via
ToRect()). I.e. we do two conversions, going from a Moz2D type to a Thebes
type and back to a Moz2D type!
So this patch also changes these conversion. It moves this existing function:
Rect ToRect(const IntRect&)
from gfx2DGlue.h -- where it doesn't really belong because it doesn't involve
any Thebes types -- to gfx/2d/Rect.h, templatifying and renaming it as
IntRectToRect() in the process.
The rest of the patch deals with fall-out from these changes. The call sites
change as follows:
- IntRect-to-gfxRect conversions:
- old: implicit
- new: ThebesRect()
- IntRect-to-Rect conversions:
- old: ToRect()
- new: IntRectToRect()
--HG--
extra : rebase_source : e4e4c2ad10b36ecad4d57d1630158f3374e403be
2015-11-11 14:23:14 -08:00
Karl Tomlinson
6f30bac4d2
bug 726483 keep an extra reference to the window r=roc
...
--HG--
extra : rebase_source : 96a7021722e411d15100cfeba7708838cfd022c2
2015-11-10 16:37:02 +13:00
Karl Tomlinson
694c7820e4
bug 726483 avoid DispatchResized() during size-allocate r=roc
...
--HG--
extra : rebase_source : 1675342413c17694ce49041ba8b368c84c98c440
2015-11-11 13:50:04 +13:00
Karl Tomlinson
a21405714b
bug 726483 remove unnecessary DispatchResized() parameters r=roc
...
--HG--
extra : rebase_source : 70e8eac6d1ce0ec713f553c50c85a724602008a7
2015-11-10 15:09:52 +13:00
Botond Ballo
6a70e1aa18
Bug 1222661 - Replace FromUntyped(obj) calls with FromUnknown*(obj). r=nical
...
--HG--
extra : rebase_source : c1afe8560b838e1a3be0ce50847861b1815d3dc9
extra : source : d649f163c825736efaf3ac3ad73040beeb48a6ef
2015-11-09 18:22:25 -05:00
Botond Ballo
a592a77364
Bug 1222661 - Replace ToUntyped(obj) calls with obj.ToUnknown*(). r=nical
...
--HG--
extra : rebase_source : 1cab46638599d8c4e6183c42a6fa9d41702392cb
extra : source : cabc28a2200b9b4e5e137d331ee5b86b3c09f065
2015-11-06 22:13:40 -05:00
Bas Schouten
2cb5ac748c
Bug 1210560 - Followup 2: Fix UniquePtr usage issue. r=bustage on a CLOSED TREE
2015-11-11 17:09:56 +01:00
Bas Schouten
a9e797cc6b
Bug 1210560 - Followup: Fix function definition prototype. r=bustage on a CLOSED TREE
2015-11-11 16:46:12 +01:00
Bas Schouten
8ea007d683
Bug 1210560 - Part 7: Convert GTK widget code to use Moz2D instead of PushGroup/PopGroup. r=jwatt
2015-11-11 16:15:40 +01:00
Carsten "Tomcat" Book
0610c350a3
merge mozilla-inbound to mozilla-central a=merge
2015-11-11 12:42:52 +01:00
Kit Cambridge
40e05dad0d
Bug 1220337 - Don't show alternate notification actions on OS X 10.8. r=MattN
...
--HG--
extra : commitid : ExO8EXXhJ0z
2015-11-10 11:23:13 -08:00
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
Nicholas Nethercote
9895f2b525
Bug 1223310
(part 1) - Pass a LayoutDeviceIntPoint instead of an nsIntPoint to InitEvent(). r=kats.
...
Also use direct assignment for some LayoutDeviceIntPoint assignments, rather
than doing it field-by-field.
--HG--
extra : rebase_source : cff1ec8f1ed3ab1924a07d2227044f646019f0cf
2015-11-09 21:37:32 -08:00
Josh Aas
169d28d270
Bug 1180564: insertNewline should use TextInputHandler::InsertText() instead of using insertText of NSTextInput protocol r=masayuki
2015-11-10 11:59:18 +09:00
Randall Barker
02228538d3
Bug 1223440 - Implement NativePanZoomController::setIsLongpressEnabled so long-press detection can be disabled during testing. r=kats
...
--HG--
extra : commitid : al8R68DZJ5
2015-11-10 12:47:48 -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
Tooru Fujisawa
a2bc836f30
Bug 966986 - Part 2: Return true from nsDragService::IsDataFlavorSupported for text/x-moz-url-desc and text/x-moz-url-data on Mac. r=smichaud, vlad
...
--HG--
extra : commitid : 4VAZYfNKjCW
extra : rebase_source : d038c929d2e00ecdfa4e38436d979699471b57ee
2015-08-15 06:34:13 +09:00
Tooru Fujisawa
73a2956b37
Bug 966986 - Part 1: Fix format of DataTransfer.getData(text/x-moz-url) and return each text and URL as a separated item on Mac. r=smichaud, vlad
...
--HG--
extra : commitid : A6bX3dCKWY7
extra : rebase_source : 035d7e5989c358655238ac1d2c731932bf75670c
2015-08-15 06:33:59 +09:00
Masayuki Nakano
0727f7951c
Bug 1218032 part.3 IMEContentObserver should notify IME of anything without script runner r=smaug
2015-11-10 11:49:05 +09:00
Bill McCloskey
f8aa3d2562
Bug 1221371 - Switch chromium IPC code to use mozilla::Tuple (r=jld,cpearce,kats)
2015-11-09 10:21:11 -08:00
Carsten "Tomcat" Book
4d6f05d2f8
merge mozilla-inbound to mozilla-central a=merge
2015-11-09 14:55:30 +01:00
sgiles
185a4ee15f
Bug 1174228 - Set up TYPE_APP for navigator.getDeviceStorage for B2GDroid r=dhylands
2015-11-06 05:55:40 +00:00
Botond Ballo
5bf85e9f9d
Bug 1220923 - Make nsIntRegion a typedef for IntRegionTyped<UnknownUnits>. r=nical
...
--HG--
extra : source : 1f371f014048ed4c3c25095233fea927311a7e23
2015-11-04 11:49:49 -05:00
Josh Aas
cecc434e52
Bug 1221451: Don't pass nil when an argument is required. r=spohl
2015-11-06 10:24:19 +09:00