Commit Graph

1208 Commits

Author SHA1 Message Date
Steven Michaud
783c832ba8 Bug 1159473 - Add Mac-specific debug logging code. r=spohl 2015-04-30 14:41:21 -05:00
David Parks
f8adab0ca9 Bug 1152585 - Implement GetClientOffset in nsChildView to fix child offset calculation when drawInTitlebar=false r=mstange 2015-04-29 08:41:19 -07:00
Chris Peterson
321cb5b9ca Bug 1159124 - Suppress -Wunused-exception-parameter warning in nsClipboard.mm. r=spohl 2015-04-18 21:30:11 -07:00
Jonathan Kew
7ae17d117a Bug 1157142 - Support logical (inline/block) in addition to physical orientation for the <input type=range> element; make inline the default behavior so that range sliders respect writing mode. r=jwatt 2015-04-29 08:18:54 +01:00
Kartikaya Gupta
f300e99712 Bug 1154739 - On desktop platforms, only enable APZ in e10s windows. r=dvander,mstange 2015-04-27 16:13:29 -04:00
Mike Conley
8975d0730c Bug 1096093 - Have Cocoa widget backend cache overlay scrollbar metrics. r=mstange.
--HG--
extra : rebase_source : fe44034cfbf4fe992a2adc56dc30864cc631cfa1
2015-04-22 10:58:48 -04:00
Carsten "Tomcat" Book
199bde3faa Backed out changeset 70c19dd86f63 (bug 1096093) 2015-04-23 17:18:14 +02:00
Steven Michaud
8d1c8e1be1 Bug 1151345 - Add debug logging to help decipher this bug. r=spohl 2015-04-23 09:55:20 -05:00
Mike Conley
e7c7c23dcb Bug 1096093 - Have Cocoa widget backend cache overlay scrollbar metrics. r=mstange.
--HG--
extra : rebase_source : 04640fed0ff75c70950be7d81285b64bdf220a1c
2015-04-22 10:58:48 -04:00
Jonathan Kew
3ffbad09c7 Bug 1028716 part 3 - Widget updates to support the extended set of -moz-orient values. r=roc 2014-06-24 19:26:13 +01:00
Andrea Marchesini
ade2831035 Bug 1156632 - Remove unused forward class declarations - patch 6 - the rest of the tree, r=ehsan 2015-04-22 08:29:24 +02:00
Markus Stange
77c2909c47 Bug 1156315 - Call DispatchInputEvent in more places on OS X. r=dvander
--HG--
extra : rebase_source : 1536bfcdee085059be4508b4c52cb6c62f0ce6f0
2015-04-21 17:44:10 -04:00
Nicolas Silva
cfff5e52c5 Bug 1155621 - Make nsIntRect and nsIntPoint typedefs of mozilla::gfx::IntRect and mozilla::gfx::IntPoint. r=Bas 2015-04-21 17:04:57 +02:00
Denis Volk
32e981896d Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04:00
Dmitry
2d11c0c15c Bug 1154676 - Add a null-check for the presshell. r=mstange
--HG--
extra : rebase_source : e96658fa4f959ebe74fd5f0320a60f8b19b75c25
2015-04-15 13:15:44 -04:00
Chris Peterson
1e643f5a57 Bug 1153579 - Fix -Wsign-compare warnings in nsNativeThemeCocoa.mm about int and size_t. r=mstange 2015-04-17 10:02:21 -07:00
Markus Stange
533712e3b1 Bug 1154322 - Always use DrawTargetCG when painting directly into a window on OS X (unaccelerated drawRect rendering). r=jrmuizel
This also gets rid of the code path that allowed us to test DrawTargetCairo for OS X content rendering. As far as I know, nobody has made use of it in the past 12 months.

This change makes us not crash if SupportsAzureContentForType(BackendType::COREGRAPHICS) returns false, which will be the case if you flip the azure content pref to a supported non-"cg" value.
2015-04-14 11:40:53 -04:00
Kartikaya Gupta
5cf2d407fd Bug 1146349 - Make the native event synthesization functions in DOMWindowUtils async. r=smaug 2015-04-14 11:36:36 -04:00
Markus Stange
f6fb4a2a83 Bug 1148868 - Fix up nsChildView::ConfigureAPZControllerThread(). r=kats
--HG--
extra : rebase_source : 6f14ca5ea2569221d78f2b286a668e46ceb9eb43
2015-04-13 17:03:38 -04:00
Markus Stange
89e2a430d8 Bug 1148868 - Forward Mac wheel events to APZ. r=dvander
--HG--
extra : rebase_source : 6e9f08ad8f301ae2d0c7ec3cc54143baa82ec453
2015-03-29 01:00:53 -04:00
Markus Stange
8b94282b61 Bug 1148868 - Disable the workaround from bug 1151890 unless we use the separate event thread runner. r=kats
--HG--
extra : rebase_source : e8a643f88775023d6c29d0708f3e8baae58b8b95
2015-04-13 15:42:58 -04:00
Markus Stange
3e3be37c41 Bug 1148868 - Put the APZ event thread on Mac behind a pref layers.async-pan-zoom.separate-event-thread that defaults to false. r=dvander
--HG--
extra : rebase_source : dd02904a032008601d421ad7c30465da3ba97c6e
2015-03-29 00:58:52 -04:00
Chris Peterson
27729b2112 Bug 1153579 - Fix -Wpointer-bool-conversion warning by removing null check of an array address. r=mstange 2015-04-11 01:03:44 -07:00
Alexandru Tifrea
750f1d8d1c Bug 966395 - Correctly propagate the input language's direction on OSX. r=masayuki/mrbkap
Gtk patch written by mrbkap@mozilla.com, with r=roc
2015-04-10 15:18:05 -07:00
Kartikaya Gupta
0c2e1ab7dd Bug 1151890 - Explicitly set a null MessageLoop for the APZ controller thread on OS X. r=mstange 2015-04-07 16:53:41 -04:00
Ehsan Akhgari
cd299c5394 Bug 1110888 follow-up: Mark SetPluginFocused as override 2015-04-08 10:27:42 -04:00
Wes Kocher
fc13417733 Backed out changeset ba41917b2182 (bug 1151890) for android reftest failures
--HG--
extra : amend_source : 671b7f45f14a231f8caab35d929acaf9c1060687
2015-04-07 17:42:41 -07:00
Kartikaya Gupta
30016c18de Bug 1151890 - Explicitly set a null MessageLoop for the APZ controller thread on OS X. r=mstange 2015-04-07 16:53:41 -04:00
Nicolas Silva
0b1f75bea0 Bug 1132854 - Remove the gfx::ToIntSize conversion helper. r=Bas 2015-04-07 16:08:57 +02:00
Mike Hommey
b077d9624d Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Mats Palmgren
2fa6fbc270 Bug 1149785 - Make nsIWidget::ClientToWindowSize use LayoutDeviceIntSize instead of the unit-less nsIntSize. r=roc 2015-03-31 22:09:03 +00:00
Mats Palmgren
25fa3a4765 Bug 1148971 - Make nsITheme::GetMinimumWidgetSize return a LayoutDeviceIntSize result instead of the unit-less nsIntSize type. r=roc 2015-03-30 11:36:14 -04:00
Carsten "Tomcat" Book
5c532881b3 Backed out changeset 513192eb7df4 (bug 1148971) for causing bc2 memory leaks 2015-03-30 15:04:09 +02:00
Mats Palmgren
2121f47090 Bug 1148971 - Make nsITheme::GetMinimumWidgetSize return a LayoutDeviceIntSize result instead of the unit-less nsIntSize type. r=roc 2015-03-30 10:37:33 +00:00
George Wright
72153ad282 Bug 1066531 - Delay tab switching until content is ready in e10s mode r=mconley,mstange 2015-03-16 14:30:41 -04:00
Jonathan Kew
7141ce6685 Bug 1138359 - Make the margins of native-themed Cocoa buttons aware of writing mode. r=smontagu 2015-03-26 09:59:27 +00:00
Ehsan Akhgari
883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Wes Kocher
571bb95717 Backed out changeset 6ef7ca8f1db3 (bug 1066531) so I can get at a patch that caused near-permafailing bc3 2015-03-20 17:17:19 -07:00
George Wright
ab018a486f Bug 1066531 - Delay tab switching until content is ready in e10s mode r=mconley,mstange 2015-03-20 15:09:58 -04:00
David Parks
be65e7c4e3 Bug 1138678 - Ignore NOTIFY_IME_OF_BLUR when establishing secure input mode. r=masayuki
SetInputContext keeps proper tabs on the secure input setting.  This
code could result in improper IME configuration.

--HG--
extra : rebase_source : 431cb629ca2321776fcc4c73635739f037729605
2015-03-18 19:08:22 -07:00
Markus Stange
9a4b1b5557 Bug 1142393 - Make menus look correct when 'Reduce transparency' is set. r=smichaud 2015-03-16 16:20:46 -04:00
Chris Peterson
4ef943c538 Bug 1141917 - Remove unused member function RectTextureImage::UpdateFromDrawTarget(). r=mstange
--HG--
extra : rebase_source : c80b149728ecbad2c2f643268b0bdce364f0d5fd
2015-03-10 21:21:56 -07:00
Steven Michaud
c0cae7956c Bug 1137229 - Fix breakage in IMEInputHandler::OnDestroyWidget(). r=masayuki 2015-03-10 20:25:38 -05:00
Nathan Froyd
4380a42bbc Bug 1141689 - use services::GetObserverService more; r=ehsan 2014-04-29 13:31:06 -04:00
David Parks
0906f6b9ed Bug 1138669 - Remove key event from nsChildView crash log message. r=smichaud
Removed theEvent from the message.
2015-03-05 14:25:32 -08:00
Milan Sreckovic
76dd5cd892 Bug 1140113 - Catch direct (and some indirect) callers of CreateDrawTarget* and deal with failure. r=mstange 2015-03-09 15:48:20 -04:00
Markus Stange
b04d177f0b Bug 976722 - Make -moz-appearance:toolbox influence the sheet attachment edge. r=roc 2015-03-06 14:43:46 -05:00
Andrea Marchesini
983b9d9fa4 Bug 1134280 - Get rid of Tag() - patch 2.13 - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:09:00 +00:00
Andrea Marchesini
2c4f63331f Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
Jean-Yves Avenard
5e99c4b42a Bug 1138731: Fix non-unified compilation in beta. r=smichaud
--HG--
extra : rebase_source : ac988b94a6518cea1004cb135d77896f8b91922c
2015-03-03 16:31:10 +11:00
David Parks
8160811906 Bug 1124408 - Report cocoa view focus correctly when sheets are exposed. r=masayuki,smichaud
nsChildView::SetInputContext sets secure input based on
IMEInputHandler::IsOrWouldBeFocused, which should report true if the
view would get focus if the window got focus.  This fixes the function
to report NO when the focus would instead go to a sheet 'child window'.

--HG--
extra : amend_source : 72af47412cd65cc17fa34fc683ace87d02150ce3
2015-02-24 03:51:53 -08:00
Markus Stange
c9f3048148 Bug 1135912 - Don't repaint vibrant regions on mouseover. r=smichaud
--HG--
extra : rebase_source : e85343b5aa626eef9059170273b34ce5e181f836
extra : source : 58d13a71c5dc57f190df091f971f8b3256506b97
2015-02-23 18:27:15 -05:00
Wes Kocher
8ff3b04a7f Backed out changeset 58d13a71c5dc (bug 1135912) for reftest bustage on a CLOSED TREE 2015-02-24 17:32:00 -08:00
Markus Stange
941ec467cc Bug 1135912 - Don't repaint vibrant regions on mouseover. r=smichaud 2015-02-23 18:27:15 -05:00
Steven Michaud
68e8327d5b Bug 1110888 - Always do plugin IME in main process, even with e10s. r=masayuki,smaug 2015-02-20 10:37:02 -06:00
Masayuki Nakano
27d34fdbd2 Bug 1119609 part.3 Implement converting methods from key/code value to key/code name index r=smaug 2015-02-19 15:50:19 +09:00
Paul Rouget
410db13a8c Bug 1127205 - Can't quit B2G Desktop on Mac. r=mstange 2015-02-18 16:34:00 +01:00
David Zbarsky
e63a6defd2 Bug 1125040: Use LayoutDeviceIntPoint for synthesizing native events on widgets r=botond 2015-02-15 13:52:28 -05:00
Aaron Klotz
5d33b28500 Bug 1132305 - Ensure that BHR knows when thread activity has resumed in nextEventMatchingMask. r=smichaud 2015-02-12 10:31:42 -07:00
Jonathan Kew
3becdb3805 Bug 1076657 pt 3 - Support drawsVerticallyForCharacterAtIndex method in Cocoa childView and IME input handler. r=masayuki 2015-02-10 15:28:05 +00:00
Chris Peterson
d5537ab3e0 Bug 1130828 - Fix clang -Widiomatic-parentheses and -Wsemicolon-before-method-body warnings. r=smichaud 2015-02-06 00:09:39 -08:00
Nicholas Nethercote
242708cf72 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Markus Stange
bce83391f5 Bug 1130746 - Always position window buttons at their default position in fullscreen mode. r=smichaud 2015-02-09 00:50:44 -05:00
Markus Stange
357e1430c9 Bug 1045213 - Rename template parameters to something more descriptive. r=botond 2015-02-09 00:17:35 -05:00
Andrew McCreight
d3826daa16 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Robert O'Callahan
7a165b59ca Bug 1129774. Part 5: Remove aContext parameter from nsIWidget::Create. r=jmathies
--HG--
extra : rebase_source : 517ff800c0307e69465a37da7e52605d2fcda0d1
2015-02-05 20:35:25 +13:00
Robert O'Callahan
282e59cd87 Bug 1129774. Part 3: Remove aContext parameter from BaseCreate and make it nonvirtual. r=jmathies
--HG--
extra : rebase_source : 9fd0a3e071b7d3ad273667f144889938bc5d9dc4
2015-02-05 18:18:30 +13:00
Nicholas Nethercote
d34f0301b8 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Markus Stange
c9764ae723 Bug 1045213 - Make menu separators look correct by having them use foreground vibrancy. r=smichaud 2015-02-04 17:25:19 -05:00
Markus Stange
3edb556711 Bug 1045213 - Add a MakeRegionsNonOverlapping function for less repetitive code. r=botond 2015-02-04 17:25:19 -05:00
Markus Stange
61101209ee Bug 1045213 - Get smooth rounded corners for vibrant context menus by using _cornerMask. r=smichaud 2015-02-04 17:25:19 -05:00
Markus Stange
81d520103d Bug 1045213 - Make the highlighted menu item vibrant. r=smichaud 2015-02-04 17:25:19 -05:00
Markus Stange
2f12e52126 Bug 1045213 - Add nsITheme::ThemeGeometryTypeForWidget. r=roc 2015-02-04 17:25:18 -05:00
Markus Stange
fd3d5eb0f0 Bug 1045213 - Use vibrancy effect for context menus. r=smichaud 2015-02-04 17:25:18 -05:00
David Zbarsky
77ae10e9d5 Bug 1125040 - Use LayoutDeviceIntPoint in IME code r=botond 2015-02-04 15:21:03 -05:00
David Zbarsky
c73ec42d2d Bug 1125040: Use LayoutDeviceIntPoint for nsIWidget::WidgetToScreen r=botond 2015-02-04 15:21:03 -05:00
Paul Rouget
14d9d356fb Bug 1118134 - expose a method to set chromemargin. r=mstange r=bz 2015-02-02 13:14:00 +01:00
Xidorn Quan
9bb22d3b6b Bug 569334 part 2 - Provide font info for content query on Mac. r=smichaud 2015-01-31 18:17:18 +11:00
Paul Rouget
0f11aa32ba Bug 1120917 - Make it possible to hide the window controls (osx). r=mstange
--HG--
extra : rebase_source : 8bd335520055cbbc566a0a54e7862d7d8a83009d
2015-01-28 22:44:00 +01:00
Masayuki Nakano
dd277f3277 Bug 917322 part.7 TextEventDispatcher should manage if it has composition r=smaug 2015-01-28 15:27:31 +09:00
Masatoshi Kimura
6cc5dabbee Bug 1111290 - Part 3: Remove TypedEnum.h and fold TypedEnumInternal.h into TypedEnumBits.h. r=waldo 2015-01-26 07:22:11 +09:00
Masatoshi Kimura
be535304d8 Bug 1111290 - Part 1: Remove MOZ_(BEGIN|END)_ENUM_CLASS. r=waldo 2015-01-26 07:22:07 +09:00
David Parks
7caef754ab Bug 1051842 - Part 3 - crash in -[ChildView keyDown:]. r=masayuki
Normalize secure input requests.  We have been counting the number of
requests for secure input with the intent of requiring the equal amount
of disable requests, but this behavior would not gain anything and the
implementation actually never disabled requests - it always zeros out
the count.  This patch makes the zeroing-out behavior more consistent.
DisableSecureEventInput should probably be removed.
2014-08-20 23:09:44 -07:00
David Parks
645064d99a Bug 1051842 - Part 1 - [e10s] crash in -[ChildView keyDown:]. r=smichaud
Fix Cocoa window IME focus test to work even if window has not received
OSX main-window status.
2015-01-12 08:26:05 -08:00
Steven Michaud
f576cefcba Bug 1117027 - Unity DT2 demo crashes on first click with e10s disabled on OS X. r=mstange 2015-01-20 16:26:38 -06:00
Bill McCloskey
b9ede381a2 Bug 1051842 - Backout 7310c42d346e (bug 1051842) due to bug 1122208 2015-01-20 14:04:17 -08:00
Bill McCloskey
39a211f1f8 Bug 1051842 - Backout 90ca7355bbcc (bug 1051842) due to bug 1122208 2015-01-20 14:02:52 -08:00
Seth Fowler
d34d823d05 Bug 1118655 - Use decode-on-draw only, and ignore RequestDecode and the like, when APZ and downscale-during-decode are enabled. r=tn 2015-01-19 15:46:55 -08:00
David Parks
f2ca386499 Bug 1051842 - Part 3 - crash in -[ChildView keyDown:]. r=masayuki
Normalize secure input requests.  We have been counting the number of
requests for secure input with the intent of requiring the equal amount
of disable requests, but this behavior would not gain anything and the
implementation actually never disabled requests - it always zeros out
the count.  This patch makes the zeroing-out behavior more consistent.
DisableSecureEventInput should probably be removed.
2014-08-20 23:09:44 -07:00
David Parks
d01c3bcd0b Bug 1051842 - Part 1 - [e10s] crash in -[ChildView keyDown:]. r=smichaud
Fix Cocoa window IME focus test to work even if window has not received
OSX main-window status.
2015-01-12 08:26:05 -08:00
Neil Deakin
a744e9625f Bug 1102039, Ensure that the popup's widget visibility is updated after rollup, allows popups to disappear at the start of the minimize animation rather than after, r=tn 2015-01-07 20:52:20 -05:00
Ehsan Akhgari
a41280816e Bug 1116622 - Give TemporaryRef a take() method semantically equivalent to already_AddRefed::take(); r=froydnj
This is in preparation of removing TemporaryRef.  It should help make
already_AddRefed a drop-in replacement for it.
2015-01-05 11:32:37 -05:00
Ehsan Akhgari
390eaebf41 Bug 1117044 - Mark virtual overridden functions as MOZ_OVERRIDE in widget; r=roc 2015-01-02 09:02:51 -05:00
David Anderson
8226f0cd2e Create a common chrome-process GeckoContentController. (bug 1110540 part 2, r=kats) 2014-12-15 01:49:48 -08:00
David Anderson
aa0028e4da Move APZC initialization into nsBaseWidget. (bug 1110540 part 1, r=kats) 2014-12-15 01:47:15 -08:00
Ehsan Akhgari
0e6e105e69 Bug 1111242 - Use std::abs instead of fabsf in nsChildView.mm; r=josh
clang gives the following warning on these fabs usages:
absolute value function 'fabsf' given an argument of type 'CGFloat' (aka 'double') but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]

--HG--
extra : amend_source : 1c2352555626c0b412bdd5c383074726f84e2c7b
2014-12-14 14:58:56 -05:00
Chris Peterson
7e75241954 Bug 1110641 - Remove unused variable minWidth and "ui.plugin.panel.min-width" pref from widget/cocoa/ComplexTextInputPanel.mm. r=josh 2014-12-11 23:04:36 -08:00
Josh Aas
f9e3926e19 Bug 1092630: Get rid of native widgets for OS X NPAPI plugins, make things work much better under e10s. Patch by Josh Aas, Markus Stange, Steven Michaud, David Parks. r=smichaud/jst/josh (more reviews pending) 2014-12-11 08:44:07 -06:00
Wes Kocher
126b4f108e Backed out changeset bf25101e66cf (bug 1095098) for build bustage 2014-12-08 16:27:12 -08:00
Denis Volk
0f94bddfc8 Bug 1095098: move do_QueryObject templates into their own header r=froydnj 2014-11-20 12:20:10 +01:00