Lee Salzman
2d3967c30f
Bug 1019856 - avoid double-buffering in BasicCompositor when window allows it. r=mattwoodrow
2016-02-18 20:57:29 -05:00
Lee Salzman
05c95317a9
Bug 1245241
- part 4 - move SharedMemorySysV details into nsShmImage. r=nical
2016-02-18 10:56:15 -05:00
Karl Tomlinson
2e53e8b7fb
bug 1205199 keep the socket alive as long as the plug window r=acomminos
...
--HG--
extra : rebase_source : 773c5918bbc4b0d032e833e1e0ce7399a5d06c5b
2016-02-10 18:24:40 +13:00
Makoto Kato
8c5ad84243
Bug 1184936 - Need convert from UTF8 for printer name. r=karlt
...
MozReview-Commit-ID: ClWYKm87idC
--HG--
extra : rebase_source : ea6726ce8a98ae425bc49eed951584d1531cbd32
2016-02-09 16:34:20 +09:00
Birunthan Mohanathas
d7371d07d0
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Jordan
385a363a5d
Bug 1241239 - Fix missing 'using mozilla::LogLevel' in nsIdleServiceGTK.cpp. r=karlt
2016-01-31 04:48:00 +01:00
Kartikaya Gupta
6f5c11bbbf
Back out 3 csets from bug 1242690 for causing bug 1244549. r=backout
...
--HG--
extra : commitid : G7hFhHC4YDt
2016-01-31 14:44:58 -05:00
Phil Ringnalda
d381b4bca6
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
373593275e
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Kartikaya Gupta
a5ffd45fae
Bug 1242690 - Squash together DispatchAPZAwareEvent and DispatchInputEvent. r=dvander
...
--HG--
extra : commitid : D6XEv20670v
2016-01-29 16:31:15 -05:00
Chris Peterson
e8cb33d6f7
Bug 1242135 - Annotate intentional and fix unintentional switch fallthroughs in widget/gtk/. r=karlt
...
widget/gtk/nsNativeThemeGTK.cpp:1032:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
widget/gtk/nsNativeThemeGTK.cpp:1058:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
widget/gtk/nsNativeThemeGTK.cpp:1274:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
widget/gtk/nsNativeThemeGTK.cpp:1718:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
--HG--
extra : rebase_source : c358f36f66e3707894fd384d060e1b87a3b0f2ca
2016-01-22 22:44:06 -08:00
Sylvestre Ledru
ab4e3a0d42
Bug 1218816 - Remove useless semicolons. Found by coccinelle. r=Ehsan
...
--HG--
extra : rebase_source : 7d2cc56b6553cd7a8d848d3c660f30735bd82eec
2016-01-22 16:58:49 +01:00
Xidorn Quan
31969e33ee
Bug 1238536 part 2 - Do not trigger fullscreen changed when switching between fullscreen and minimized. r=karlt
...
--HG--
extra : source : b110bdb2afcc02f8a59a4398dee20825f7cc0fd0
2016-01-20 09:56:52 +11:00
Jonathan Kew
e6a4fbc47c
Bug 1239855 - Fix for widget positioning/sizing on hidpi displays under Gtk. r=emk
2016-01-18 12:24:06 +00:00
Nicholas Nethercote
76dfc05b83
Bug 1239589 - Change nsBaseWidget::mBounds to a LayoutDeviceIntRect. r=kats.
...
This patch removes dozens of ToUnknown/FromUnknown conversions and doesn't add
any new ones, which is nice. It also removes UntypedDevPixelsToCocoaPoints(),
which is no longer needed.
--HG--
extra : rebase_source : 81288126b582402408518aecfc304bc128e05d15
2015-11-22 20:32:29 -08:00
Lee Salzman
466b5fb4c9
Bug 1239040 - Fix DrawTargetCairo/DrawTargetSkia LockBits and BorrowedXlibDrawable to work inside PushLayer. r=jrmuizel
2016-01-13 13:11:07 -05:00
Nicholas Nethercote
7892cfcede
Bug 1239530 (part 2) - Use LayoutDevice coordinates in {Start,End}RemoteDrawingInRegion() and related functions. r=kats.
...
--HG--
extra : rebase_source : b5bd2d6822904a188242efa6e46aaed9f96a15b9
2015-12-02 22:29:54 -08:00
Jonathan Kew
84b8c3a0a4
Bug 890156 - patch 0.3 - Create a version of nsIWidget::Create that takes Desktop pixels, because that's what we actually need to pass in some cases. r=mstange
2016-01-13 07:32:55 +00:00
Jonathan Kew
3d48351585
Bug 890156 - patch 0.2 - Remove the (unused) aRect parameter from nsBaseWidget::BaseCreate. r=kats
2016-01-13 07:32:55 +00:00
Jonathan Kew
df4ffa594d
Bug 890156 - patch 0.1 - Switch from 'display pixels' to 'desktop pixels' terminology in widget code. r=kats
2015-11-25 19:11:58 +00:00
Xidorn Quan
4bbc84cc04
Bug 1189622 part 3 - Return failure if fullscreen support is not available for the X11 desktop. r=karlt
...
--HG--
extra : source : 26b74750e3c4ff26bc8e467a7d2db6699864d319
extra : amend_source : beb5649f71ff14f68b2073a761159857242ce178
2016-01-12 15:18:47 +11:00
Nicholas Nethercote
ec89bbf7f2
Bug 1237151 (part 3) - Remove ignored qualifiers in all remaining code. r=froydnj.
2016-01-05 17:08:45 -08:00
Jan Horak
5a90e8dbd8
Bug 1205643 - Move scrollbar borders to slider to receive button events. r=karlt
2016-01-06 23:55:00 -05:00
Bob Owen
fdd98bfb6b
Bug 1156742 Part 9: Add a new nsIDeviceContextSpec for proxied printing. r=roc
...
This also changes aPrintToFileName parameter for BeginDocument to an nsAString& from char16_t*.
Having a char16_t* caused a pain with VS2105 where wchar_t != char16_t (as on VS2103), after it had been sent over IPDL.
This could have been worked around with casting, but this seemed like the tidier solution.
2016-01-05 10:08:57 +00:00
Xidorn Quan
fa0a8a0dab
Bug 1221659 - Make fullscreen transition on Linux take the designed time. r=roc
...
--HG--
extra : source : 21cfbbcc327aff9b56a8f10579d9dd485afc9be3
2016-01-05 10:00:37 +11:00
Nicholas Nethercote
13900c6d32
Bug 1232219 (part 2) - Fix -Wunused warnings in widget/gtk/. r=karlt.
...
--HG--
extra : rebase_source : 795375a10cb8358a83be25560823be13c50b5180
2015-12-16 22:24:21 -08:00
Jan Horak
76cccd6b7d
Bug 1205643 - "Wrong scrollbar border prevents scrolling to cursor when mouse is on the screen edge". r=karlt
2015-12-22 05:05:00 +01:00
Wes Kocher
a5249b6201
Backed out 25 changesets (bug 1156742) for build bustage in SkOSLibrary_win.cpp CLOSED TREE
...
Backed out changeset 31c0aadae8e7 (bug 1156742)
Backed out changeset f08df57ff700 (bug 1156742)
Backed out changeset 90c026d5dcb1 (bug 1156742)
Backed out changeset 8c6d14d80238 (bug 1156742)
Backed out changeset 72d86b0471c9 (bug 1156742)
Backed out changeset 363829accc09 (bug 1156742)
Backed out changeset 16360fe94d54 (bug 1156742)
Backed out changeset 5355c636a81a (bug 1156742)
Backed out changeset 18844d26b873 (bug 1156742)
Backed out changeset 99df86591613 (bug 1156742)
Backed out changeset 7ac1c7e15a11 (bug 1156742)
Backed out changeset de352000aae1 (bug 1156742)
Backed out changeset 4dd34ea230c6 (bug 1156742)
Backed out changeset 48c6ce65a5c2 (bug 1156742)
Backed out changeset dd52947f73c6 (bug 1156742)
Backed out changeset 5fe429ee880c (bug 1156742)
Backed out changeset dedca8fb19b0 (bug 1156742)
Backed out changeset d748b1354f92 (bug 1156742)
Backed out changeset 7f8e59588518 (bug 1156742)
Backed out changeset b90d302c57f6 (bug 1156742)
Backed out changeset 7a4da453572c (bug 1156742)
Backed out changeset a40eea914519 (bug 1156742)
Backed out changeset 99a8859afcdb (bug 1156742)
Backed out changeset 4934e88b2d7a (bug 1156742)
Backed out changeset 79733166f05e (bug 1156742) for build bustage in SkOSLibrary_win.cpp CLOSED TREE
--HG--
extra : amend_source : beeb6abbcc724b79ac166e828efa78dc4c5301da
2015-12-21 13:47:33 -08:00
Bob Owen
529a96f97d
Bug 1156742 Part 9: Add a new nsIDeviceContextSpec for proxied printing. r=roc
...
This also changes aPrintToFileName parameter for BeginDocument to an nsAString& from char16_t*.
Having a char16_t* caused a pain with VS2105 where wchar_t != char16_t (as on VS2103), after it had been sent over IPDL.
This could have been worked around with casting, but this seemed like the tidier solution.
2015-12-21 20:33:13 +00:00
Masayuki Nakano
da7a2f4f8d
Bug 1179632 part.2 WidgetCompositionEvent should store NativeIMEContext which caused the event and PuppetWidget should store it for GetNativeIMEContext() r=smaug, sr=smaug
2015-12-11 15:15:57 +09:00
Masayuki Nakano
6cad726628
Bug 1179632 part.1 native IME context should not be stored in InputContext but should be able to retrieve with nsIWidget::GetNativeData() r=smaug
2015-12-11 15:15:57 +09:00
Nicholas Nethercote
82700fe5f9
Bug 1230047 (part 2) - Make several PaintWindow() functions use LayoutDevice coordinates. r=kats.
...
Specifically, the PaintWindow() functions in the following classes:
- nsIWidgetListener, and its subclasses nsView and nsWebBrowser;
- nsChildView;
- nsWindow (the one in widget/uikit/);
- nsViewManager.
--HG--
extra : rebase_source : e5e0af18c57f1c44995832b403edc7eee939dc31
2015-12-02 21:45:41 -08:00
Nicholas Nethercote
5a37352d4a
Bug 1229665 - Convert widget clip regions to LayoutDevicePixels. r=botond.
...
--HG--
extra : rebase_source : 315ac98884f84f3b5d53f156f3e02ddde3a57dbc
2015-12-02 14:32:55 -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
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
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
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
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
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
Lee Salzman
6fea42974e
Bug 1224974 - fix GTK shaped window drawing. r=bas
2015-11-19 17:23:43 -05: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
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
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
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
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
Matt Brubeck
0954e27b0a
Bug 431620 - Remove unused function GetToggledKeyState [r=roc]
2015-11-16 16:06:41 -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
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
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
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
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
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
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
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
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
Christoph Kerschbaumer
1ee2473768
Bug 1206964 - Use channel->AsyncOpen2() in netwerk/base/nsNetUtil.cpp (r=sicking)
2015-11-02 17:31:08 -08: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
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
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
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
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
Makoto Kato
26c8790fb2
Bug 978679. Implement touch events for GTK3. r=karlt
...
--HG--
extra : commitid : 7Sm7XcTb8Do
extra : rebase_source : c10ad90f03b90eb34349edc80be110b90cc2a663
2015-04-30 08:29:34 +12:00
Carsten "Tomcat" Book
81454198ef
Backed out changeset 2f909d41108b (bug 978679) for bustage on a CLOSED TREE
2015-10-19 13:22:55 +02:00
Makato Kato
5a68a1b8d5
Bug 978679 - Implement touch events for GTK3. r=karlt
...
--HG--
extra : commitid : 2tbZZf41zmN
extra : rebase_source : d861252c9bf78b6ffd68dd2c7f14fbf4ef5afdf1
2015-10-19 23:04:52 +13:00
Arnaud Bienner
d7ee653555
Bug 1198256 - Reactivate the old Gtk color picker for now. r=karlt
...
--HG--
extra : rebase_source : 276de3f70ed876a75fb4f768a03e575ffb33ce04
2015-10-17 14:57:22 +02: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
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
Andrew Comminos
6eb995ca1d
Bug 1187385 - Use GTK style padding for entry widgets. r=karlt
2015-10-13 00:08:21 -07:00
Martin Stransky
5a246716d1
Bug 1210249 - don't mess with toplevel widget when client side decorations are enabled. r=karlt
2015-10-12 09:56:00 +02:00
Lee Salzman
17a52110f3
Bug 1196494 - part 2: only update nsWindow client offset when _NET_FRAME_EXTENTS property actually changes. r=eihrul
2015-10-09 09:24:48 -04:00
Masayuki Nakano
c892b229d9
Bug 1211352 part.3 nsIWidget::GetIMEupdatePreference() for each platform should not request any notifications while a plugin has focus r=m_kato
2015-10-10 10:21:02 +09:00
Andrew Comminos
38adbbea67
Revert "Bug 1209774 - Transform from GDK coords to layout device pixels before calling DispatchEvent. r=karlt"
...
This reverts commit bc5ba9c53f2a2c08a17b028c0aa8ff24e35847b6.
2015-10-09 09:36:13 -07:00
Andrew Comminos
b591904211
Bug 1209774 - Transform from GDK coords to layout device pixels before calling DispatchEvent. r=karlt
2015-10-09 09:22:38 -07:00
Andrew Comminos
24d5f445ce
Bug 1176929 - Disable Ctrl-K in GtkEntry unless custom key bindings are
...
set on GTK3. r=karlt
2015-10-09 09:22:37 -07:00
Petr Jašíček
2cfd2719f5
Bug 1210086 - Fix warnings caused by toolbar buttons in gtk2. r=karl
2015-10-01 04:30:00 +02:00
Andrew Comminos
ca64242190
Bug 1206516 - Use temporary widget to construct style context for GtkInfoBar. r=karlt
2015-09-29 19:32:00 +02:00
James Willcox
158374ed78
Bug 1182665 - Adjust tile sizes depending on the screen size r=nical
2015-09-28 09:36:57 -05:00
Nicholas Nethercote
342466f878
Bug 1208345 - Remove gfxContext::GraphicsOperator. r=jwatt.
...
Also...
- Rename various "operator" identifiers as "op" to match |CompositionOp|.
- Rename |nsBackgroundLayerState::mCompositingOp| as |mCompositionOp| to match
|CompositionOp|.
- Remove some deprecated functions that are no longer needed.
--HG--
extra : rebase_source : 74e9b6eecf6f442e27cc18fd4ae6f668a45188aa
2015-09-24 22:38:58 -07:00
Martin Stransky
952a7c1bfd
Bug 1195002 - draw to MozContainer window to allow GTK to draw decorations, r=karlt
2015-09-24 04:50:00 +02:00
Nicholas Nethercote
842dd1cf5a
Bug 1207741 - Remove gfxIntSize. r=nical.
...
gfxIntSize is just a typedef of gfx::IntSize, so this is very mechanical. The
only tricky part is deciding for each occurrence whether to replace it with
IntSize, gfx::IntSize or mozilla::gfx::IntSize; in all cases I went with the
shortest one that worked given the existing "using namespace" declarations.
--HG--
extra : rebase_source : 67fd15f87222b16defa70ef795c6d77dfacf1c36
2015-09-23 11:49:05 -07:00
Wes Kocher
407f41a2b0
Backed out changeset 1f327c67db57 (bug 1195002) for likely breaking ASAN/mulet tests CLOSED TREE
2015-09-23 09:28:51 -07:00
Martin Stransky
6e2baa8bd8
Bug 1195002 - "titlebar overlaps chrome UI on Linux Elementary OS Freya / with GTK_CSD (Gtk3)". r=karlt
2015-09-23 00:58:00 +02:00
Andrew Comminos
e5e5f9d99f
Bug 1170342 - Disable XInput2 by default on GTK3. r=karlt
2015-09-22 22:25:22 -07:00
Karl Tomlinson
4ebdbb181a
bug 1206564 skip copying of listeners r=roc
...
--HG--
extra : rebase_source : 04eeacb4ae74459c6963f3bfcacca920974fda2c
2015-09-19 00:51:03 +12:00
Lee Salzman
7575a5bb1e
Bug 1205741 - add xpm and svg to supported gdk-pixbuf formats. r=acomminos,dveditz
2015-09-17 15:01:51 -04:00
Lee Salzman
4fbc44de5a
Bug 1205045 - remove GTK calls from compositor thread. r=jmuizelaar
2015-09-15 16:46:39 -04:00
Nicolas Silva
9d2f48b66c
Bug 1156182 - Prevent widgets from creating a LayerManager during shutdown. r=sotaro
2015-09-15 17:58:06 +02:00
Lee Salzman
e7ba3880f4
Bug 1203078 - whitelist gdk-pixbuf image formats. r=dan
2015-09-11 00:34:32 -04:00
Robert O'Callahan
64f64d5592
Bug 1191293. Remove harmless assertion that is triggered by GTK3. r=masayuki
...
--HG--
extra : commitid : 7Lvn48kMqt6
extra : rebase_source : 6de29b34800555f4cfca78260fd784f6b54f89e5
2015-08-31 15:11:04 +12:00
Wes Kocher
ca0fa7c1cb
Backed out 4 changesets (bug 1182665) for android reftest orange CLOSED TREE
...
Backed out changeset 719a4fbded10 (bug 1182665)
Backed out changeset 9559cead8d08 (bug 1182665)
Backed out changeset 4080fb4b9a7f (bug 1182665)
Backed out changeset c8549221c366 (bug 1182665)
2015-09-11 11:21:56 -07:00
James Willcox
ec43fd4643
Bug 1182665 - Adjust tile sizes depending on the screen size r=nical
2015-09-11 09:09:19 -05:00
Masayuki Nakano
888b2103ea
Bug 895274 part.194 Rename NS_COMPOSITION_COMMIT to eCompositionCommit r=smaug
2015-09-11 21:21:27 +09:00
Masayuki Nakano
ed4dac1ca6
Bug 895274 part.193 Rename NS_COMPOSITION_CHANGE to eCompositionChange r=smaug
2015-09-11 21:21:27 +09:00
Masayuki Nakano
0f2bfad9b1
Bug 895274 part.190 Rename NS_COMPOSITION_START to eCompositionStart r=smaug
2015-09-11 21:21:27 +09:00
Masayuki Nakano
966f685af3
Bug 895274 part.188 Rename NS_COMPOSITION_COMMIT_AS_IS to eCompositionCommitAsIs r=smaug
2015-09-11 21:21:26 +09:00
Masayuki Nakano
1d6a202900
Bug 895274 part.187 Rename NS_QUERY_TEXT_RECT to eQueryTextRect r=smaug
2015-09-11 21:21:26 +09:00
Masayuki Nakano
6b885d1496
Bug 895274 part.184 Rename NS_WHEEL_WHEEL to eWheel r=smaug
2015-09-11 01:59:54 +09:00
Masayuki Nakano
ac6c3eb8f7
Bug 895274 part.168 Rename NS_CONTENT_COMMAND_REDO to eContentCommandRedo r=smaug
2015-09-11 01:59:53 +09:00
Masayuki Nakano
a8efbc56fa
Bug 895274 part.167 Rename NS_CONTENT_COMMAND_UNDO to eContentCommandUndo r=smaug
2015-09-11 01:59:53 +09:00
Masayuki Nakano
0ac2124d50
Bug 895274 part.166 Rename NS_CONTENT_COMMAND_DELETE to eContentCommandDelete r=smaug
2015-09-11 01:59:52 +09:00
Masayuki Nakano
62ac576782
Bug 895274 part.165 Rename NS_CONTENT_COMMAND_PASTE to eContentCommandPaste r=smaug
2015-09-11 01:59:52 +09:00
Masayuki Nakano
45c425c6fb
Bug 895274 part.164 Rename NS_CONTENT_COMMAND_COPY to eContentCommandCopy r=smaug
2015-09-11 01:59:52 +09:00
Masayuki Nakano
639ddbf13f
Bug 895274 part.163 Rename NS_CONTENT_COMMAND_CUT to eContentCommandCut r=smaug
2015-09-11 01:59:52 +09:00
Masayuki Nakano
4a34ce078a
Bug 895274 part.154 Rename NS_QUERY_CARET_RECT to eQueryCaretRect r=smaug
2015-09-10 10:40:06 +09:00
Masayuki Nakano
e463292274
Bug 895274 part.153 Rename NS_QUERY_TEXT_CONTENT to eQueryTextContent r=smaug
2015-09-10 10:40:05 +09:00
Masayuki Nakano
a8fd5ffc76
Bug 895274 part.152 Rename NS_QUERY_SELECTED_TEXT to eQuerySelectedText r=smaug
2015-09-10 10:40:05 +09:00
Masayuki Nakano
d177b04a17
Bug 895274 part.145 Rename NS_SELECTION_SET to eSetSelection r=smaug
2015-09-08 23:33:38 +09:00
Masayuki Nakano
3394edcb4a
Bug 895274 part.83 Rename NS_DRAGDROP_EXIT to eDragExit r=smaug
2015-09-02 15:08:02 +09:00
Masayuki Nakano
811d0fac7e
Bug 895274 part.81 Rename NS_DRAGDROP_OVER to eDragOver r=smaug
2015-09-02 15:08:02 +09:00
Masayuki Nakano
90a5ee8540
Bug 895274 part.80 Rename NS_DRAGDROP_DRAG to eDrag r=smaug
2015-09-02 15:08:02 +09:00
Masayuki Nakano
d2a0b19a04
Bug 895274 part.79 Rename NS_DRAGDROP_END to eDragEnd r=smaug
2015-09-02 15:08:02 +09:00
Masayuki Nakano
7b7a44a5ac
Bug 895274 part.77 Rename NS_DRAGDROP_DROP to eDrop r=smaug
2015-09-02 15:08:01 +09:00
Petr Jašíček
ff26d1d901
Bug 1198256 - Replace deprecated GtkColorSelectionDialog with GtkColorChooserDialog in Gtk3. r=karlt
2015-09-01 04:09:00 -04:00
Masayuki Nakano
cafe2dfc67
Bug 895274 part.51 Rename NS_CONTEXTMENU to eContextMenu r=smaug
2015-09-01 00:20:06 +09:00
Nicholas Nethercote
f44287005f
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.
--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Xidorn Quan
f46a93871a
Bug 1196163 part 1 - Use nsSizeMode instead of int32_t for nsIWidget::{SizeMode,SetSizeMode}. r=roc
...
--HG--
extra : source : cf438b9cb26ae512f792f075e4e22537ad6a38a7
2015-08-29 11:12:41 +10:00
Masayuki Nakano
bd4bf17fbd
Bug 895274 part.29 Rename NS_MOUSE_EXIT_WIDGET to eMouseExitFromWidget r=smaug
2015-08-29 08:58:31 +09:00
Masayuki Nakano
9895f90eca
Bug 895274 part.28 Rename NS_MOUSE_ENTER_WIDGET to eMouseEnterIntoWidget r=smaug
2015-08-29 08:58:31 +09:00
Masayuki Nakano
db00b74a82
Bug 895274 part.27 Rename NS_MOUSE_BUTTON_DOWN to eMouseDown r=smaug
2015-08-29 08:58:30 +09:00
Masayuki Nakano
30fdd39afb
Bug 895274 part.26 Rename NS_MOUSE_BUTTON_UP to eMouseUp r=smaug
2015-08-29 08:58:30 +09:00
Masayuki Nakano
717c415187
Bug 895274 part.25 Rename NS_MOUSE_MOVE to eMouseMove r=smaug
2015-08-29 08:58:29 +09:00
Masayuki Nakano
ba5b3f3fe6
Bug 895274 part.11 Rename NS_KEY_DOWN to eKeyDown r=smaug
2015-08-29 08:58:27 +09:00
Masayuki Nakano
28c9f34179
Bug 895274 part.10 Rename NS_KEY_UP to eKeyUp r=smaug
2015-08-29 08:58:27 +09:00
Masayuki Nakano
d311a11cc1
Bug 895274 part.9 Rename NS_KEY_PRESS to eKeyPress r=smaug
2015-08-29 08:58:27 +09:00
Andrew Comminos
906ea4c271
Bug 1197059 - Disable JasPer support in GDK-PixBuf. r=karlt
2015-08-28 17:15:27 -04:00
Ryan VanderMeulen
91d401abec
Backed out changeset 376965bcb1f7 (bug 1197059) for Valgrind leaks.
2015-08-27 19:20:32 -04:00
Andrew Comminos
1d59f8d210
Bug 1197059 - Disable JasPer support in GDK-PixBuf. r=karlt
2015-08-27 18:35:14 -04:00
Masayuki Nakano
0d22745cda
Bug 895274 part.3 Make the enum of event messages a named enum IGNORE IDL r=smaug
2015-08-26 21:56:59 +09:00
Chris Peterson
7d28169642
Bug 1198128 - Fix -Wshadow warnings in widget/gtk. r=karlt
2015-08-23 17:55:09 -07:00
Lee Salzman
c864a9b192
Bug 1194397 - Force gdk_window_ensure_native on gdk window creation. r=acomminos
...
--HG--
extra : rebase_source : 5c40a4fc9f3bef1d1034609e2e6e5f03dc36c88b
2015-08-25 18:42:40 -04:00
Brian Birtles
3ae8210730
Fix bustage from changeset 5c5dc6f367ac (bug 1026803) r=bustage on CLOSED TREE
...
--HG--
extra : rebase_source : 34d0ad10e3cd76e558ce8792672e3a6289a84edb
2015-08-24 15:24:42 +02:00
Brian Birtles
2a6e6986a9
Bug 1026803 part 8 - Add ability for CurrentX11TimeGetter to perform an asynchronous request of the current time; r=karlt
...
--HG--
extra : rebase_source : 0f0fa181535e5c0f132cbefc9bc6d3ae2bb69c50
2015-08-12 10:35:38 +09:00
Brian Birtles
68ca603000
Bug 1026803 part 7 - Store the CurrentX11TimeGetter as a member object on nsWindow; r=karlt
...
In preparation for making CurrentX11TimeGetter capable of performing an
asynchronous request of the current time, this patch revises the lifetime of
such objects so that they are stored on nsWindow.
--HG--
extra : rebase_source : 486c81ad5e64ee6420907babcc97262412ff5caa
2015-08-11 17:13:44 +09:00
Brian Birtles
9a127183cd
Bug 1026803 part 5 - Convert CurrentXXXTimeGetter classes from functors to helper classes; r=karlt
...
Previously the CurrentX11TimeGetter and CurrentWindowsTimeGetter classes acted
as functors with a single operator() method. In preparation for handling clock
skew, this patch refactors these two helper classes into regular classes with
two named methods:
GetCurrentTime which matches the existing operator() method, and
GetTimeAsyncForPossibleBackwardsSkew which will be used when possible
backwards skew is detected to fetch the current time asynchronously.
Some renaming is also included to match the expanded role of these classes.
--HG--
extra : rebase_source : 4d46e09bd09cbb0dbffcb0aa46742157384d37e8
2015-02-19 14:10:00 +09:00
Brian Birtles
1f60d5ca37
Bug 1026803 part 4 - Convert GTK native event times to timestamps; r=karlt
...
This patch adds a helper class to widgets/gtk/nsWindow.cpp similar to the one in
widgets/windows/nsWindow.cpp and uses it to convert native event times to
mozilla::TimeStamp objects on events returned by this class.
This is similar to the operations performed for Windows native event times that
were added in bug 77992.
--HG--
extra : rebase_source : a6c4769e7da88bb4644edf8954c923a88e1c04fd
2015-08-11 16:40:34 +09:00
Masayuki Nakano
66f2c27305
Bug 895274 part.1 Rename WidgetEvent::message to WidgetEvent::mMessage r=smaug
2015-08-22 10:34:51 +09:00
Andrew Comminos
bf63f14959
Bug 1187203 - Implement GtkInfoBar appearance style on GTK3. r=karlt
2015-08-21 16:38:15 -04:00
Masayuki Nakano
a8be9560f4
Bug 1189396 part.3 Make IMENotification::SelectionChangeData useful even outside of IMENotification r=smaug
2015-08-22 01:43:41 +09:00
Mike Conley
5eee8c5286
Bug 1184604 - Lazily override printer output format on Linux if not already set. r=karlt
...
GTK versions prior to 2.24 incorrectly advertise themselves as able to print PDFs,
even when they can't. We were wholesale setting the output format to PostScript for
these older GTK versions, without giving the user the opportunity to override
it. We now lazily determine whether or not the output should be in PostScript,
which should give the user the opportunity to override.
--HG--
extra : commitid : A30C51CukFd
extra : rebase_source : 8800e463753a554902cc22fe6e973dfdab1d7c0d
extra : amend_source : 43b58fd7c2c1605351cbb24d216fb5f781625a3a
2015-07-31 13:53:49 -04:00
Masayuki Nakano
c45505d74b
Bug 299603 part.8 Rename aLastDispatchedData with aCompositionString in IMContextWrapper::CreateTextRangeArray() r=m_kato
2015-08-19 16:37:39 +09:00
Masayuki Nakano
a115b2e0b3
Bug 299603 part.7 IMContextWrapper::CreateTextRange() should convert the caret offset from offset in characters to offset in UTF-16 r=m_kato
2015-08-19 16:37:39 +09:00
Masayuki Nakano
90cbd5150d
Bug 299603 part.6 Guess the meaning of each clause in the composition string with caret position r=m_kato
2015-08-19 16:37:39 +09:00
Masayuki Nakano
3cbdc83c7d
Bug 299603 part.3 IMContextWrapper::SetTextRange() shold set the style of the range which is specified by the IME r=m_kato
2015-08-19 16:37:39 +09:00
Masayuki Nakano
7d2b010aeb
Bug 299603 part.2 IMContextWrapper::SetTextRange() should initialize the range offsets and fail if the range is collapsed r=m_kato
2015-08-19 16:37:39 +09:00
Masayuki Nakano
d943ae3d8c
Bug 299603 part.1 IMContextWrapper should have a method to initialize a TextRange r=m_kato
2015-08-19 16:37:39 +09:00
Xidorn Quan
f63a930fb6
Bug 1190316 - Apply fullscreen transition on only the target monitor. r=roc
...
--HG--
extra : source : b3015229dd6997970ce2634b6fcf393f2f702e85
2015-08-13 08:53:53 +10:00
Nick Robson
49e872dc7e
Bug 1075089 - Move popup menu frame offset to LookAndFeel and fix default offset for OS X. r=Enn
...
--HG--
extra : rebase_source : 7817fea6ea95e9dfc486f797114e1cfb778d5230
2015-08-04 16:41:00 -04:00
Gabor Krizsanits
8996db91c1
Bug 863512 - Fixing xul dnd panels for linux. r=enndeakin
2015-08-05 13:19:44 +02:00
Andrew Comminos
90d3c44131
Bug 1189028 - Draw a toplevel popup behind popup menus on GTK3. r=karlt
2015-08-06 14:20:00 -04:00
Lee Salzman
0c7ff08984
Bug 1184009 - Limit gtk file picker preview source sizes. r=acomminos
2015-08-07 12:24:22 -04:00
Petr Jasicek
e19231c364
Bug 1160154 - Decrease padding between icons in the personal toolbar with Gtk3 by using "image-button" css style class. r=karlt
...
CLOSED TREE
--HG--
extra : rebase_source : b8c2ed8403294ac2b1931141794f184af2a11cbd
2015-08-07 01:09:00 -04:00
Lee Salzman
7ac4d202b1
Bug 1190935 - Fix race condition in gtk window EndRemoteDrawingInRegion. r=nical
2015-08-06 11:02:03 -04:00
Masayuki Nakano
61074e4e20
Bug 1191213 nsBaseWidget::NotifyWindowMoved() shouldn't notify IME when native IME handler doesn't have focus r=m_kato
2015-08-06 15:57:58 +09:00
Birunthan Mohanathas
7315345693
Bug 1191100
- Remove XPIDL signature comments in .cpp files. r=ehsan
...
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Carsten "Tomcat" Book
060e1dcfe0
Backed out changeset 7edc58c272f1 (bug 1075089) for causing OS X 10.6 marionette failures in test_single_finger_desktop.py testSingleFingerMouse.test_double_tap on a CLOSED TREE
2015-07-31 14:49:40 +02:00
Andrew Comminos
5bd79fe54d
Bug 1187237 - Correct range slider drawing on GTK3. r=karlt
...
--HG--
extra : rebase_source : 0f3a2416b4ca08c913b51303f69e06b8cd859324
2015-07-30 11:29:00 +02:00
Nick Robson
58f8aa5dac
Bug 1075089 - Moved popup menu frame offset to LookAndFeel, fixed default offset for OS X. r=enn
2015-07-30 15:00:00 +02:00
Mike Conley
20ee63d181
Bug 1145916 - [e10s] Defer starting a GTK Print Job during printer enumeration until the next tick. r=karlt
...
Before, we were calling nsDeviceContextSpecGTK::StartPrintJob within the
gtk_enumerate_printers callback function as soon as we found the printer
we wanted to print from. This was causing the GTK printing backend to get
confused about what the capabilities of the selected printer were when running
in the content process, due to https://bugzilla.gnome.org/show_bug.cgi?id=753041 .
This moves the call to StartPrintJob to the next tick of the event loop.
--HG--
extra : commitid : CZ5P0hh51QC
extra : rebase_source : 279c6c56a2a22b42d5bbf094fd976a4d8f9c8031
2015-07-27 17:11:46 -04:00
Andrew Comminos
c14fa3aed4
Bug 1188138 - Prevent default buttons from being drawn twice on GTK3. r=karlt
2015-07-27 15:08:00 -04:00
Andrew Comminos
caa85e1906
Bug 1186661 - Draw drag and drop alpha pixmap correctly on GTK3. r=karlt
2015-07-28 07:13:00 -04:00
Andrew Comminos
4800e74696
Bug 1186661 - Use monitors-changed signal to update screen manager on GTK. r=karlt
2015-07-25 19:07:00 -04:00
Andrew Comminos
482e0ca788
Bug 1187649 - Free constructed widget path in nsLookAndFeel on GTK. r=karlt
2015-07-28 06:28:00 -04:00
Carsten "Tomcat" Book
9f95ffe014
Backed out changeset ac04ab483fba (bug 1187649) for bustage on a CLOSED TREE
2015-07-28 13:05:48 +02:00
Andrew Comminos
0dbd6187d5
Bug 1187649 - Free constructed widget path in nsLookAndFeel on GTK. r=karlt
2015-07-27 11:21:00 +02:00
Mike Hommey
6a956c6f97
Bug 1187533 - Change how Gtk+2 plugin-container is started on Gtk+3 builds. r=billm
...
The current situation looks like this: Firefox launches the plugin-container
with two environment variables set:
LD_LIBRARY_PATH=$FIREFOX_DIR:$LD_LIBRARY_PATH
LD_PRELOAD=$FIREFOX_DIR/libmozgtk2.so:$LD_PRELOAD
libxul.so has a dependency on libmozgtk.so (without "2"), but libmozgtk2.so
has a SONAME of libmozgtk.so, so ld.so recognizes libmozgtk2.so as a
dependency of libxul.so, and uses it instead of the actual libmozgtk.so,
making the plugin-container use Gtk+2 instead of Gtk+3 to load Gtk+2 plugins.
Now, ASan sets things up in shared libraries such that they needs a symbol
from the executable binary. So in the case of plugin-container, the
plugin-container executable itself contains some ASan symbols such as
__asan_init_v3. libmozgtk2.so, OTOH, contains an undefined weak reference to
that symbol, like all other Firefox shared libraries.
Since libmozgtk2.so is LD_PRELOADed, it is loaded _before_ the
plugin-container executable, and __asan_init_v3 can't be resolved.
Disabling ASan for libmozgtk2.so would be a possibility, but the build system
doesn't really know how to do that, and filtering out -fsanitize=address
can be fragile.
The alternative possibility, implemented here, is to change the library
loading strategy, renaming libmozgtk2.so to gtk2/libmozgtk.so, and setting
the following environment variable when Firefox launches the plugin-container:
LD_LIBRARY_PATH=$FIREFOX_DIR/gtk2:$FIREFOX_DIR:$LD_LIBRARY_PATH
2015-07-28 08:19:13 +09:00
Makoto Kato
51adbe4deb
Bug 1181000 - Use logical pixel to set IME candidate window. r=karlt
2015-07-27 14:37:02 +09:00
Masayuki Nakano
b38c1b7f77
Bug 1186017 part.2 Rename GetBoolName() in IMContextWrapper.cpp to ToChar() r=kerlt
2015-07-27 08:23:04 +09:00
Masayuki Nakano
b45368f471
Bug 1186017 part.1 Rename nsGtkIMModule to mozilla::widget::IMContextWrapper r=m_kato+kerlt
...
--HG--
rename : widget/gtk/nsGtkIMModule.cpp => widget/gtk/IMContextWrapper.cpp
rename : widget/gtk/nsGtkIMModule.h => widget/gtk/IMContextWrapper.h
2015-07-27 08:23:04 +09:00
Xidorn Quan
7ec583cc8f
Bug 1160014 part 6 - Implement fullscreen transition for GTK. r=roc
...
--HG--
extra : source : ae8bf45b7efcd297ad92039b5ea6985dbfa725e9
2015-07-24 09:45:00 +10:00
Mike Hommey
9ca903bc81
Bug 1063359 - Unconditionally use -Wl,--no-as-needed when building with GNU ld/gold. r=mshal
2015-07-24 06:49:49 +09:00
Lee Salzman
b54a311fe2
Bug 1184009 - Limit image preview sizes. r=acomminos
2015-07-21 13:16:44 -04:00
Masayuki Nakano
9d9bd4c975
Bug 1184449 part.1 IMENotifiation::SelectionChangeData should store selected string r=smaug
2015-07-22 12:40:32 +09:00
Wes Kocher
ff3207dea9
Backed out changeset b3d392163411 (bug 1160014) (Linux part), too CLOSED TREE
2015-07-21 16:54:09 -07:00
Xidorn Quan
1828b64f06
Bug 1160014 part 6 - Implement fullscreen transition for GTK. r=roc
...
--HG--
extra : source : 2bcd5eb4c07c7ec201a8a023756d3bba18575cdd
2015-07-22 09:07:46 +10:00
Masayuki Nakano
0c318e2eff
Bug 1176959 nsGtkIMModule shouldn't commit composition when a selection change is notified but it was caused by selection set event r=m_kato
2015-07-17 13:27:32 +09:00
Andrew Comminos
3792527c55
Bug 1182972 - Fallback to GTK monitor scale factor when mGdkWindow is null. r=karlt
2015-07-15 20:26:00 -04:00
Andrew Comminos
ab856f24b0
Bug 1173907 - Don't use gtk_render_activity for drawing progress chunks on GTK versions above 3.13.7. r=karlt
2015-07-15 11:47:00 -04:00
Andrew Comminos
10a8163b58
Bug 1179780 - Render opaque scrollbar troughs in the root viewport on GTK3. r=karlt
...
--HG--
extra : rebase_source : 2fe41b3c52e1b692e1a18b3c8123fc87569f9a57
2015-07-14 07:35:00 -04:00
Karl Tomlinson
b90e0e52f5
bug 1182972 no need to pass member variable bounds to NativeResize r=acomminos
...
--HG--
extra : rebase_source : 5ede1fde53d0747571256e137656c84806f17dbf
2015-07-14 15:24:56 +12:00
Karl Tomlinson
00d0625ec1
bug 1182972 remove mNeedsMove/mNeedsResize logic; instead process changes immediately r=acomminos
...
--HG--
extra : rebase_source : 11e93975d7334a065c5305ab126f50be0feaedca
2015-07-14 15:23:47 +12:00
Karl Tomlinson
3c97c275f9
bug 1182972 create NativeMove helper method r=acomminos
...
--HG--
extra : rebase_source : 7a2eb54a0f1892a498251b4553b5f67794fcc365
2015-07-13 14:29:05 +12:00
Karl Tomlinson
055a5d09a9
bug 1182972 remove unused aRepaint parameter from NativeResize methods r=acomminos
...
--HG--
extra : rebase_source : 8b3f01e7c32e8cb5dc125fdd756e983538a4943d
2015-07-13 13:57:23 +12:00
Andrew Comminos
ce4cdce4b8
Bug 1178799 - Filter X11 SelectionRequest events with an invalid requestor on GTK3. r=karlt
...
--HG--
extra : rebase_source : cd7370af74195ad1c7736c8148d537e3a47bd4d1
2015-07-13 08:58:00 -04:00
Birunthan Mohanathas
a8939590de
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
Michael Layzell
dbe075d5b8
Bug 1180993 - Part 3: Correct use sites of functions which return already_AddRefed. r=ehsan
2015-07-10 08:36:00 -04:00
Andrew Comminos
21488f9240
Bug 1174248 - Workaround unico theme engine resizer bug on GTK3. r=karlt
2015-07-08 08:40:00 -04:00
Dragana Damjanovic
7987d2203e
Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell
2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen
7d1e52f2ff
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00
Andrew Comminos
c186e55d71
Bug 1180971 - Fix X11 SHM invalidation regions on HiDPI with GTK3. r=karlt
...
--HG--
extra : rebase_source : 62d7a80d791cdd7685ae32178610b815745524c5
2015-07-06 16:57:00 +02:00
Andrew Comminos
3b68c90816
Bug 1180008 - Define gtk_window_get_window_type in mozgtk. r=karlt
...
--HG--
extra : rebase_source : a40f50fa12d8d86f62d77cd815c05616ac3136c3
2015-07-06 08:26:00 +02:00
Andrew Comminos
1b154e598d
Bug 1176109 - Don't attach menu popups to menubars on GTK3. r=karlt
...
--HG--
extra : rebase_source : c4edc3f54caa32b7641cd5895732daa7755e7e28
2015-07-06 21:55:00 +02:00
Andrew Comminos
e47140908b
Bug 983843 - Switch to GtkOffscreenWindow for drag source widget, fixing ghost tabs on some GTK versions. r=karlt
...
--HG--
extra : rebase_source : 278ba83eed30b1ff7d0824822a6ab6518f3313f7
2015-06-17 12:20:00 +02:00
Karl Tomlinson
41e62ce1ec
bug 1180008 don't measure size of decorations for override-redirect windows r=acomminos
...
--HG--
extra : rebase_source : fee0440498753be5b2c011d7915eb044cff90963
2015-04-21 19:52:00 +12:00
Karl Tomlinson
578ad122af
bug 1180008 use mGdkWindow instead of finding it from gtk_widget_get_window(mShell) r=acomminos
...
Since https://hg.mozilla.org/mozilla-central/rev/9541dbf6e020#l2.184
there is only one GdkWindow per nsWindow.
The mGdkWindow pointer is cleared in OnContainerUnrealize() before the shell
widget destruction completes:
https://hg.mozilla.org/mozilla-central/annotate/50b95032152c/widget/gtk/nsWindow.cpp#l2480
--HG--
extra : rebase_source : fe6da6f16514bbb18f3ab65da3b21a2816bc23a0
2015-04-21 19:06:41 +12:00
Karl Tomlinson
ff72a52865
bug 1180008 provide gtk_window_get_window_type for old GTK versions r=glandium
...
--HG--
extra : rebase_source : c1d1f1778f27152ce2e6470b44d77939f97cb777
2015-04-21 18:17:24 +12:00
Andrew Comminos
3bdf142d83
Bug 1177171 - Round widget coordinates on GTK3. r=karlt
...
--HG--
extra : rebase_source : ac32281d7251453c5075fc0dc22c7461af5f32f6
2015-06-29 11:50:00 -04:00
Nathan Froyd
974d8120f2
Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
...
This conversion was done with the script:
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
-e 's/TemporaryRef</already_AddRefed</g'
Manual fixups were performed in the following instances:
- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
into already_AddRefed.
- The following files had explicit Move() calls added to make up for the lack
of a copy constructor on already_AddRefed:
dom/base/ImageEncoder.cpp
dom/media/MediaTaskQueue.{h,cpp}
dom/media/webaudio/PannerNode.cpp
- A redundant overload for MediaTaskQueue::Dispatch was deleted.
- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.
- Comments, using declarations, and forward declarations relating to
TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
already_AddRefed.
2015-06-17 10:00:52 -04:00
Andrew Comminos
69949017a1
Bug 1175171 - Deallocate GTK's KeymapWrapper on shutdown. r=karlt
...
--HG--
extra : rebase_source : 5ff0e22c28e8349902d4ca0146b63d604a0abd58
2015-06-26 11:28:00 -04:00
Andrew Comminos
7a31276561
Bug 1131978 - Acknowledge GDK's scale factor in scale calculation. r=karlt
2015-06-26 10:19:00 +02:00
Makoto Kato
2eaace5db3
Bug 1176843 - Don't query caret rect on layout change. r=masayuki
2015-06-26 00:08:29 -07:00
Botond Ballo
5c454a43e7
Bug 1177024 - Fix clang warnings-as-errors in GTK3 build. r=karlt
...
--HG--
extra : source : 22ae9b52ec5b25fab359ff32e04072df6412662e
2015-06-21 15:27:07 -04:00
Andrew Comminos
c32ccdaa18
Bug 1171696 - Require room for scrollbar sliders and draw troughs only when there is room for a slider or buttons on GTK. r=karlt
...
--HG--
extra : rebase_source : 3c9d3ce76209e5ae82164d0271cf93509f4be856
2015-06-17 07:27:00 -04:00
Masayuki Nakano
9805b3e4d3
Bug 1175382 TextRangeArray::TargetClauseOffset() and TextRangeArray::TargetClauseLength() shouldn't be public and same name methods of WidgetCompositionEvent should be used r=m_kato
2015-06-18 13:43:18 +09:00
Andrea Marchesini
45578e03fa
Bug 1170794 - Improve the length check of the input in nsUnicode*::GetMaxLength, r=dveditz
2015-06-17 12:21:39 +01:00
Karl Tomlinson
603b1ace02
bug 147419 remove ununsed plexName colorspace resolutionName and downloadFonts r=roc
...
This was only used to write to and read from otherwise unused preferences.
--HG--
extra : rebase_source : a538569807b8340dae3fe9f0cbfc68334e20ccc9
2015-06-11 09:34:27 +12:00
Karl Tomlinson
71e6f82be1
bug 147419 remove meaningless GetPrintMethod() r=roc
...
--HG--
extra : rebase_source : bd89c4f495cd14a190bb65aaea2e23e54591ca5d
2015-06-16 11:02:34 +12:00
Karl Tomlinson
bb37b9da4d
bug 147419 remove print(|.<modulename>)(|.printer_<printername>).filename pref reading code r=roc
...
There are no default pref values, and even if some have been set, the value
is subsequently overridden by the print.print_to_filename pref, which exists
if saved from a previous nsPrintSettingsGTK.
--HG--
extra : rebase_source : 6912584e537d77d4efb1b1c3716d6c38bda3899e
2015-06-10 19:11:49 +12:00
Karl Tomlinson
4c5d983774
bug 147419 use GTK default paper size and orientation r=roc
...
In the nsPrintSettingsGTK constructor, gtk_paper_size_new(nullptr) gets the
system default paper size from the locale and gtk_page_setup_new() sets
default orientation to portrait.
These are subsequently overridden by prefs if any have been saved from
a previous nsPrintSettingsGTK.
--HG--
extra : rebase_source : 37b626bb0ed93454f6adc8916dbc674cf37ed4fe
2015-06-10 18:51:46 +12:00
Karl Tomlinson
a19a1f0d0c
bug 147419 remove ununsed nsIPrintSettings::printCommand and print_command prefs r=roc
...
These was used only to write to and read from each other.
--HG--
extra : rebase_source : ef49678652f829fe23611fb2294a22c3ffd91cf1
2015-06-10 18:10:28 +12:00
Andrew Comminos
d9685f25c8
Bug 1167239 - Make GTK button activity require hover. r=karlt
...
--HG--
extra : rebase_source : 880240867939e93cd91eec3d11029c70baf8c077
2015-06-16 07:58:00 -04:00
Andrew Comminos
6021357a72
Bug 1171011 - Use only document padding for MOZ_GTK_ENTRY in XUL. r=karlt
2015-06-10 12:38:00 -04:00
Hubert Figuière
40a12f2005
Bug 1174374 - gdk_cursor_new() is deprecated in 3.16. Use gdk_cursor_new_for_display(). r=karlt
...
--HG--
extra : transplant_source : %DF%15%81%18%1A%93D%ADQ%BDO%3EN4%F7%3E%F9%8B%3C%0D
2015-06-12 22:38:20 -04:00
Makoto Kato
0597055c59
Bug 1120851 - Set candidate window position for prediction even if no composition. r=masayuki
2015-06-15 16:01:39 +09:00
Daniel Holbert
632bb46230
Bug 1174287: Use mozilla:: prefix for namespaced classes in nsGtkIMModule.h. r=Ms2ger
2015-06-12 14:19:41 -07:00
Hubert Figuière
1c7aad3a06
Bug 1168527 - Variable was re-declared causing a bustage on gcc 5. r=lsalzman
2015-06-12 14:19:34 -04:00
Andrew Comminos
40b78be093
Bug 1168527 - Replay clips into the system cairo on GTK3. r=lsalzman
...
--HG--
extra : rebase_source : 013e1811f6b3fa1f599531153c292d7a5136f087
extra : histedit_source : 7c3f596514ea87840a0bd231b247b119ed9d3048
2015-06-09 13:46:09 -04:00
Andrew Comminos
1013161996
Bug 1167356
- Handle return value of DataSourceSurface::Map wherever possible. r=Bas
...
--HG--
extra : rebase_source : fe4fcb9c3a89e2573e6fde423ed8d96f31e00f14
2015-06-11 13:06:23 -04:00
Masayuki Nakano
107d7e94f3
Bug 1130937 part.3 nsGtkIMModule should adjust candidate window position when layout is changed r=m_kato
2015-06-11 19:50:15 +09:00
Masayuki Nakano
f2a58d2261
Bug 1130937 part.2 nsGtkIMModule should set candidiate window position to bottom left of the target clause in vertical writing mode r=m_kato
2015-06-11 19:50:15 +09:00
Masayuki Nakano
91ed158c1d
Bug 1130937 part.1 nsGtkIMModule should cache selection r=m_kato
2015-06-11 19:50:15 +09:00
Mike Hommey
4b28879d7b
Fixup for bug 1129873 for bustage of GTK+3 builds on elm. r=karlt. DONTBUILD.
2015-06-11 13:21:02 +09:00
Xidorn Quan
7699870266
Bug 1161802 part 1 - Add FullscreenChanged callback in WidgetListener. r=roc
...
--HG--
extra : source : dcfb961149d8c8e56ff787fa812dc781a491ee53
2015-06-10 23:13:12 +12:00
Jan Horak
1f0864644b
Bug 1129873 - [GTK3] Implement wrapper to GtkAppChooserDialog to allow using native application chooser. r=karlt
2015-06-08 04:41:00 -04:00
Jonathan Kew
f05c9dee41
Bug 1113206 patch 2: Disable use of Cocoa and Gtk native-theme dropdown rendering that doesn't play well with vertical writing mode. r=roc
2015-06-08 07:21:42 +01:00
Andrew Comminos
bcf78111e1
Bug 1171029 - Only omit legacy scroll events on GTK3. r=karlt
...
--HG--
extra : rebase_source : c4badf1f606bbb5cf0052265f38514acc3eee63c
2015-06-03 07:47:00 -04:00
Martin Stransky
649e670ec4
Bug 1169233
- Get grey (inactive) text color from menu labels. r=karlt
2015-05-29 05:40:00 -04:00