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

901 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Kingston 4512426a78 Bug 1192945 - Use channel->asyncOpen2 in widget/windows/nsDataObj.cpp. r=ckerschb
MozReview-Commit-ID: 5whNAj5KAjf

--HG--
extra : transplant_source : H%B0%2A%D0%90W%DEQn%9ET%92%273%B4%FB%E9S%D2%FA
2015-08-10 12:56:47 -07:00
Jonathan Watt 06b29e4abf Bug 1279628, part 2 - Switch all but one of the gfxASurface::CheckSurfaceSize calls to call Factory::CheckSurfaceSize. r=mstange 2016-06-10 13:32:01 +01:00
Phil Ringnalda 1cce1f61f8 Back out 2 changesets (bug 1279628) for reftest bustage
CLOSED TREE

Backed out changeset 07e4432bd6b3 (bug 1279628)
Backed out changeset 416fa9aeec55 (bug 1279628)
2016-06-11 00:44:51 -07:00
Jonathan Watt 8ea6b72d47 Bug 1279628, part 2 - Replace all gfxASurface::CheckSurfaceSize calls with Factory::CheckSurfaceSize and remove gfxASurface::CheckSurfaceSize. r=mstange
--HG--
extra : rebase_source : 314cf522b5760e63e176418ae170301fafa80f89
2016-06-09 15:31:24 +01:00
Randell Jesup 05bb25d9c0 Backed out changeset 36e71bcb0266 (bug 1192945) 2016-06-10 02:24:08 -04:00
Jonathan Kingston d0636b7947 Bug 1192945 - Use channel->ascynOpen2 in widget/windows/nsDataObj.cpp . r=ckerschb, r=jmathies
MozReview-Commit-ID: 5whNAj5KAjf

--HG--
extra : rebase_source : cbe970274e34fdf32d1f60539a22b004ca0bea51
2015-08-10 12:56:47 -07:00
Jonathan Watt 4a3d84e333 Bug 1278278 - Remove gfxPDFSurface and move its logic to a PrintTargetPDF subclass of PrintTarget. r=Bas
--HG--
rename : gfx/thebes/gfxPDFSurface.cpp => gfx/thebes/PrintTargetPDF.cpp
rename : gfx/thebes/gfxPDFSurface.h => gfx/thebes/PrintTargetPDF.h
2016-06-06 16:10:28 +01:00
Jonathan Watt cc6d4f9c08 Bug 1278276 - Remove gfxPSSurface and move its logic to a PrintTargetPS subclass of PrintTarget. r=Bas
--HG--
rename : gfx/thebes/gfxPSSurface.cpp => gfx/thebes/PrintTargetPS.cpp
rename : gfx/thebes/gfxPSSurface.h => gfx/thebes/PrintTargetPS.h
2016-06-06 16:10:28 +01:00
Karl Tomlinson 8c5debe5af Bug 1250704 - use same widget heirarchy as GTK for tooltip text color. r=stransky
MozReview-Commit-ID: 41sDYu3IqYq

--HG--
extra : rebase_source : 425a04503441f3edfd4ebbd71a21921013690426
2016-06-07 18:06:04 +12:00
Karl Tomlinson 7d57ffab85 Bug 1250704 - use style from WidgetStyleCache for tooltip colors. r=stransky
MozReview-Commit-ID: 9xzL8ckxTRQ

--HG--
extra : rebase_source : 6855183140e76ce1c40f403bbcbfa29b98f8ed8f
2016-06-07 16:11:51 +12:00
Martin Stransky a7a4d14c62 Bug 1271523 - Construct tooltip style from path for Gtk >= 3.20, r=karlt
To apply it needs a patch from Bug 1277818.

MozReview-Commit-ID: 3xhYDliL4iw

--HG--
extra : rebase_source : 690e765e9cde78d0b83b9127ccc6e58fc86d415d
2016-06-07 06:22:00 +02:00
Jonathan Watt 0676eabe9f Bug 1278269 - Make a PrintTarget class and PrintTargetThebes subclass and convert all nsIDeviceContextSpec subclasses to use them. r=Bas 2016-06-03 11:27:31 +01:00
Jonathan Watt 75b8790b2f Bug 1278236 - Convert GetSurfaceForGdkDrawable to return a DrawTarget. r=Bas 2016-06-03 11:27:31 +01:00
Carsten "Tomcat" Book 976efc5585 Backed out changeset a7334430aef0 (bug 1271523) for valgrind leak
--HG--
extra : rebase_source : 7f597cdb9d4d55f5fa8fc629de657ce95d88788a
2016-06-08 13:46:26 +02:00
Carsten "Tomcat" Book c16173e7f1 Backed out changeset f6f125b1088b (bug 1250704)
--HG--
extra : rebase_source : 5082ad5ea6f81bb1b2635db9a148b3c3034a7296
2016-06-08 13:46:13 +02:00
Carsten "Tomcat" Book 10d020481e Backed out changeset af36af25ecf4 (bug 1250704)
--HG--
extra : rebase_source : 7e7ad4291b89b8f95ec395c766b7ab4114ca7a49
2016-06-08 13:46:11 +02:00
Karl Tomlinson 1cf78cca84 Bug 1250704 - use same widget heirarchy as GTK for tooltip text color. r=stransky
MozReview-Commit-ID: 41sDYu3IqYq

--HG--
extra : transplant_source : %19U%DC%0E%14J%BFW%C1%B9-%863%1A%1D%F7%C7%11D%BC
2016-06-07 18:06:04 +12:00
Karl Tomlinson dc092e5197 Bug 1250704 - use style from WidgetStyleCache for tooltip colors. r=stransky
MozReview-Commit-ID: 9xzL8ckxTRQ

--HG--
extra : transplant_source : %CB_%B9f%FD%10/%CD%5D%AF%85e%BE%A1%25psL%0A%0A
2016-06-07 16:11:51 +12:00
Martin Stransky 34f103fe45 Bug 1271523 - Construct tooltip style from path for Gtk >= 3.20, r=karlt
To apply it needs a patch from Bug 1277818.
2016-06-07 06:22:00 +02:00
Nicholas Nethercote 86cec920da Bug 1278452 - Remove unnecessary null checks in widget/gtk/. r=karlt.
|operator new| is infallible now.

--HG--
extra : rebase_source : 980a9097a84e75971bf514b10efe345abe09c51b
2016-06-07 15:00:47 +10:00
Nicholas Nethercote a02611e830 Bug 1276824 (part 1) - Rename gfxContext::ForDrawTarget{,WithTransform}(). r=milan.
The new names Create{,PreservingTransform}OrNull() better communicate that
these functions (a) do object creation, and (b) are fallible.

--HG--
extra : rebase_source : a36bd9a2bcdfae281868959403f811f2bc690ad4
2016-06-07 09:39:56 +10:00
Martin Stransky 30edd2be74 Bug 1277818 - exports CreateCSSNode() and divides pre/post 3.20 styles construction, r=karlt 2016-06-07 02:49:00 +02:00
Masayuki Nakano 258c1f97d6 Bug 1277756 part.7 Rename TextRangeType::NS_TEXTRANGE_SELECTEDCONVERTEDTEXT to TextRangeType::eSelectedClause r=smaug
MozReview-Commit-ID: GyRYWzfeWrm

--HG--
extra : rebase_source : 8bebacaf675ec4a3cf91cfd434d07beeb7fb1567
2016-06-03 19:15:21 +09:00
Masayuki Nakano 3fa2003d17 Bug 1277756 part.6 Rename TextRangeType::NS_TEXTRANGE_CONVERTEDTEXT to TextRangeType::eConvertedClause r=smaug
MozReview-Commit-ID: 3mexBm278As

--HG--
extra : rebase_source : ef363b0ac50396631e9b145b7e869330509fe259
2016-06-03 19:05:32 +09:00
Masayuki Nakano 98f069e029 Bug 1277756 part.5 Rename TextRangeType::NS_TEXTRANGE_SELECTEDRAWTEXT to TextRangeType::eSelectedRawClause r=smaug
MozReview-Commit-ID: MbG4siLb4Q

--HG--
extra : rebase_source : 23c20c55c3936dc6af5f57414ef7630003480275
2016-06-03 18:57:21 +09:00
Masayuki Nakano f4254e7f7f Bug 1277756 part.4 Rename TextRangeType::NS_TEXTRANGE_RAWINPUT to TextRangeType::eRawClause r=smaug
MozReview-Commit-ID: KLC1VPiYTdz

--HG--
extra : rebase_source : 3f750e526bb04b26ed66d2c0fada14e7d5b43d73
2016-06-03 18:48:37 +09:00
Masayuki Nakano 6b5425853a Bug 1277756 part.3 Rename TextRangeType::NS_TEXTRANGE_CARETPOSITION to TextRangeType::eCaret r=smaug
MozReview-Commit-ID: CaqmOSxYYU7

--HG--
extra : rebase_source : 5820d491b97be7899150516d05f1426e74dab5b5
2016-06-03 18:40:06 +09:00
Masayuki Nakano 4fc95828b6 Bug 1277756 part.1 Make anonymous enum for NS_TEXTRANGE_* to an enum class named "TextRangeType" r=smaug
For making our code clearer by the stronger type check, we should change the anonymous enum for NS_TEXTRANGE_* to enum class whose name is "TextRangeType" and whose type is "RawTextRangeType" which is an alias of uint8_t.

Additionally, this also adds some utility methods for them.

Note that some lines which are changed by this patch become over 80 characters but it will be fixed by the following patches.

MozReview-Commit-ID: 76izA1WqTkp

--HG--
extra : rebase_source : 27cd8cc8f7f8e82055dbfe82aba94c02beda5fa4
2016-06-04 09:49:21 +09:00
Andrew Comminos 84b261df39 Bug 1277306 - Fallback to a cairo image surface when SHM and XRender are unavailable when drawing to a GDK window. r=lsalzman
MozReview-Commit-ID: 4VPrplGM8uK

--HG--
extra : rebase_source : f072e7b20b5d9a6b5f39ba6c68c4596c0b6ae87b
2016-06-01 14:52:36 -04:00
Jonathan Watt 2eb705bb3f Bug 1277862, part 3 - Rename Moz2D's Filter to SamplingFilter in the rest of the tree. r=Bas 2016-05-25 17:01:18 +01:00
Masayuki Nakano e67330e0b4 Bug 1275906 part.1 Rename NOTIFY_IME_OF_COMPOSITION_UPDATE to NOTIFY_IME_OF_COMPOSITION_EVENT_HANDLED r=m_kato
It's not clear to me what NOTIFY_IME_OF_COMPOSITION_UPDATE means only from the name. For making the name clearer, this patch renames it to NOTIFY_IME_OF_COMPOSITION_EVENT_HANDLED and add some explanation to the definition.

MozReview-Commit-ID: 8ySYCNJ1Ytz

--HG--
extra : rebase_source : 3331b8f48e8b460c7f9b088064dcda9488f3403c
2016-05-31 11:39:15 +09:00
Karl Tomlinson 5aebf9bad8 bug 1274745 use ClaimStyleContext to ensure GtkWindow exists before using for scrollbar background r=stransky+263117
MozReview-Commit-ID: KKekEXJScM0

--HG--
extra : rebase_source : dd6b5261df5a1fe4e37b12c604f96af4d5c18e66
2016-05-27 10:32:02 +12:00
Martin Stransky 44b84273d1 Bug 1266914 - cache newly created style, r=karlt 2016-08-08 03:10:00 +02:00
Martin Stransky b8bb3b2ec9 Bug 1273013 - "download progress bar does not show in gtk3 build." r=karlt 2016-05-24 13:43:00 +02:00
Keith Yeung 28a4bc1e9e Bug 1274339 - Align resizerpanel and caret in -moz-appearance. r=bobbyholley
--HG--
extra : rebase_source : ce28fd34fd7738abf440d6ae6052059ff549f974
2016-05-19 10:58:00 +02:00
Jonathan Kew 72fc68048e Bug 1274368 - Draw resizer as RTL for elements with vertical-rl writing mode. r=dholbert 2016-05-21 13:59:25 +01:00
Karl Tomlinson 49d29c5bf9 bug 1272194 explicitly invalidate after change style contexts belonging to widgets r=stransky+263117
This fixes menu item rendering during hover.

MozReview-Commit-ID: CEa6aorqBZM

--HG--
extra : rebase_source : 19b1d4f26541b8b5a435252552352592791c080d
2016-05-17 18:15:12 +12:00
Karl Tomlinson 5fe070aa8f bug 1272194 use WidgetStyleCache for menus r=stransky+263117
Unnecessary widget realization is also removed.

MozReview-Commit-ID: A5HuE5bqf4x

--HG--
extra : rebase_source : 2fb13bac970e5b5daa53948d3d9e9e18496a5a4e
2016-05-17 18:24:55 +12:00
Karl Tomlinson 6b738d9703 bug 1272194 only add menubar class to menu items with GTK 3.4 r=stransky+263117
and save/restore context consistent with GTK 3.4.

MozReview-Commit-ID: GdMoAmzOJlf

--HG--
extra : rebase_source : c3cb854a304a0bc10cd27325b42361031a5107db
2016-05-17 18:02:00 +12:00
Karl Tomlinson a7b88b8021 bug 1272194 don't create a label for menu items r=stransky+263117
The label dates back to GTK2 code and is not currently used.
Removing will allow sharing code with menubar item creation.

MozReview-Commit-ID: LI5t4agot1z

--HG--
extra : rebase_source : f64170f5be3084f45a3221e7c557c5a80c835043
2016-05-17 11:02:25 +12:00
Karl Tomlinson 50d0eedfba bug 1272194 replace MOZ_TOPLEVEL_MENU_ITEM flag with MOZ_GTK_MENUBARITEM node r=stransky+263117
This provides a better mapping between WidgetNodeType and GtkWidgets.

MozReview-Commit-ID: 3YYzK4aZCbP

--HG--
extra : rebase_source : b2a2dc92b77a265fc73077345c1b6a18d9a4abc5
2016-05-19 16:55:04 +12:00
Keith Yeung 90a39873d8 Bug 1273424 - Rename -moz-appearance keyword constants to be more consistent with CSS keywords. r=bholley 2016-05-18 11:07:47 -07:00
Sebastian Hengst a68f0cb92b Backed out changeset 01b86df73b4a (bug 1272332) for Linux x64 opt reftest bustage, e.g. 914521.html. r=backout 2016-05-18 13:42:25 +02:00
Nicolas Silva 3cc8335b3a Bug 1272332 - Honor gtk's global dark theme for the chrome when e10s is enabled. r=karlt 2016-05-18 12:19:29 +02:00
David Anderson c2a116cdd6 Hide top-level CompositorBridgeParents behind a new API. (bug 1272472 part 4, r=mattwoodrow,kats,gwagner) 2016-05-17 22:33:22 -07:00
David Anderson 09c466def2 Use IPDL to schedule composites on GTK. (bug 1272472 part 2, r=nical) 2016-05-17 22:33:21 -07:00
Martin Stransky 9e176d8f04 Bug 1271579 - Set GtkTextDirection and GtkStateFlags in ClaimStyleContext, r=karlt 2016-05-17 12:52:04 -07:00
Kartikaya Gupta 392f87445d Bug 1264017 - Add an APZ test API to synthesize a mouse click. r=botond
MozReview-Commit-ID: 1zeoPTGrrLh
2016-05-16 12:17:17 -04:00
Masayuki Nakano e2fb1c839c Bug 1254755 part.4 Rename WidgetKeyboardEvent::location to WidgetKeyboardEvent::mLocation r=smaug
MozReview-Commit-ID: CjT7izri6Vq

--HG--
extra : rebase_source : 1e82d581b8bf1cce3d3154402f3bb435f7a004f6
2016-05-12 18:17:22 +09:00
Masayuki Nakano 7bfa8a21fa Bug 1254755 part.3 Rename WidgetKeyboardEvent::alternativeCharCodes to WidgetKeyboardEvent::mAlternativeCharCodes r=smaug
MozReview-Commit-ID: 26K8ZxzavfB

--HG--
extra : rebase_source : 5f74e58a784bae2ed626c0c9f7c992228dcff1be
2016-05-12 17:57:21 +09:00
Masayuki Nakano 8a70a17c6a Bug 1254755 part.2 Rename WidgetKeyboardEvent::charCode to WidgetKeyboardEvent::mCharCode r=smaug
And mCharCode shouldn't be compared with NS_VK_*, nsIDOMKeyEvent::DOM_VK_*. Additionally, when it's compared with a character constant, cast isn't necessary.

MozReview-Commit-ID: JMT614copjG

--HG--
extra : rebase_source : 69ee3c589e5a71c814ec9a40ac3aab39c789c11d
2016-05-13 16:06:18 +09:00
Masayuki Nakano 3359bad586 Bug 1254755 part.1 Rename WidgetKeyboardEvent::keyCode to WidgetKeyboardEvent::mKeyCode r=smaug
And also WidgetKeyboardEvent::mKeyCode should be compared with NS_VK_* rather than nsIDOMKeyEvent::DOM_VK_*.

MozReview-Commit-ID: IKjQ1nr8XYe

--HG--
extra : rebase_source : 83125cd2523f6b70759f621470aad23b00aae8ae
2016-05-12 17:13:49 +09:00
Bob Owen 8312249b1d Bug 1189846 Part 5: Remove displayJobProperties from nsIPrintOptions. r=jimm
MozReview-Commit-ID: L10L7lnRIG4
2016-05-16 10:40:54 +01:00
Chris Peterson 8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Chris Peterson 353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Martin Stransky 4cd7d094b8 Bug 1262136 - implement checkboxes/radiobuttons for GTK 3.20, r=karlt
MozReview-Commit-ID: 2mjpxT6b2xh

--HG--
extra : rebase_source : 3e62cc98b5bae5caa3137e940901048f42bcf2a6
extra : amend_source : 1f8665b87560583be6fd97eef7e5e44cf95fb9a7
2016-05-13 11:59:17 +12:00
Kartikaya Gupta 346748ccf1 Bug 1272152 - Convert LayoutDevice coordinates to GDK coordinates before sending them to GDK. r=karlt
MozReview-Commit-ID: BuFDHnqVsRD

--HG--
extra : rebase_source : fdae1dde3c5bc9ed33f67d60f2d74b0a2732f04b
2016-05-11 17:57:43 -04:00
Masayuki Nakano 3e4ceded8b Bug 1259661 part.9 Rename WidgetMouseEvent::clickCount to WidgetMouseEvent::mClickCount r=smaug
MozReview-Commit-ID: 5tC8UqcfLek

--HG--
extra : rebase_source : a336f9d8676c74804e2c00eebec4f2a30d7a11b3
2016-05-10 23:29:14 +09:00
Masayuki Nakano 1663e01f1f Bug 1259661 part.6 Rename WidgetMouseEvent::exit to WidgetMouseEvent::mExitFrom r=smaug
MozReview-Commit-ID: FHUaUOE5eIB

--HG--
extra : rebase_source : f4ff5a5f662054ab161805dc37b9e7b6d6b97d96
2016-05-12 11:42:08 +09:00
Nicolas Silva daa1794d1a Bug 1216658 - Ignore Gt3 dark themes and use light theme's color scheme for native widgets. r=karlt 2016-04-29 10:14:29 +02:00
Timothy Nikkel bf94e2fc4e Bug 1261752. Part 3. r=mats 2016-05-10 22:58:47 -05:00
Jan Beich c6b43ec415 Bug 1271477 - Unbreak --disable-dbus build after bug 1266054. r=karlt 2016-05-09 18:51:00 +02:00
Jan Beich 1251952870 Bug 1271477 - Unbreak --disable-dbus build after bug 1234158. r=karlt 2016-05-09 18:50:00 +02:00
Martin Stransky baaa0fca1d Bug 1248974 - Remove gtk_style_context_save which corrupts style hierarchy for menu item background, r=karlt 2016-05-09 04:17:00 +02:00
Martin Stransky 7017c6043a Bug 1248974- get menu bar text color from GtkMenuItem, r=karlt 2016-05-09 04:17:00 +02:00
Thomas Zimmermann 4e5a56e843 Bug 1266054: GTK+: Hold references to |DBusPendingCall| in |RefPtr|, r=karlt
MozReview-Commit-ID: F5jb9tR5FGa
2016-05-09 12:28:37 +02:00
Thomas Zimmermann e4b9259642 Bug 1266054: GTK+: Hold references to |DBusMessage| in |RefPtr|, r=karlt
MozReview-Commit-ID: CuweWk1ZMT1
2016-05-09 12:28:37 +02:00
Thomas Zimmermann 51bb662a3f Bug 1266054: GTK+: Hold references to |DBusConnection| in |RefPtr|, r=karlt
This patch changes |WakeLockListener| to store its connection to
the DBus session bus in an instance of |RefPtr|. The reference will
be released automatically from the class' destructor.

MozReview-Commit-ID: Hv6MgpJMNLI
2016-05-09 12:28:37 +02:00
L. David Baron 9ee89fe42f Bug 567283 patch 2 - Rename NS_HexToRGB to NS_HexToRGBA and add parameter saying whether 4 and 8 digit colors are allowed. r=xidorn
This patch tells all callers to use the existing behavior, so it is
intended not to change behavior.  Callers that will be modified in later
patches are marked with "FIXME" comments that will be removed in those
later patches (patches 3 and 4).

MozReview-Commit-ID: FaLryfxaeHv
2016-05-08 22:16:41 -07:00
Martin Stransky 14a55c9a93 bug 1234158 add support for GTK 3.20 scrollbars r=karlt
--HG--
extra : transplant_source : %84N%24%B8%1D%80%EE%133%96%B3Y%0B%5D%29%26%18%24%B3%60
extra : histedit_source : 6e54e39b3c2649e4efebb864db2d5ce5d8b7b330
2016-05-09 11:08:26 +12:00
Karl Tomlinson b799dfaa46 bug 1234158 rename GtkThemeWidgetType enum to WidgetNodeType as it will differentiate GTK CSS nodes r=Stránský
--HG--
extra : transplant_source : %11-%01%D8%F3%D6%00%E9%0C%D8%84z%A2%98%7C%F3%B5I%CF%5E
extra : histedit_source : deb6e194d8ea4466976347e24a741ee354dcc331
2016-04-14 17:47:20 +12:00
Kyle Huey 941ab1f522 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Neil Deakin 3c20c400b2 Bug 911546, use a runnable so that popups don't rollup during a grab, r=karlt 2016-05-04 10:07:52 -04:00
Martin Stransky c64aea7200 Bug 1263145 - Render multiline input text entries as GtkTextView, r=karlt 2016-04-27 01:07:00 +02:00
Lee Salzman 457fd6ea27 Bug 1264866 - check for valid X11 display in nsWindow::GetNativeData(NS_NATIVE_DISPLAY). r=karlt 2016-04-29 13:12:38 -04:00
Carsten "Tomcat" Book ba3fe0975c Backed out changeset 85ce8cb0639a (bug 1268313)
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Carsten "Tomcat" Book 16ef9e6c05 Backed out changeset 2fd4339f19c1 (bug 1216658) for valgrind failures
--HG--
extra : rebase_source : 2dfdec67ae9393f3e2827628edc9d9d5adf1cdab
2016-04-29 14:05:28 +02:00
Nicolas Silva 3c41ca6471 Bug 1216658 - Ignore Gt3 dark themes and use light theme's color scheme for native widgets. r=karlt 2016-04-29 10:14:29 +02:00
Kyle Huey 48a594a09e Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Karl Tomlinson 1df20b3f7d bug 1264170 only add slider class to scale after style save r=acomminos
so that ranges don't render like their thumbs

MozReview-Commit-ID: KshWxyAb1nh

--HG--
extra : rebase_source : efb7f7ffd5ba75324b47e2a83d638ec411868c1b
2016-04-13 08:48:15 +12:00
Andrew Comminos 28d156be0f Bug 1258086 - Clear unbuffered SHM images with a 32-bit visual before drawing with the basic layer manager. r=lsalzman
MozReview-Commit-ID: 8XgVwvBDZ3X

--HG--
extra : rebase_source : ba0ed32c5b8241fa6bf6300a8fa97ad71a236c1a
2016-04-27 13:46:07 -07:00
Andrew Comminos 0cbdbeb56d Bug 1264454 - Disable drag popups on GTK versions with a buggy gtk_drag_set_icon_widget. r=karlt
MozReview-Commit-ID: Bsum6dNbFXc

--HG--
extra : rebase_source : b980c510fabd4cc3991d9c1e50aa1105e2d742f8
2016-04-25 19:04:55 -07:00
Botond Ballo 25a9b005e6 Bug 1255214 - Only repaint GTK scrollbar button if its enablement actually changed. r=mstange
MozReview-Commit-ID: ITLeksQzvVM

--HG--
extra : rebase_source : 1a3779ab7154282388c2e57251886863e818b168
2016-04-20 19:49:09 -04:00
Neil Deakin a030ec3ce6 Bug 860857, support custom datatransfer types using a special type, r=smaug,jmathies,mstange 2016-04-21 14:11:14 -04:00
Jonathan Watt 12618ee44a Bug 1265953, part 3 - Convert more widget code from nsAutoPtr to UniquePtr. r=mstange 2016-04-19 23:29:16 +01:00
Jonathan Watt 05a14131e5 Bug 1265953, part 2 - Convert much of the rest of the widget code from nsAutoPtr to UniquePtr. r=mstange 2016-04-19 21:51:25 +01:00
Masayuki Nakano cbe8f5268a Bug 1259656 part.1 Rename WidgetEvent::refPoint to WidgetEvent::mRefPoint r=smaug
MozReview-Commit-ID: ESWM5ZyBpSR

--HG--
extra : rebase_source : c5e1e3f60bcdde2a7f6c399e72430b29a3e552cd
2016-04-18 23:09:02 +09:00
Masayuki Nakano 07b6f24132 Bug 1259657 Rename WidgetGUIEvent::widget to WidgetGUIEvent::mWidget r=smaug
MozReview-Commit-ID: 167PQWJDEHW

--HG--
extra : rebase_source : 6cd44095b9f33e03190972f043087786cbd772f2
2016-04-14 17:03:14 +09:00
Kartikaya Gupta f72cd76655 Bug 1250505 - Convert SynthesizeNativeTouchPoint and SynthesizeNativeTouchTap to take a LayoutDeviceIntPoint instead of a ScreenPoint. r=njn
MozReview-Commit-ID: EybGq9b1B8Z

--HG--
extra : rebase_source : defc16fc066a3a40480fa4c94f3a742a267344a8
2016-04-15 06:39:36 -04:00
Milan Sreckovic e0b2b9e425 Bug 1259513: Make gfxContext constructor private, use a utility function that can return nullptr. r=bas,lsalzman
MozReview-Commit-ID: rHhLEDZEQt

--HG--
extra : rebase_source : 4988f3f488c19dd35a9979e96f78a5511ee8f3d2
2016-04-12 15:18:11 -04:00
Bill Gianopoulos 5b9122d07b Bug 1262634 - Avoid undefined reference to moz_gtk_get_entry_min_height in builds specifying cairo-gtk2 toolkit. r=karlt
--HG--
extra : histedit_source : 160487a1e3dcfea56c38b88308fbff41724c33b7
2016-04-07 19:25:24 -04:00
Nathan Froyd 392bfacb03 Bug 1261818 - don't pass nsAutoCStrings into nsBaseWidget debugging methods; r=karlt
Passing raw character pointers works just fine.
2016-03-31 14:42:13 -04:00
Martin Stransky a2db24fb14 Bug 1257811 - set min-height for input widgets. r=karlt 2016-04-01 04:43:00 +02:00
Karl Tomlinson 1bc3b5e29b bug 1261277 use GtkTextView to get an appropriate color for resizers r=acomminos
MozReview-Commit-ID: IhcjE7Aax8g

--HG--
extra : rebase_source : bd1ec08134726b10626e69bd4d30b14b741bdde4
2016-03-31 23:30:12 +13:00
Masayuki Nakano 57445d0047 Bug 1259668 Rename WidgetTouchEvent::touches to WidgetTouchEvent::mTouches r=smaug
MozReview-Commit-ID: FLbows8davI

--HG--
extra : rebase_source : b564d09aa76311793a78d80b6c78c91e232edc47
2016-03-30 18:44:28 +09:00
Masayuki Nakano 1e0825ccd9 Bug 1259664 part.10 Rename WidgetWheelEvent::lineOrPageDeltaY to WidgetWheelEvent::mLineOrPageDeltaY r=smaug
MozReview-Commit-ID: 64lFZosnMbd

--HG--
extra : rebase_source : 1e103c5255a702d46f78c6f544981b0e82e2d23c
2016-04-01 00:10:09 +09:00
Masayuki Nakano e462919d2b Bug 1259664 part.9 Rename WidgetWheelEvent::lineOrPageDeltaX to WidgetWheelEvent::mLineOrPageDeltaX r=smaug
MozReview-Commit-ID: 1j8SFp6bME4

--HG--
extra : rebase_source : 18b080a4938925547b2f5b7fa66908c75211a345
2016-04-01 00:10:46 +09:00
Masayuki Nakano 477d2b746e Bug 1259664 part.8 Rename WidgetWheelEvent::scrollType to WidgetWheelEvent::mScrollType r=smaug
MozReview-Commit-ID: 9Oywv8Yb0Qg

--HG--
extra : rebase_source : 71925e8e97855837f28912c8a1d689300de36489
2016-03-31 23:54:42 +09:00
Masayuki Nakano a2da982fdb Bug 1259664 part.4 Rename WidgetWheelEvent::deltaMode to WidgetWheelEvent::mDeltaMode r=smaug
MozReview-Commit-ID: Ky3xp2NtBWq

--HG--
extra : rebase_source : 412e2df1c27c37dc76039d1fd3463623b476d81c
2016-03-31 18:35:24 +09:00
Masayuki Nakano 6aedccbde5 Bug 1259664 part.2 Rename WidgetWheelEvent::deltaY to WidgetWheelEvent::mDeltaY r=smaug
MozReview-Commit-ID: 3xscKDblY4V

--HG--
extra : rebase_source : c587768fd2c9a48e07cafa27b5c72e4eeb030360
2016-03-31 18:09:47 +09:00
Masayuki Nakano 6cedf549dc Bug 1259664 part.1 Rename WidgetWheelEvent::deltaX to WidgetWheelEvent::mDeltaX r=smaug
MozReview-Commit-ID: F5dQHpPkWfA

--HG--
extra : rebase_source : 1a256f288b0e004c196468f8659393b474d73840
2016-03-31 18:55:59 +09:00
Masayuki Nakano e9a1bcb370 Bug 1259658 Rename WidgetInputEvent::modifiers to WidgetInputEvent::mModifiers r=smaug
MozReview-Commit-ID: 7avEiqKfaHA

--HG--
extra : rebase_source : ffb6fbe424a4d5c2799444223608e03237e7c7a2
2016-03-31 17:03:00 +09:00
Martin Stransky a6587e930c Bug 1259433 - remove gtk_widget_style_get() from gtk3drawing, r=karlt a=kwierso
MozReview-Commit-ID: 13VFxv518qc
2016-03-31 14:21:15 -07:00
Karl Tomlinson f4225f1502 bug 1260178 null check pattern from -unico-border-gradient r=acomminos
MozReview-Commit-ID: HooAlTmINmq

--HG--
extra : rebase_source : c33c84917b919fbe5aae45223ddebf6a4f6dc713
2016-03-29 17:50:47 +13:00
Arata Furukawa 676913b9bb Bug 1259655 - part 1 Rename WidgetEventTime::time to WidgetEventTime::mTime r=masayuki
MozReview-Commit-ID: 7lBCEVkanvF

--HG--
extra : source : d629f018d02594951b7deccf1e1fce279d04694c
2016-03-28 13:29:42 +09:00
takayuki_yamaguchi 85f5fd892b Bug 1257067 - modified XF86XK_ keysyms to GDK_ ones r=masayuki
MozReview-Commit-ID: 1UvswTZ2B6p

--HG--
extra : rebase_source : 7127f3959dee5d132f3c73337a546b29e046c3d7
2016-03-26 13:25:06 +09:00
Martin Stransky 4577ff8de2 Bug 1258989 - Switch gtk3drawing to a C++ file, r=karlt
--HG--
rename : widget/gtk/gtk3drawing.c => widget/gtk/gtk3drawing.cpp
extra : rebase_source : e9942bfc95c6e15c6406be73d43420eae06dfe1e
2016-03-23 03:49:00 +01:00
Masayuki Nakano 7bcaf602d0 Bug 1154183 part.2 eKeyDown event should have charCode value of following keypress event r=smaug
MozReview-Commit-ID: 9duzKfCFPro
2016-03-19 20:57:11 +09:00
David Anderson f3dc22db8d Rename PCompositor to PCompositorBridge. (bug 1258479 part 2, r=mattwoodrow)
--HG--
rename : gfx/layers/ipc/CompositorChild.cpp => gfx/layers/ipc/CompositorBridgeChild.cpp
rename : gfx/layers/ipc/CompositorChild.h => gfx/layers/ipc/CompositorBridgeChild.h
rename : gfx/layers/ipc/CompositorParent.cpp => gfx/layers/ipc/CompositorBridgeParent.cpp
rename : gfx/layers/ipc/CompositorParent.h => gfx/layers/ipc/CompositorBridgeParent.h
2016-03-22 14:08:38 -04:00
Makoto Kato 437a65f86c Bug 1033488 - Part 2. Make PuppetBidiKeyboard correctly on content process. r=masayuki
MozReview-Commit-ID: KtStkwxw54f
2016-03-22 13:13:09 +09:00
Karl Tomlinson 93260a97b3 bug 1257695 disable GTK3 deprecation warnings in widget/gtk r=acomminos
MozReview-Commit-ID: 4tFJXIfhfTI

--HG--
extra : rebase_source : 720964966bc2f5f61da34c378f4faeabd4f3dd57
2016-03-17 22:45:01 +13:00
Karl Tomlinson bc64779561 bug 1211892 read -unico-border-gradient of early Unico versions for ThreeDHighlight and ThreeDShadow r=acomminos
MozReview-Commit-ID: KWfQqT5MIjT

--HG--
extra : rebase_source : d480fe8538530aafd0b68da9b947f215af119bd1
2016-03-18 22:49:46 +13:00
Mike Hommey f5e10530d9 Bug 1256988 - Fix #endif comments for MOZ_WIDGET_GTK. r=chmanchester 2016-03-17 06:49:44 +09:00
Mike Hommey 45e34d9474 Bug 1256988 - Replace tests on MOZ_ENABLE_GTK3 with tests on MOZ_WIDGET_TOOLKIT==gtk3. r=chmanchester 2016-03-17 06:49:44 +09:00
Mike Hommey 2360b9887b Bug 1256988 - Replace tests on MOZ_ENABLE_GTK2 with tests on MOZ_WIDGET_TOOLKIT==gtk2. r=chmanchester 2016-03-17 06:49:44 +09:00
Masayuki Nakano 9aa8592b7f Bug 1137565 part.4 Implement IMContextWrapper::WillDispatchKeyboardEvent() r=m_kato 2016-03-16 13:47:49 +09:00
Masayuki Nakano 7b8ce29651 Bug 1137565 part.3 nsWindow for GTK should use TextEventDispatcher for dispatching keyboard events r=m_kato 2016-03-16 13:47:49 +09:00
Masayuki Nakano ad8535477c Bug 1137565 part.2 IMContextWrapper should use TextEventDispatcher r=m_kato 2016-03-16 13:47:49 +09:00
Masayuki Nakano a9f207530a Bug 1137565 part.1 Implement TextEventDispatcherListener in IMContextWrapper r=m_kato 2016-03-16 13:47:49 +09:00
Masayuki Nakano e65433cc66 Bug 1137572 part.3 Use pseudo IME context when TextEventDispatcher has input transaction which is not for native event handler r=smaug 2016-03-16 13:47:47 +09:00
Xidorn Quan 51156be7b4 Bug 1244546 part 1 - Apply proper unit conversion for SynthesizeNativeMouseEvent. r=karlt
MozReview-Commit-ID: 6XLzx7CyFEj

--HG--
extra : source : 5c61d059fc06b04456ab69c608d98e1e9433619d
2016-03-11 19:10:44 +08:00
Kartikaya Gupta bc8c21c555 Bug 1242690 - Squash together DispatchAPZAwareEvent and DispatchInputEvent. r=dvander
MozReview-Commit-ID: 2cou0cK4Yw8
2016-03-10 18:25:48 -05:00
Chris Peterson 3ff300d9d3 Bug 1253753 - Remove unnecessary switch fallthrough to avoid -Wimplicit-fallthrough warning. r=karlt
widget/gtk/NativeKeyBindings.cpp:230:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
2016-03-07 21:30:02 -08:00
Karl Tomlinson 3c21b4d662 bug 1197165 apply tooltip style class when creating window instead of when drawing r=acomminos
This is consistent with gtktooltip.c.

gtk_style_context_save() modifies the CSS node hierarchy causing this rule to
incorrectly match:

.tooltip * {
        background-color: transparent;
}

See also https://bugzilla.gnome.org/show_bug.cgi?id=761870#c2

--HG--
extra : rebase_source : baa16e2ca297db702aa5d9250fd3d9606dcf891a
2016-03-02 18:04:00 +13:00
Karl Tomlinson 5c5c74038e bug 1230065 consider arrow size in dropdown minimum widget size r=acomminos
--HG--
extra : rebase_source : 60df83df10ab3fff33e08a2e7a8dd13d7b4c2bf9
2016-03-01 13:12:03 +13:00
Lee Salzman 4ee1769ed1 Bug 1251984 - allow gfx.xrender.enabled pref to work for compositing even if content backend is not Cairo. r=jrmuizel 2016-03-01 14:33:53 -05:00
Jonathan Kew 51b8759a25 Bug 1240749 - Fixes for DPI support in Gtk widget interface: remove incorrect Get[Avail]RectDisplayPix overrides, as desktop pixels == device pixels for the Gtk widget backend, and implement nsScreenGtk::GetDefaultCSSScaleFactor, required by nsGlobalWindow since per-monitor DPI patches in bug 890156. r=karlt 2016-02-26 22:34:11 +00:00
Carsten "Tomcat" Book 275bc053c7 Backed out changeset bc33885d2034 (bug 1240749) for bustage 2016-02-29 08:37:55 +01:00
Jonathan Kew 281e26438c Bug 1240749 - Fixes for DPI support in Gtk widget interface: remove incorrect Get[Avail]RectDisplayPix overrides, as desktop pixels == device pixels for the Gtk widget backend, and implement nsScreenGtk::GetDefaultCSSScaleFactor, required by nsGlobalWindow since per-monitor DPI patches in bug 890156. r=karlt 2016-02-26 22:34:11 +00:00
Lee Salzman 27c94bb979 Bug 1247935 - Part 2: use shared pixmaps with XShm for nsShmImage. r=jrmuizel 2016-02-27 23:16:57 -05:00
Lee Salzman aedcb20e84 Bug 1247935 - Part 1: double-buffer nsShmImage. r=jrmuizel 2016-02-27 23:16:57 -05:00
Karl Tomlinson 9dc67acb37 bug 1199602 emit resume-events on GdkFrameClock if flush/resume not balanced at dispose r=acomminos
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=742636 in affected GDK versions.

--HG--
extra : rebase_source : 6ef0a025af6cd040ca4319c69027c854c8a2a8e4
2016-02-26 11:19:24 +13:00
Karl Tomlinson 277d6341be bug 1199602 give existing wrap_gtk_window_check_resize internal linkage r=acomminos
--HG--
extra : rebase_source : 65059891912637a1c4d15de41b8044736c566558
2016-02-24 18:42:09 +13:00
Lee Salzman bf234f25b7 Bug 1249813 - part 1 - revise nsShmImage to allow draw targets anywhere inside its bounds. r=jrmuizel 2016-02-25 14:38:05 -05:00
Makoto Kato 2bd4c9e6bb Bug 1235941 - Detect DPI change for GTK3. r=karlt
Use scale-facotr signal to detect DPI change.  Also, we should update
mBounds for current scaling setting.

MozReview-Commit-ID: 9fuFORzSzaD

--HG--
extra : rebase_source : 48462e9f251399433d25ffed100fbaa5bca8186a
2016-02-24 18:58:58 +09:00
Kartikaya Gupta fdf87498df Bug 1249915 - Add ability to synthesize native touch events on GTK for mochitests. r=karlt
MozReview-Commit-ID: GurXjryrsle
2016-02-23 10:17:46 -05:00
Andrew Comminos 0972c69434 Bug 1249604 - Don't use gtk_drag_set_icon_surface on GTK versions that use X SHAPE for dnd with cairo. r=karlt
MozReview-Commit-ID: 2XxnJfvfOXl

--HG--
extra : rebase_source : d16f4fecc70be105cd2fd2177b5fee62fc53c583
2016-02-19 17:33:54 -08:00
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