Граф коммитов

19468 Коммитов

Автор SHA1 Сообщение Дата
Nicholas Nethercote 81c4b5301c Bug 1229237 (part 5) - Make Update{Opaque,WindowDragging}Region() take a LayoutDeviceIntRegion. r=botond.
--HG--
extra : rebase_source : 08d12c48bd6fb086a1d27a8169b1a423534e03f7
2015-11-25 21:42:59 -08:00
Nicholas Nethercote 400204beea Bug 1229237 (part 4) - Make ThemeGeometry::mRect a LayoutDeviceIntRect. r=botond.
--HG--
extra : rebase_source : 3483ed8e2ff2e61ce8a74dcb59a7b43b46bf502d
2015-11-22 20:32:29 -08:00
Nicholas Nethercote 90bbac13cc Bug 1229237 (part 3) - Make nsIWidget::Invalidate() take a LayoutDeviceIntRect. r=botond.
--HG--
extra : rebase_source : 1afe44a5ab2a3d5478010fc23ba1891ab297bde6
2015-11-16 21:18:31 -08:00
Nicholas Nethercote 74e40cebb1 Bug 1229237 (part 2) - Make nsIWidget::DrawWindowUnderlay() take a LayoutDeviceIntRect. r=botond.
--HG--
extra : rebase_source : 0563312f21ea9bf88399377f977c6b21c60a07b6
2015-11-16 20:34:00 -08:00
Nicholas Nethercote 1fb25d8609 Bug 1229237 (part 1) - Make nsIWidget::{Create,CreateChildren}() take a LayoutDeviceIntRect. r=botond.
--HG--
extra : rebase_source : 08407e76083534ad39dd34d2535ec09c95e506db
2015-11-16 00:35:18 -08:00
Sotaro Ikeda 0b199866dd Bug 1229262 - Fix nsScreenGonk's thread safety r=mwu 2015-12-02 22:27:55 -08:00
Masayuki Nakano c62bfb339f Bug 1213589 part.9 ContentEventHandler::ShouldBreakLineBefore() should return false if the content is unknown HTML element r=smaug 2015-12-02 13:20:01 +09:00
Masayuki Nakano ca5b42279c Bug 1213589 part.8 When there are no nodes causing text, ContentEventHandler should set start of the editor root to start of the range r=smaug 2015-12-02 13:20:01 +09:00
Masayuki Nakano bd5dd51e5f Bug 1213589 part.7 Add new testcases to runSetSelectionEventTest() and runQueryTextContentEventTest() for checking the behavior with open tag r=smaug 2015-12-02 13:20:01 +09:00
Masayuki Nakano 14e03f9711 Bug 1213589 part.6 ContentEventHandler should insert line breaks at open tag of elements except non-replaced inline elements r=smaug 2015-12-02 13:20:00 +09:00
Masayuki Nakano 661b0d48d5 Bug 1213589 part.5 Redesign the rules to create range in ContentEventHandler::SetRangeFromFlatTextOffset() r=smaug 2015-12-02 13:20:00 +09:00
Mike Hommey 4c1c46f7d3 Bug 1225682 - Don't use nsAuto{,C}String as class member variables in widget/. r=roc 2015-12-02 11:04:37 +09:00
David Anderson d83a938d65 Add page scroll support for APZ wheel events. (bug 1228028, r=kats) 2015-12-02 17:05:11 -08:00
Nathan Froyd c381a6b86c Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
Jim Mathies 0fd0d13368 Bug 1198459 - Update telemetry data based on the use of the forced enable pref. r=felipe
--HG--
extra : transplant_source : q%EC%82gwe%B9%84%BD%14%97%20%F9x%CAK%96%7FE%C6
2015-12-10 17:11:03 -05:00
Jim Mathies 25edd04661 Bug 1198459 - Add support for disabling e10s if a11y was run in the previous session, or run in a session over the previous week. r=felipe
--HG--
extra : transplant_source : %3CH%D86a%91%C5%3B%82%86%23dHZ%24%D7%0D%0B%3D%8F
2015-12-10 14:28:33 -05:00
David Anderson 0bf441628c Add APZ support for mousewheel delta multiplier prefs. (bug 1214170 part 2, r=kats)
--HG--
extra : rebase_source : e2847430422f19d872c446524627cbaa526ffe06
2015-12-01 13:46:07 -08:00
David Anderson 83e664a4cd Add APZ support for mousewheel.acceleration prefs. (bug 1214170 part 1, r=kats)
--HG--
extra : rebase_source : b97121b98c3e42a83135f7e8fa186575b4fbfcb5
2015-12-01 13:45:49 -08:00
Jim Chen ed2c2e5b1c Bug 1227604 - Fix compositor event order; r=snorp
When the queue only contains compositor events, a compositor event
should go to the back of the queue to maintain order.

--HG--
extra : commitid : I7bHvJCe68o
2015-12-01 13:48:18 -08:00
Kartikaya Gupta cbc69d4846 Bug 1229393 - Ensure that all the touch points from the original touch go to APZCCallbackHelper::SendSetTargetAPZCNotification. r=botond 2015-12-01 15:54:17 -05:00
Markus Stange 10286b74bb Bug 1221913 - Make swiping work correctly in e10s mode even if APZ is off. r=kats
--HG--
extra : commitid : 6jMrb8f9Atw
extra : amend_source : 6cffb6ab209c3f55739ddb409b1a4d04d31a159a
2015-11-27 17:33:50 +01:00
Nathan Froyd dd84912fd6 Bug 1225923 - part 4 - fix AppendElement(nsDependentCString(...)) call in nsClipboardProxy.cpp; r=roc
I think the intent of this call is not to copy the flavor data passed
in, but to simply convert it to a friendlier nsCString container for
serializing to an IPC message.  Since we won't be retaining references
to the passed-in strings after this function returns, we can make the
elements of our temporary array actually dependent strings, rather than
creating temporary dependent strings that would need to be copied into
the array.
2015-11-18 10:55:41 -05:00
Nathan Froyd 8a2948e596 Bug 1225923 - part 1 - convert all needs-to-copy instances of AppendElement(nsDependentString(...)); r=erahm
When people write:

  array.AppendElement(nsDependentString(...));

(resp. nsDependentCString), it's not clear whether they expect the newly
constructed dependent string to live in the array, or whether they're
just making a nsString-like holder whose contents can be freely copied
into the array's newly-created nsString.  Sometimes the latter is what
you prefer, and sometimes the former.  In all cases, however, the latter
behavior is what you get.

Let's try to make that behavior more explicit by pre-constructing
nsString elements and then using Assign to show that copying is taking
place.  This patch involves no functional change in behavior (it ought
to be epsilon faster due to using AppendElements, rather than repeatedly
calling AppendElement).
2015-11-18 10:25:19 -05:00
Martin Stransky 3c958b324c Bug 1228281 - [GTK3] add padding to buttons. r=karlt
--HG--
extra : rebase_source : 4972b69d30730c10fbe450568cd2b1a7f3404c96
2015-11-30 05:26:00 +01:00
Nicholas Nethercote af08555b74 Bug 1228125 (part 3) - Remove nsIWidget::GetClientBoundsUntyped(). r=botond.
--HG--
extra : rebase_source : 5e8cb05213c33983d7deebe0a36f2a4f6ac66375
2015-11-25 20:55:36 -08:00
Nicholas Nethercote d6e3e8a5a8 Bug 1228125 (part 2) - Remove nsIWidget::GetScreenBoundsUntyped(). r=botond.
--HG--
extra : rebase_source : 46118bfc0152322cfdf8a82913c8b056a3f53bdc
2015-11-25 20:55:34 -08:00
Nicholas Nethercote e60696c015 Bug 1228125 (part 1) - Remove nsIWidget::GetBoundsUntyped(). r=botond.
This requires adding a new overloading of LayoutDevicePixel::ToAppUnits and a
new PixelCastJustification: LayoutDeviceIsParentLayerForRCDRSF.

--HG--
extra : rebase_source : b6d044619918818815b40c1173aa4e0551db28a1
2015-11-25 20:32:47 -08:00
Carsten "Tomcat" Book 2310bd59e6 Merge mozilla-central to mozilla-inbound 2015-11-30 13:45:10 +01:00
Carsten "Tomcat" Book 5a9f09086a merge mozilla-inbound to mozilla-central a=merge 2015-11-30 13:19:02 +01:00
Nicolas Silva ce2636044e Bug 1200595 - Merge TextureClient and ClientTexture back into TextureClient. r=mattwoodrow 2015-11-20 14:25:00 +01:00
Nicholas Nethercote d9c0c03bfe Bug 1225007 (part 2, attempt 3) - Use LayoutDevicePixel more in Cocoa widget code. r=kats. 2015-11-19 17:34:20 +11:00
Sunny Sidhu cfa8942015 Bug 1220873 - Make Layer::mVisibleRegion a LayerIntRegion. r=botond
--HG--
extra : source : dc46048f7a9e9cc008c97e2d9e0a100944743055
extra : amend_source : 63783bc076e5969ebacdc8c74f9b5194a1891d9e
2015-11-29 02:07:55 -05:00
Sebastian Kaspari 33f113a021 Bug 1189336 - (Part 1) Rename RestrictedProfiles to Restrictions. r=ally
RestrictedProfiles: The name of the class can be confusing because it handles
guest profiles and restricted profiles. We might even query it from a normal
profile.

--HG--
rename : mobile/android/base/RestrictedProfiles.java => mobile/android/base/Restrictions.java
extra : commitid : BtjvH8aWSlk
extra : rebase_source : 262c9537d7e93658ceea6f94c8481a393ddd3072
2015-11-11 12:29:07 +01:00
Carsten "Tomcat" Book 0a41d103c4 Merge mozilla-central to b2g-inbound 2015-11-26 16:56:39 +01:00
sgiles 55af4f89c3 Bug 1224604 - Handle Hover events when TalkBack is enabled. r=kats 2015-11-25 15:25:11 +00:00
Chris Peterson 44d581458a Bug 1223258 - Fix -Wunreachable-code warnings in widget. r=masayuki
widget/tests/TestAppShellSteadyState.cpp:397:5: warning: code will never be executed [-Wunreachable-code]
widget\widgetutils.cpp(95) : warning C4702: unreachable code
widget\mouseevents.h(97) : warning C4702: unreachable code
widget\textevents.h(492) : warning C4702: unreachable code
2015-11-08 22:46:00 -08:00
Sotaro Ikeda 5a4a957d58 Bug 1157109 - Call eglSwapBuffers() when hwc does not exit r=mwu 2015-11-26 01:21:15 -08:00
Nicolas Silva 48c889335e Bug 1200595 - Gralloc TextureData implementation. r=sotaro 2015-10-15 17:53:37 +02:00
Nigel Babu 29e98fdbc3 Backed out changeset ebb6fb453cca (bug 1214170) for build bustage on a CLOSED TREE 2015-11-25 16:22:16 +05:30
David Anderson 859092e6a5 Add APZ support for mousewheel.acceleration prefs. (bug 1214170, r=kats) 2015-11-25 01:12:33 -08:00
Chris H-C 53663750f7 Bug 506815 - Replace MouseTrailer with TrackMouseEvent. r=jimm
MouseTrailer, using a 200ms timer, was used to track whether a pointer was
still present over a window.

Windows has, since Windows 2000, offered to do this for us via an API called
TrackMouseEvent. (It'll also give us hover timings and non-client area versions
if we want)

I'm all for having Windows do the work for us, and it'll save us from waking up
the main thread five times a second.

--HG--
extra : rebase_source : 9e56fd40929257d847c5cddb8a998c3ca2381655
2015-11-20 07:42:00 +01:00
Nicholas Nethercote 68a4454074 Bug 1227020 - Replace nsBaseHashtable::Enumerate() calls in widget/ with iterators. r=roc.
--HG--
extra : rebase_source : d6f3ad4cc9dbe64a13b989ed91a6f73ec7fe19a1
2015-11-22 18:52:40 -08:00
Andrew Comminos 1bc0d5d5c3 Bug 1198613 - Use GTK style padding for dropdown boxes in HTML. r=karlt
--HG--
extra : rebase_source : 2d36fcd0925ff497ad717317cc656db1552a55dd
2015-11-18 14:11:58 +13:00
Karl Tomlinson 42c19dece3 bug 1227008 use GtkPaperSize in GtkPageSetup directly, instead of maintaining a separate copy r=acomminos
Fixes a leak in nsPrintSettingsGTK::SetGtkPrintSettings() and
missed paper size copy in operator= (bug 965991).

GtkPageSetup always has a GtkPaperSize [1], which is returned from
gtk_page_setup_get_paper_size() as indicated in the docs [2]:
"Return value: the paper size" without "or NULL".

[1] https://git.gnome.org/browse/gtk+/tree/gtk/gtkpagesetup.c?h=2.18.0#n68
[2] https://git.gnome.org/browse/gtk+/tree/gtk/gtkpagesetup.c?h=2.18.0#n164

--HG--
extra : rebase_source : c554c9cb2c30380301fb4286efb9b52497c10d9d
2015-11-25 11:07:21 +13:00
Wes Kocher 72261b4523 Backed out 12 changesets (bug 1200595) for b2g mochitest crashes in SharedBufferManagerParent CLOSED TREE
Backed out changeset cf8cf1a039dd (bug 1200595)
Backed out changeset 65da564f952c (bug 1200595)
Backed out changeset 7663208f1582 (bug 1200595)
Backed out changeset fc1fbb97c8eb (bug 1200595)
Backed out changeset 3ad5a4c457fe (bug 1200595)
Backed out changeset add3fe9afc0c (bug 1200595)
Backed out changeset 68aba6b39588 (bug 1200595)
Backed out changeset ab326c34f1cf (bug 1200595)
Backed out changeset ed34bc528a1b (bug 1200595)
Backed out changeset 0dc93424546c (bug 1200595)
Backed out changeset 8cc12f12f3d1 (bug 1200595)
Backed out changeset bb84403701b7 (bug 1200595)

--HG--
extra : commitid : AMC6i05xyTh
2015-11-24 10:07:02 -08:00
Nicolas Silva c1b94d01e8 Bug 1200595 - Merge TextureClient and ClientTexture back into TextureClient. r=mattwoodrow 2015-11-20 14:25:00 +01:00
Nicolas Silva 318de9bd3b Bug 1200595 - Gralloc TextureData implementation. r=sotaro 2015-10-15 17:53:37 +02:00
Nicholas Nethercote 52b3d826da Bug 1225007 (part 1, attempt 3) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
--HG--
extra : rebase_source : e4b3bb36c18822557f7724a58979eddd9d8cac62
2015-11-19 14:10:38 +11:00
Jorg K 88642f71dc Bug 938991 - text/rtf support for clipboard data. r=enndeakin 2015-11-23 11:04:26 -08:00
Andrew Herron ffb1c5dd5b Bug 586587 - support kHTMLMime in the Windows clipboard as CF_HTML. r=jimm 2015-07-22 16:56:57 +10:00
Lee Salzman 6fea42974e Bug 1224974 - fix GTK shaped window drawing. r=bas 2015-11-19 17:23:43 -05:00
Wes Kocher 023e779c11 Backed out changeset 7b113a6167e9 (bug 1215265) for mass bustage CLOSED TREE
--HG--
extra : commitid : 4fRgovywnch
extra : histedit_source : 18da44a556f563d9aabadd24ed7780e9b29771bf
2015-11-22 23:02:18 -08:00
Robert O'Callahan c5bea366b2 Bug 1215265. Don't leak CompositorChild in content processes. r=nical
This makes the shutdown sequence of CrossProcessCompositorParent
work very much like the shutdown sequence of CompositorParent:
the child does SendStop(); the parent's RecvStop does some cleanup
and then queues a DeferredDestroy task; DeferredDestroy releases
the parent, destroying it; IPDL sends a message to destroy the child.

--HG--
extra : commitid : BSzF9OvSEK9
extra : rebase_source : 2c4ebbadb7064289b032da06cfbd17a3fd2f6ed2
2015-11-18 13:39:47 +13:00
Dmitry Rozhkov 8df43f8eae Bug 962243 - Implement PINCH to TOUCHING transition in APZC. r=botond
--HG--
extra : commitid : FoHvf2KH9rd
2015-11-22 08:57:45 -05:00
Jan Varga 736e2d562c Bug 961049 - Part 8: Move getFileReferences() from PContent under new protocol PBackgroundIndexedDBUtils; r=baku 2015-11-22 10:44:33 +01:00
Wes Kocher 5d41c4ca14 Merge m-c to fx-team, a=merge
--HG--
extra : commitid : D0yQXR2v0Qz
2015-12-01 16:11:47 -08:00
Mark Capella e7b070ed41 Bug 1215959 - (GeckoCaret2) Upgrade Core and AccessibleCaret, r=smaug 2015-12-01 15:25:06 -05:00
Adam Farden c6b0b264c6 Bug 1227544 - Scaling on 720p devices is broken. r=timdream
Fix the scaling logic for 280-300dpi devices
Some xhdpi devices have real densities as low as 287dpi
but these devices are far too small to have an hdpi UI.

Signed-off-by: Adam Farden <adam@farden.cz>
2015-11-24 14:45:00 +01:00
Carsten "Tomcat" Book 1a584aca79 Backed out 13 changesets (bug 1200595) for possibly breaking Reftest [TC] Crashtest tc-R on a CLOSED TREE
Backed out changeset e7278af0a484 (bug 1200595)
Backed out changeset c13228f84d85 (bug 1200595)
Backed out changeset 4b88e8a3d8af (bug 1200595)
Backed out changeset e55376bd2cf8 (bug 1200595)
Backed out changeset 9c27c8e2c021 (bug 1200595)
Backed out changeset a369a2983ceb (bug 1200595)
Backed out changeset 09e71ba15ea8 (bug 1200595)
Backed out changeset b555b130d439 (bug 1200595)
Backed out changeset 6819f6d82287 (bug 1200595)
Backed out changeset a8cdfbf443d8 (bug 1200595)
Backed out changeset 0092c9d7a86b (bug 1200595)
Backed out changeset 6dc38a1e6073 (bug 1200595)
Backed out changeset fe2164aa1468 (bug 1200595)
2015-11-20 16:55:26 +01:00
Nicolas Silva 25167273f1 Bug 1200595 - Merge TextureClient and ClientTexture back into TextureClient. r=mattwoodrow 2015-11-20 14:25:00 +01:00
Nicolas Silva 94c7acf9ef Bug 1200595 - Gralloc TextureData implementation. r=sotaro 2015-10-15 17:53:37 +02:00
Phil Ringnalda 538ef0460d Merge m-c to m-i 2015-11-19 21:08:34 -08:00
Phil Ringnalda 87802cdbad Backed out 2 changesets (bug 1225007) for frequent OS X "Shouldn't return empty rect" assertion failures, a=backout
Backed out changeset c5b352c74b35 (bug 1225007)
Backed out changeset 8a513c70ce7c (bug 1225007)
2015-11-19 20:55:26 -08:00
Nicholas Nethercote 03fdbf3423 Bug 1225007 (part 2, attempt 2) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
--HG--
extra : rebase_source : 02a735d1dfb07cd1bfb559dcc1049fc2966c6db6
2015-11-19 17:34:20 +11:00
Nicholas Nethercote ce671f3678 Bug 1225007 (part 1, attempt 2) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
--HG--
extra : rebase_source : ea132cb4a6eda3553682114f3a1a280acfaf0aa3
2015-11-19 14:10:38 +11:00
Martin Stransky b0130333d6 Bug 1209659 - Disable client-side decorations on broken Gtk3 versions (<3.20). r=karlt 2015-11-18 01:03:00 +01:00
Karl Tomlinson 0fd339415f back out 938041e183e5 from bug 1198613 for assertion failure in 423107-1.xhtml
"Placeholder relationship should have been torn down already; this might mean we have a stray placeholder in the tree."
2015-11-20 11:44:29 +13:00
Andrew Comminos 22dfcf8089 Bug 1198613 - Use GTK style padding for dropdown boxes in HTML. r=karlt
--HG--
extra : rebase_source : b67e5c9e54429c755471bb2bceb618ed30feac60
2015-11-18 14:11:58 +13:00
Karl Tomlinson d492b7f418 bug 1225970 dispatch an event to release the widget after draw r=roc
--HG--
extra : rebase_source : 11fb4b79b3a245d178e935e41a140ead22c33d31
2015-11-19 16:41:12 +13:00
Botond Ballo 65d984ff6f Bug 1221371 - Remove unnecessary explicit copies of nsTArray. r=billm
--HG--
extra : source : e3ade121fe3a26db1e65cd6b91de29dfe8cc5a61
extra : intermediate-source : a09da6e0b017448d6e2b85eb4a6c08dba51999c7
2015-11-18 13:48:12 -05:00
Tooru Fujisawa 6350ec15bd Bug 1224790 - Use SetFakeModal instead of SetModal for non-modal window opened by modal window. r=smaug, mstange
--HG--
extra : rebase_source : e7f6009ecadf0347f916b95c51e7223855cc6294
2015-11-18 20:12:26 +09:00
Randall Barker 4fafcaab6f Bug 1223946 - Part 2: Ensure wheel event from nsDOMWindowUtil is dispatched on correct thread. r=kats
--HG--
extra : commitid : ELvlq969M1f
2015-11-18 19:33:00 -05:00
Randall Barker 47968a20fd Bug 1223946 - Part 1: Clean up and support needed for converting WidgetWheelEvent to ScrollWheelInput. r=kats
--HG--
extra : commitid : Cihc6iEBezl
2015-11-18 19:32:37 -05:00
Kartikaya Gupta f2fbe0fce5 Bug 1225950 - Remove unnecessary parameter from SetNeedsComposite. r=mchang
--HG--
extra : commitid : LRFcG5vPtfq
2015-11-18 18:49:58 -05:00
Nicholas Nethercote f659df0ca3 Bug 1186795 (part 3) - Replace nsBaseHashtable::EnumerateRead() calls in widget/ with iterators. r=roc. 2015-11-17 18:18:32 -08:00
Nicholas Nethercote 8115be87bf Bug 1186795 (part 2) - Replace nsBaseHashtable::EnumerateRead() calls in widget/ with iterators. r=roc. 2015-11-17 18:18:10 -08:00
Nicholas Nethercote ab634dbeaf Bug 1186795 (part 1) - Replace nsBaseHashtable::EnumerateRead() calls in widget/ with iterators. r=roc. 2015-11-17 18:18:09 -08:00
Nicholas Nethercote 26b0d282a5 Backout 52ba24123046 and 66768d6a50fa (bug 1225007) for causing lots of test assertions on Mac. CLOSED TREE 2015-11-17 17:02:39 -08:00
Boris Zbarsky 9ecf8df931 Bug 1225188. Implement window.onstorage. r=smaug 2015-11-17 18:09:53 -05:00
Nicholas Nethercote 78829dd6ba Bug 1225007 (part 2) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
--HG--
extra : rebase_source : 0dcf2d580a836faf76cb392eb5561bfa3481d5c2
2015-11-16 19:40:53 -08:00
Nicholas Nethercote eb12a384c0 Bug 1225007 (part 1) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
--HG--
extra : rebase_source : ad3466d05e476ebf65affdde3fca52494e1327cb
2015-11-15 21:37:52 -08:00
Wes Kocher f3c1ddea35 Merge inbound to central, a=merge
--HG--
extra : commitid : 5s06anNiSWA
2015-11-17 13:10:03 -08:00
Carsten "Tomcat" Book d74447ffaa Merge mozilla-central to fx-team 2015-11-17 12:35:11 +01:00
Matt Brubeck 0954e27b0a Bug 431620 - Remove unused function GetToggledKeyState [r=roc] 2015-11-16 16:06:41 -08:00
Gijs Kruitbosch aaf54987f1 Bug 1221947 - part 2: add TOUCH cause to IME Handling and use it to avoid checking for a keyboard, r=masayuki
--HG--
extra : commitid : 210bhfz78Nm
extra : rebase_source : a3ee068abd8cb0fc2c83be7d5e5442bf74979ecd
extra : histedit_source : 29daad4b99ad4d41663cc026983dffa7449029dc
2015-11-12 16:36:19 +00:00
Kit Cambridge 5234c9abc6 Bug 1224738 - Fix alternate action index getter name on OS X. r=MattN
--HG--
extra : commitid : 6lINgooYlWF
extra : rebase_source : 24cff4ee907994c3fa282ca412ca4ecd995d3afc
extra : amend_source : 8857cfca298c8223b459b825503d3b094a9f5eca
2015-11-16 13:09:38 -08:00
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
Neil Deakin 4f9e89b42d Bug 1212733, cache dnd window state instead of using gtk_window_get_type_hint, r=karlt 2015-11-17 07:13:22 -05:00
Sotaro Ikeda 88d1681a84 Bug 1144103 - Support screen recording r=mwu 2015-11-17 02:04:40 -08:00
Masayuki Nakano 17e8d0a0e1 Bug 1224454 part.2 IMMHandler::OnFocusChange() should cancel remaining composition when given nsWindow is being destroyed r=m_kato 2015-11-17 16:47:06 +09:00
Masayuki Nakano be8f7a8cb3 Bug 1224454 part.1 IMEHandler should generate NOTIFY_IME_OF_BLUR in e10s mode if the focused widget is being destroyed before receiving NOTIFY_IME_OF_BLUR r=m_kato 2015-11-17 16:47:06 +09:00
Matt Brubeck 57c0314350 Bug 1223366 - Update event.buttons on GDK_BUTTON_RELEASE [r=karlt]
--HG--
extra : rebase_source : 9d798ee413a11cf70d9e217ad98a5bbcd2a6cf59
2015-11-16 22:01:32 -08:00
Andrea Marchesini 2609a149da Bug 1231378 - part 4 - Fix uninitialized members of classes in netwerk/widget/storage/uriloader/memory/tools, r=smaug 2016-01-12 13:57:37 +00:00
Carsten "Tomcat" Book de28b5128f Backed out changeset b5e8cd00d7ef (bug 1238515) for Android Test failures
--HG--
extra : rebase_source : d7883a0923a22c676f26946ab8950a9bf01490a9
2016-01-12 14:15:08 +01:00
Andrea Marchesini 923de404a2 Bug 1238515 - nsIFilePicker methods should clearly say when they return directories and files, r=smaug 2016-01-12 10:23:13 +00: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
Mike Hommey 4d40edea15 Bug 1221453 - Use AbsolutePaths with LOCAL_INCLUDES instead of manual -I in CXXFLAGS. r=gps 2015-11-06 09:59:21 +09:00
Nathan Froyd e763192040 Bug 1216611 - add mozilla::MakeUniqueFallible and convert uses throughout the tree; r=Waldo 2015-11-05 16:24:24 -05:00
Nicholas Nethercote 4a551425d8 Bug 1221610 - Remove ToIntMargin(). r=jrmuizel.
It's now a no-op.
2015-11-04 09:40:16 -08:00
Bill McCloskey 253fd15a51 Bug 1218552 - Fix GTK drag-and-drop coordinate scaling on HiDPI displays (r=karlt) 2015-11-04 13:40:15 -08:00
Matt Woodrow 43e4c98e28 Bug 1203199 - Bustage fix. CLOSED TREE 2015-11-04 16:51:22 +13:00
Matt Woodrow dad4ebe210 Bug 1203199 - Fix driver range with blacklist to avoid blacklisting other OSes.
--HG--
extra : rebase_source : e2dc29a94aa88fd3d181aa2171cece9d61c103c5
2015-11-04 16:17:00 +13:00
Matt Woodrow 631340121d Bug 1203199 - Blacklist DXVA on some older intel drivers for causing crashes. r=jrmuizel 2015-10-22 12:35:52 +13:00
Jim Chen 244a51f96c Bug 1216666 - Update composition as part of replacing text or changing span; r=esawin
Currently, GeckoEditable periodically fires update composition events to
update the Gecko composition styling. To make the code more efficient
and more robust in dealing with content JS code, this patch merges these
events into events like replacing text, setting span, and removing span.
As a result, a setComposingText call now results in one replacing text
event instead of a replacing text event plus an update composition event.
2015-11-03 11:53:58 -05:00
Jim Chen 5bd4b9906b Bug 1216666 - Separate out Gecko selection from Java selection; r=esawin
Currently, the Gecko-side selection tries to mirror the Java-side
selection, but this is difficult because the Gecko selection has some
subtle but important behavior differences from the Java selection.
This patch separates out Gecko selection from Java selection so that
they're only loosely coupled. The two selections will periodically
synchronize through events and notifications, but at certain times they
may fall out-of-sync, for example when a composition is active. This
shouldn't affect functionality in a major way, and it's an acceptable
trade-off.
2015-11-03 11:53:57 -05:00
Nigel Babu 9ede18e7fe Backed out changeset ad08ab3d158e (bug 1203199) for widespread reftest bustage 2015-11-03 12:01:22 +05:30
Nigel Babu 10791e232a Backed out changeset 7b99659430b1 (bug 1203199) 2015-11-03 11:59:03 +05:30
Chris Peterson cf68e9b753 Bug 1220358 - Fix -Wunreachable-code warnings in widget/cocoa. r=spohl
widget/cocoa/nsNativeThemeCocoa.mm:3774:7 [-Wunreachable-code-break] 'break' will never be executed
widget/cocoa/nsNativeThemeCocoa.mm:3790:7 [-Wunreachable-code-break] 'break' will never be executed
widget/cocoa/nsNativeThemeCocoa.mm:3818:5 [-Wunreachable-code-break] 'break' will never be executed
2015-10-30 18:22:55 -07:00
Matt Woodrow f48376f304 Bug 1203199 - Fix trailing comma causing bustage. CLOSED TREE 2015-11-03 17:47:22 +13:00
Matt Woodrow 26d59a2852 Bug 1203199 - Blacklist DXVA on some older intel drivers for causing crashes. r=jrmuizel
--HG--
extra : rebase_source : 10af1656e2cfc594cb94c2eb7020a09e9e3f1d58
2015-10-22 12:35:52 +13:00
Christoph Kerschbaumer 1ee2473768 Bug 1206964 - Use channel->AsyncOpen2() in netwerk/base/nsNetUtil.cpp (r=sicking) 2015-11-02 17:31:08 -08:00
Sebastian Hengst 7399ac0b2a Backed out 3 changesets (bug 1221368, bug 1221371) for build failures in B2G JB Emulator. r=backout
Backed out changeset a50c676caf7f (bug 1221371)
Backed out changeset bd99e5060e1e (bug 1221371)
Backed out changeset 3a22461c8ce8 (bug 1221368)

gecko/ipc/chromium/src/base/task.h:36:4: error: use of deleted function 'RefPtr<T>::operator T*() const && [with T = nsScreenGonk]'
make[6]: *** [nsScreenManagerGonk.o] Error 1
2015-11-08 21:25:22 +01:00
Bill McCloskey 50c9efe1a4 Bug 1221371 - Switch chromium IPC code to use mozilla::Tuple (r=jld,cpearce,kats) 2015-11-08 10:25:09 -08:00
Josh Aas 14354d55b1 Bug 1221449: Add null ptr check and fix variable shadowing in OSXNotificationCenter.mm. r=spohl 2015-11-07 18:23:00 +09:00
Josh Aas bbb0292ad2 Bug 1180564: Don't implement NSTextInput any more, just NSTextInputClient. r=masayuki 2015-11-07 18:19:49 +09:00
Nathan Froyd 9add484895 Bug 1222444 - remove unused variable in nsWindow::GetMessageTimeStamp; r=roc 2015-11-05 15:15:49 -05:00
Nathan Froyd 1df3aeaee4 Bug 1222149 - delete unused fields from AsyncEncodeAndWriteIcon; r=roc
clang-cl says these are unused, so let's delete them.
2015-11-05 14:19:20 -05:00
Nathan Froyd e255b900f5 Bug 1220392 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in widget/; r=roc 2015-10-30 14:35:28 -04:00
Martin Stransky c60b430e10 Bug 1219717 - Derive text color/background from GtkTextView. r=karlt 2015-10-30 09:08:00 +01:00
Birunthan Mohanathas 9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Ryan VanderMeulen 58e04dabc8 Bug 540078 - Remove assertion annotations that are no longer needed and add crashtest. 2015-10-30 19:41:18 -04:00
Kartikaya Gupta b4cf5cc4aa Bug 1219898 - Remove use of gPreventMouseEvents in APZ event state-tracking code. r=botond
--HG--
extra : commitid : 3raJl95nr6q
2015-10-30 22:22:28 -04:00
Wes Kocher 5f4bea7be9 Backed out changeset 47d076aeb8c4 (bug 1218552) for build bustage CLOSED TREE
--HG--
extra : commitid : 6iivEDq5EWc
2015-10-30 13:37:50 -07:00
Bill McCloskey 1c7268802f Bug 1218552 - Fix GTK drag-and-drop coordinate scaling on HiDPI displays (r=karlt) 2015-10-30 13:01:58 -07:00
Benoit Girard 698006ddf9 Bug 1211612 - Add DragInputBlock for async scrollbars. r=kats
--HG--
extra : commitid : Grx9aF2UvH2
extra : rebase_source : ea2601a2a3ac2870383fa86d8e7bd90342424ce1
2015-10-26 16:06:49 -04:00
Andrew Comminos df747d18d1 Bug 1218008 - Fix progress bar rendering on the Ambiance GTK3 theme. r=karlt 2015-10-29 15:35:49 -07:00
Chris Peterson a11badd07b Bug 1219139 - Fix -Wimplicit-fallthrough warnings in dom/events and widget/IMEData.h. r=masayuki
widget/IMEData.h:428:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels

dom/events/EventStateManager.cpp:601:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/events/EventStateManager.cpp:654:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/events/EventStateManager.cpp:714:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/events/EventStateManager.cpp:1239:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/events/EventStateManager.cpp:3045:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
dom/events/EventStateManager.cpp:4173:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-10-26 20:46:27 -07:00
Cameron McCormack 5a9f585bc7 Bug 1219537 - Simplify a couple of PresContext() gets on nsIFrame/nsStyleContext. r=dholbert 2015-10-29 17:06:31 +11:00
Nicholas Nethercote a34d272e2b Bug 1209812 (part 3) - Rename SurfaceFormat::R5G6B5 as R5G6B5_UINT16. r=Bas.
--HG--
extra : rebase_source : 1efcfb2522e823e55b5c7b77531a9d2c42c49c8b
2015-10-22 23:01:31 -07:00
James Willcox 6ab6121caa Bug 1218991 - Save initial zoom constraints to be used once compositor is created r=kats 2015-10-28 14:10:30 -05:00
Kartikaya Gupta eee88093b7 Bug 1217818 - Add support for the mHandledByAPZ flag on touch events as well. r=botond
--HG--
extra : commitid : Dcfgar8CZOi
2015-10-28 12:53:34 -04:00
Nathan Froyd ce836868f3 Bug 1218488 - clarify buffer ownership for nsICanvasRenderingContextInternal::GetBuffer; r=Bas,baku
This patch started life as making ImageEncoder.cpp:EncodingRunnable not
use nsAutoArrayPtr, but the API effects rippled out from there.  On the
whole, I think using UniquePtr throughout has made the code clearer.
2015-10-26 14:31:12 -04:00
Makoto Kato 99903f5ab5 Bug 1218315 - Replace NS_LITERAL_STRING(...).get() with MOZ_UTF16(...) on widget. r=nfroyd 2015-10-28 14:28:06 +09:00
Blake Kaplan 54d6604951 Bug 1169268 - Don't crash when pasting files. r=ndeakin 2015-10-27 14:41:58 -07:00
Jim Chen 3e72d502e6 Bug 1209465 - Work around TextComposition workaround; r=esawin
TextComposition has a workaround where committing a composition as-is
doesn't work, when the composition consists of a single ideographic
space character [1]. This patch works around that workaround by sending
a regular commit event instead of a commit-as-is event.

[1] http://mxr.mozilla.org/mozilla-central/source/dom/events/TextComposition.cpp?rev=f4215b484d52#243
2015-10-27 14:22:05 -04:00
Sotaro Ikeda d7e0a22d6a Bug 1210182 - Implement GrallocTextureHostBasic r=nical 2015-10-26 22:43:07 -07:00
Kyle Huey c7d3c4e21a Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00
Chris Pearce 36b20fb2a9 Bug 1193610 - Also use SystemParametersInfo to block screen saver on Windows, so it works on WinXP and Vista. r=jimm 2015-10-27 11:58:15 +13:00
Masayuki Nakano 7f2595b09f Bug 1184890 part.3 TSFTextStore shouldn't commit composition when a selection change notification occurred before starting current composition r=m_kato 2015-10-27 07:21:37 +09:00
Masayuki Nakano d9e6fc64a8 Bug 1184890 part.2 IMContextWrapper shouldn't commit composition when a selection change notification occurred before starting current composition r=m_kato 2015-10-27 07:21:37 +09:00
Masayuki Nakano 35aa5312ba Bug 1184890 part.1 SelectionChangeDataBase and TextChangeDataBase should have a flag which indicates whether the change occurred during composition or not r=smaug 2015-10-27 07:21:37 +09:00
Brian Birtles cc422b4d45 Bug 1207412 - Make SystemTimeConverter use TimeStamp::Now() when converting times; r=karlt 2015-10-26 09:29:54 +09:00
William Chen 16cbe794df Bug 920734 - Part 1: Implement window.orientation and window.onorientationchange. r=baku
--HG--
extra : rebase_source : 1ca2e3a29733762d4bb2c335a0d6fcf5d7b03c0f
2015-10-23 21:37:28 -07:00
Xidorn Quan c62bff4099 Bug 1206468 - Remove unused internal appearance value -moz-mac-unified-toolbar. r=mstange
--HG--
extra : source : adbf31ddaea4d289f6a6a226a112f73cd3d8391f
2015-10-23 19:51:34 +11:00
Aaron Klotz ac934e7347 Bug 1217565 - Fix assertion in nsWindow::IPCWindowProcHandler to account for suppressed neutering; r=jimm 2015-10-22 16:09:55 -04:00
Jan Horak 6e34049b00 Bug 1216582 - [gtk3] Scrollbar buttons not drawn correctly. r=karlt 2015-10-22 01:00:00 +02:00
Robert O'Callahan 941a7115cd Bug 978679. Convert GDK touch event coordinates properly. r=karlt
--HG--
extra : commitid : 7fYbzS8U8OD
extra : rebase_source : 0a97ccf94d9a98390c6911b71eec6d8f4c1cbf08
2015-10-22 17:06:14 +13:00
Masayuki Nakano 4adbaf87c5 Bug 1217275 Fix missing \n in IMMHandler::HandleDocumentFeed(), it was replaced to empty string accidentally r=m_kato 2015-10-23 10:12:15 +09:00
Jim Chen f4bb277325 Bug 1211704 - Remove obsolete GeckoEvent definitions; r=esawin
Remove obsolete GeckoEvent definitions from GeckoEvent.java and
AndroidJavaWrappers.cpp/h.
2015-10-22 17:45:47 -04:00
Jim Chen 0516bbb465 Bug 1211704 - Let GeckoEditable call disposeNative; r=esawin
Right now we call disposeNative on GeckoEditable in the
nsWindow::Natives destructor. However, we may still have pending native
calls in the event queue at that point, and these events will cause
exceptions when handled. This patch makes GeckoEditable call
disposeNative, after ensuring there's no pending calls.
2015-10-22 17:45:47 -04:00
Jim Chen 4bce9b46f1 Bug 1211704 - Count key and IME events as UI events; r=esawin
GeckoEvent.KEY_EVENT and GeckoEvent.IME_EVENT used to count as UI events
for the hang monitor. We should count the new native calls as native
events too through this patch.
2015-10-22 17:45:47 -04:00
Jim Chen a252cfa4a2 Bug 1211704 - Convert IME event handler in nsWindow to native calls; r=esawin
Move the IME event handler implementation in nsWindow::OnIMEEvent to
individual native calls in nsWindow::Natives. This patch also moves most
member variables and helper functions related to IME to inside
nsWindow::Natives. This has the benefit of better organization and saves
some memory because only the top-level nsWindow now keeps IME states.

GetIMEComposition and RemoveIMEComposition are kept inside nsWindow
because they are not strictly related to IME events, and they are used
by some other event handlers in nsWindow.
2015-10-22 17:45:47 -04:00
Jim Chen aecd53254d Bug 1211704 - Add GeckoEditable native methods; r=esawin
These native methods will replace the IME events used by GeckoEditable.
2015-10-22 17:45:46 -04:00
Jim Chen 0ba77ec5dc Bug 1215139 - Discard stale native calls after nsWindow destruction; r=snorp
In the period after nsWindow is destroyed, but before disposeNative is
called, we should discard any pending native calls. These calls would
result in exceptions anyways because the nsWindow weak pointer is now
null. After disposeNative is called, any native calls will still result
in exceptions because in that case, it's Java code's responsibility to
ensure that calls are not made after disposeNative is called.
2015-10-22 17:45:46 -04:00
Jim Chen 1b57167834 Bug 1215139 - Separate out nsWindow closing from disposeNative; r=snorp
This patch adds a separate close() call to nsWindow, and let the
GeckoView decide whether to make that call or not. This lets us use the
static version of disposeNative. If nsWindow is destroyed in the
meantime, we still want to call disposeNative, which would only be
possible using the static version of disposeNative.
2015-10-22 17:45:46 -04:00
Jim Chen be2a6f1785 Bug 1215139 - Make NativeImpl::DisposeNative a static member; r=snorp
It's helpful to have a static DisposeNative when disposing of instances
that are still associated with a native object through an null weak
pointer. In that case, we can't call instance methods because the weak
pointer is null, but we can still call static methods.
2015-10-22 17:45:46 -04:00
Jim Chen 2fc5a1968c Bug 1210585 - Fix parameter names; r=me 2015-10-22 17:45:46 -04:00
Jim Chen bcd5cb22cb Bug 1210585 - Implement new key event handler in nsWindow; r=esawin
This patch implements a new key event handler in nsWindow to replace the
previous implementation.

nsWindow::HandleSpecialKey was removed because it's a relic from XUL
Fennec and I believe we no longer need it for native Fennec.
2015-10-22 17:45:46 -04:00
Jim Chen 1b1fe2fdef Bug 1210585 - Add native calls for key events; r=esawin
This patch adds a native call to GeckoEditable that will handle key
events instead of using GeckoEvent.KEY_EVENT.
2015-10-22 17:45:46 -04:00
Jim Chen 5df5e2c3dd Bug 1210585 - Generate bindings for KeyEvent; r=snorp
Autogenerate C++ bindings for the SDK class KeyEvent.
2015-10-22 17:45:45 -04:00
Carsten "Tomcat" Book b26729a177 merge mozilla-inbound to mozilla-central a=merge 2015-10-22 11:45:11 +02:00
Wes Kocher 5d86c836d6 Merge m-c to b2ginbound, a=merge CLOSED TREE 2015-10-21 16:40:00 -07:00
Fabrice Desré f48726bc24 Bug 1216839 - Crash when loading icon from android:// protocol with xhr r=sicking 2015-10-21 13:53:08 -07:00
Wes Kocher b8596f28a2 Merge inbound to m-c a=merge 2015-10-21 16:28:43 -07:00
Jim Chen aacb32b312 Bug 1207642 - Work around Dalvik bug by realigning stack on JNI entry. r=snorp
Use the force_align_arg_pointer attribute to force realigning stack at JNI entry points.
2015-10-21 08:27:00 -04:00
Wes Kocher e076823935 Merge fx-team to central, a=merge 2015-10-20 14:53:07 -07:00
Jared Wein 42419dbc74 Bug 1209602 - XUL: Implement disabling notifications for a site. r=MattN
--HG--
extra : rebase_source : 43ef8eaa19e6de5bce20a391dc248b1271a3e8d4
2015-10-15 22:58:56 -04:00
Carsten "Tomcat" Book 3198b767f9 merge mozilla-inbound to mozilla-central a=merge 2015-10-20 12:00:53 +02:00
Gijs Kruitbosch e182a0c49c Bug 1213845 - enable osk support on windows 8, but hide it behind a preference, r=jaws
--HG--
extra : commitid : HGvNNv1htDF
extra : rebase_source : 7c39d7903bfda6040a202d6784c5a4e469a7eeed
extra : amend_source : af5a54a5fe9f3120c30dfe6ac3b607da596364e9
2015-10-16 16:28:13 +01:00
Gijs Kruitbosch a9af7b7120 Bug 1211805 - rework keyboard detection for on-screen keyboard, r=jaws
--HG--
extra : commitid : 4W25HdPNNOS
extra : rebase_source : d49ee1de93691ee77d395d2ea1005103fdf8a3ec
extra : amend_source : 2fbd7b8f946fa8672d000ca0457d5cb1386d0569
2015-10-16 17:47:25 +01:00
Carsten "Tomcat" Book b4d42f370a merge mozilla-inbound to mozilla-central a=merge 2015-10-19 11:38:22 +02:00
Chris Peterson 7aaa6c74c3 Bug 1215892 - Fix clang's -Wimplicit-fallthrough warnings in gfx. r=BenWa
gfx/gl/GLBlitHelper.cpp:395:13 [-Wimplicit-fallthrough] unannotated fall-through between switch labels

gfx/layers/apz/src/AsyncPanZoomController.cpp:1087:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
gfx/layers/apz/src/AsyncPanZoomController.cpp:1196:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
gfx/layers/apz/src/GestureEventListener.cpp:411:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
gfx/layers/apz/util/APZEventState.cpp:292:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
gfx/layers/apz/util/APZEventState.cpp:295:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels

widget/GfxInfoBase.cpp:1015:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-10-17 22:57:38 -07:00
Phil Ringnalda 98800b5233 Merge m-c to b-i
CLOSED TREE
2015-10-17 20:00:32 -07: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
Nathan Froyd 583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Masayuki Nakano 07adf60de2 Bug 1215434 part.1 If scroll target is a plugin frame, EventStateManager::PostHandleEvent() should send the wheel event to the plugin frame even if APZC already handled it r=smaug 2015-10-17 15:50:09 +09:00
Wes Kocher cd1f054e01 Merge m-c to b2ginbound, a=merge 2015-10-16 12:33:40 -07:00
Hansu Kim 634317f368 Bug 1112712 - DOM key mapping for soft1 soft2 and call keys r=schien
--HG--
extra : amend_source : 12897e7dc7681ea285088153a258983e6b90e5a1
2015-10-16 11:04:11 -07:00
Nathan Froyd 82415576a3 Bug 1212027 - followup - qualify PBrowserParent in GonkPermission.cpp; r=me
Landing this on a CLOSED TREE
2015-10-16 22:04:07 -04:00
Carsten "Tomcat" Book 077cb7307e Merge m-c to mozilla-inbound 2015-10-16 14:45:26 +02:00
Carsten "Tomcat" Book 15c4d32dd7 merge mozilla-inbound to mozilla-central a=merge 2015-10-16 13:17:56 +02:00
Phil Ringnalda ddeeb376bd Back out changeset bb7e9c6a66c6 (bug 1209602) for crashing 2015-10-15 22:31:42 -07:00
Jared Wein 74567c8e04 Bug 1209602 - XUL: Implement disabling notifications for a site. r=MattN 2015-10-15 22:58:56 -04:00
Jared Wein 9f2bd66799 Backout bug 1209602 for busting OSX on a CLOSED TREE. r=me 2015-10-15 23:19:10 -04:00
Jared Wein 49b796aa96 Bug 1209602 - XUL: Implement disabling notifications for a site. r=MattN 2015-10-15 22:58:56 -04:00
Felipe Gomes af0b8f3d1f Bug 605813 - Re-enable test_taskbar_progress.xul on Windows. r=me 2015-10-15 18:39:28 -03:00
Masayuki Nakano 41c2c97fb2 Bug 376679 part.5 nsPluginInstanceOwner::ProcessEvent() should create WM_MOUSE*WHEEL message from WidgetWheelEvent data r=smaug+jimm 2015-10-16 13:19:27 +09:00
Sotaro Ikeda de007b81ed Bug 1210514 - Fix color inversion when BasicCompositor is used on gonk r=nical 2015-10-15 00:26:08 -07:00
Jim Chen 13b339824b Bug 1211919 - Allow quitting when asked explicitly; r=snorp
Right now we don't allow quitting Fennec when the last nsWindow closes
(e.g. when the last GeckoView is destroyed) because we want to keep the
Gecko thread running throughout the app process lifetime. However, when
we are asked to quit explicitly through nsIAppStartup::Quit, we should
release the hold on nsAppStartup and allow quitting to continue.
2015-10-15 15:49:48 -04:00
Nathan Froyd fe57e31ffe Bug 1212027 - part 7 - modify IPDL codegen to store sub-protocols in a hashtable rather than an array; r=jld,nical,cpearce,billm 2015-10-07 14:30:33 -04:00
Henri Sivonen 947db1c98d Bug 943294 - Leave dealing with legacy codepages for clipboard data to Windows itself. r=jmathies. 2015-10-13 09:46:51 +03:00
Gijs Kruitbosch a8cc7601a0 Bug 1203574 - use ShowNA for everything except aero basic / aero lite, to get caption button metrics, r=jimm
--HG--
extra : commitid : 8Q5THh7Z8r4
extra : rebase_source : 89ab1026c64ba514ccb27202b91b12ac67b492ff
2015-10-20 11:40:15 +01:00
byron jones 273ea1d9f5 Bug 1214511 - Show copies, page range selection, and more on the expanded OSX print dialog. r=mstange
--HG--
extra : rebase_source : 35c676a47b1a9a1fad43b0ae22db0f5fc7c1a170
2015-10-18 09:22:00 +02:00
Carsten "Tomcat" Book cb2752ed21 Merge m-c to mozilla-inbound 2015-10-20 12:32:20 +02:00
Henri Sivonen 8e7d52f4f7 Bug 1214616 - Remove encoding conversion methods from nsPrimitiveHelpers. r=emk. 2015-10-20 12:06:27 +03:00
Karl Tomlinson 066ed3cf45 bug 1216916 clean up when InvokeDragSessionWithImage/Selection() fails r=roc
--HG--
extra : rebase_source : b889d5e90430957af59086ec2c66e8d83e700e2f
2015-10-21 20:12:42 +13:00
Karl Tomlinson 92cf9adfb9 bug 1216916 clean up when InvokeDragSession() fails r=roc
--HG--
extra : rebase_source : 3e29c8454779b50d9eef9f4ea24aec537b8f865c
2015-10-21 22:16:40 +13:00
Henri Sivonen 41d99381eb Bug 943296 - widget/gtk/nsDragService.cpp should assume Gtk uses UTF-8. r=karlt. 2015-10-14 15:28:50 +03:00
Andrew Comminos ffd56892f2 Bug 1209774 - Transform from GDK coords to layout device pixels before calling DispatchEvent. r=karlt 2015-10-13 19:14:54 -07:00
David Anderson ac5a8fd819 Block some Radeon drivers that crash on D3D9. (bug 1213107, r=jrmuizel) 2015-10-13 16:45:40 -07:00
Carsten "Tomcat" Book 51460284dc Merge m-c to mozilla-inbound
--HG--
extra : rebase_source : ff3eb8adeb22d7c5166ce9fbb4ac693e0585b254
2015-10-13 12:27:01 +02:00
Reuben Morais 1e26ba3392 Bug 748391 - Implement markMessageRead on the Android backend. r=snorp 2015-10-13 01:08:51 -03:00