Commit Graph

1713 Commits

Author SHA1 Message Date
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
Chris H-C
53663750f7 Bug 506815 - Replace MouseTrailer with TrackMouseEvent. r=jimm
MouseTrailer, using a 200ms timer, was used to track whether a pointer was
still present over a window.

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

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

--HG--
extra : rebase_source : 9e56fd40929257d847c5cddb8a998c3ca2381655
2015-11-20 07:42:00 +01:00
Nicholas Nethercote
68a4454074 Bug 1227020 - Replace nsBaseHashtable::Enumerate() calls in widget/ with iterators. r=roc.
--HG--
extra : rebase_source : d6f3ad4cc9dbe64a13b989ed91a6f73ec7fe19a1
2015-11-22 18:52:40 -08:00
Jorg K
88642f71dc Bug 938991 - text/rtf support for clipboard data. r=enndeakin 2015-11-23 11:04:26 -08:00
Andrew Herron
ffb1c5dd5b Bug 586587 - support kHTMLMime in the Windows clipboard as CF_HTML. r=jimm 2015-07-22 16:56:57 +10:00
Masayuki Nakano
17e8d0a0e1 Bug 1224454 part.2 IMMHandler::OnFocusChange() should cancel remaining composition when given nsWindow is being destroyed r=m_kato 2015-11-17 16:47:06 +09:00
Masayuki Nakano
be8f7a8cb3 Bug 1224454 part.1 IMEHandler should generate NOTIFY_IME_OF_BLUR in e10s mode if the focused widget is being destroyed before receiving NOTIFY_IME_OF_BLUR r=m_kato 2015-11-17 16:47:06 +09:00
Matt Brubeck
0954e27b0a Bug 431620 - Remove unused function GetToggledKeyState [r=roc] 2015-11-16 16:06:41 -08:00
Gijs Kruitbosch
aaf54987f1 Bug 1221947 - part 2: add TOUCH cause to IME Handling and use it to avoid checking for a keyboard, r=masayuki
--HG--
extra : commitid : 210bhfz78Nm
extra : rebase_source : a3ee068abd8cb0fc2c83be7d5e5442bf74979ecd
extra : histedit_source : 29daad4b99ad4d41663cc026983dffa7449029dc
2015-11-12 16:36:19 +00:00
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
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
9c6cbed1d0 Bug 1224403 (part 9) - Remove GetRestoredBoundsUntyped(). r=kats.
The typed version can be used everywhere without difficulty.

--HG--
extra : rebase_source : 841d7202126e8be16f47ed2c14c4ec20fe101b28
2015-11-12 05:43:01 -08:00
Nicholas Nethercote
a63371ae36 Bug 1224403 (part 7) - Use LayoutDeviceIntMargin more in IMMHandler. r=kats.
--HG--
extra : rebase_source : bd16246a0f6d79f9a5c40813dd5d9a1085b06c6a
2015-11-12 05:22:44 -08:00
Nicholas Nethercote
3ce44673ed Bug 1224403 (part 6) - Remove one WidgetToScreenOffsetUntyped() call. r=kats.
--HG--
extra : rebase_source : fe8441c71cf642684c5b2edee1e7175630917760
2015-11-12 05:08:31 -08:00
Nicholas Nethercote
ab29eab5df Bug 1224403 (part 5) - Make OnDefaultButtonLoaded() return/take a LayoutDeviceIntMargin. r=kats.
--HG--
extra : rebase_source : e12b1703343cc95b52b4a20bd56a3790def99325
2015-11-12 04:34:29 -08:00
Nicholas Nethercote
e2fe66176b Bug 1224403 (part 4) - Make {Get,Set}NonClientMargins() return/take a LayoutDeviceIntMargin. r=kats.
This required adding {To,From}UnknownMargin().

--HG--
extra : rebase_source : de7e8f56604825bcc1babe5e05a8f8623a402cad
2015-11-11 23:05:04 -08:00
Nicholas Nethercote
f703d45de5 Bug 1224403 (part 3) - Make mNonClientOffset a LayoutDeviceIntMargin. r=kats.
Surprisingly enough, this requires no other changes, because it's only ever
accessed on a per-field basis, rather than the entire struct at once.

--HG--
extra : rebase_source : a3b1efad0dae6b1ddab3ab77f046e2924c62231b
2015-11-11 20:04:01 -08:00
Nicholas Nethercote
7922110bde Bug 1224403 (part 2) - Split GetClientOffset() into typed and untyped versions. r=kats.
--HG--
extra : rebase_source : 5197f42325d36313ad8c6178baaabcf6f7df532c
2015-11-11 19:56:06 -08:00
Nicholas Nethercote
ff5231e6d2 Bug 1224403 (part 1) - Make Configuration::mBounds a LayoutDeviceIntRect. r=kats.
--HG--
extra : rebase_source : a0ae2779dfd9bc10730c8b38bc082453845daa1f
2015-11-10 16:27:26 -08:00
Botond Ballo
6a70e1aa18 Bug 1222661 - Replace FromUntyped(obj) calls with FromUnknown*(obj). r=nical
--HG--
extra : rebase_source : c1afe8560b838e1a3be0ce50847861b1815d3dc9
extra : source : d649f163c825736efaf3ac3ad73040beeb48a6ef
2015-11-09 18:22:25 -05:00
Botond Ballo
a592a77364 Bug 1222661 - Replace ToUntyped(obj) calls with obj.ToUnknown*(). r=nical
--HG--
extra : rebase_source : 1cab46638599d8c4e6183c42a6fa9d41702392cb
extra : source : cabc28a2200b9b4e5e137d331ee5b86b3c09f065
2015-11-06 22:13:40 -05:00
Nicholas Nethercote
ad0dd8414a Bug 1223310 (part 2) - Use LayoutDeviceIntRect for bounds-related functions in nsIWidget. r=kats.
The patch renames the existing functions (GetBounds(), GetClientBounds(), etc)
by adding an |Untyped| suffix. It then adds typed equivalents, and uses those
typed equivalents in all the call sites where it's easy to do so. The trickier
remaining call sites are converted to use the Untyped-suffix version.

--HG--
extra : rebase_source : 6bfb15bfc4698e2eba7d4db55497299d3dffcd51
2015-11-09 21:37:32 -08:00
Nicholas Nethercote
9895f2b525 Bug 1223310 (part 1) - Pass a LayoutDeviceIntPoint instead of an nsIntPoint to InitEvent(). r=kats.
Also use direct assignment for some LayoutDeviceIntPoint assignments, rather
than doing it field-by-field.

--HG--
extra : rebase_source : cff1ec8f1ed3ab1924a07d2227044f646019f0cf
2015-11-09 21:37:32 -08:00
Nathan Froyd
9add484895 Bug 1222444 - remove unused variable in nsWindow::GetMessageTimeStamp; r=roc 2015-11-05 15:15:49 -05:00
Nathan Froyd
1df3aeaee4 Bug 1222149 - delete unused fields from AsyncEncodeAndWriteIcon; r=roc
clang-cl says these are unused, so let's delete them.
2015-11-05 14:19:20 -05:00
Botond Ballo
5bf85e9f9d Bug 1220923 - Make nsIntRegion a typedef for IntRegionTyped<UnknownUnits>. r=nical
--HG--
extra : source : 1f371f014048ed4c3c25095233fea927311a7e23
2015-11-04 11:49:49 -05:00
Matt Woodrow
43e4c98e28 Bug 1203199 - Bustage fix. CLOSED TREE 2015-11-04 16:51:22 +13:00
Matt Woodrow
dad4ebe210 Bug 1203199 - Fix driver range with blacklist to avoid blacklisting other OSes.
--HG--
extra : rebase_source : e2dc29a94aa88fd3d181aa2171cece9d61c103c5
2015-11-04 16:17:00 +13:00
Matt Woodrow
631340121d Bug 1203199 - Blacklist DXVA on some older intel drivers for causing crashes. r=jrmuizel 2015-10-22 12:35:52 +13:00
Nigel Babu
9ede18e7fe Backed out changeset ad08ab3d158e (bug 1203199) for widespread reftest bustage 2015-11-03 12:01:22 +05:30
Nigel Babu
10791e232a Backed out changeset 7b99659430b1 (bug 1203199) 2015-11-03 11:59:03 +05:30
Matt Woodrow
f48376f304 Bug 1203199 - Fix trailing comma causing bustage. CLOSED TREE 2015-11-03 17:47:22 +13:00
Matt Woodrow
26d59a2852 Bug 1203199 - Blacklist DXVA on some older intel drivers for causing crashes. r=jrmuizel
--HG--
extra : rebase_source : 10af1656e2cfc594cb94c2eb7020a09e9e3f1d58
2015-10-22 12:35:52 +13:00
Christoph Kerschbaumer
1ee2473768 Bug 1206964 - Use channel->AsyncOpen2() in netwerk/base/nsNetUtil.cpp (r=sicking) 2015-11-02 17:31:08 -08:00
Nathan Froyd
e255b900f5 Bug 1220392 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in widget/; r=roc 2015-10-30 14:35:28 -04:00
Birunthan Mohanathas
9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02: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
Nathan Froyd
ce836868f3 Bug 1218488 - clarify buffer ownership for nsICanvasRenderingContextInternal::GetBuffer; r=Bas,baku
This patch started life as making ImageEncoder.cpp:EncodingRunnable not
use nsAutoArrayPtr, but the API effects rippled out from there.  On the
whole, I think using UniquePtr throughout has made the code clearer.
2015-10-26 14:31:12 -04:00
Chris Pearce
36b20fb2a9 Bug 1193610 - Also use SystemParametersInfo to block screen saver on Windows, so it works on WinXP and Vista. r=jimm 2015-10-27 11:58:15 +13:00
Masayuki Nakano
7f2595b09f Bug 1184890 part.3 TSFTextStore shouldn't commit composition when a selection change notification occurred before starting current composition r=m_kato 2015-10-27 07:21:37 +09:00
Masayuki Nakano
35aa5312ba Bug 1184890 part.1 SelectionChangeDataBase and TextChangeDataBase should have a flag which indicates whether the change occurred during composition or not r=smaug 2015-10-27 07:21:37 +09:00
Aaron Klotz
ac934e7347 Bug 1217565 - Fix assertion in nsWindow::IPCWindowProcHandler to account for suppressed neutering; r=jimm 2015-10-22 16:09:55 -04:00
Masayuki Nakano
4adbaf87c5 Bug 1217275 Fix missing \n in IMMHandler::HandleDocumentFeed(), it was replaced to empty string accidentally r=m_kato 2015-10-23 10:12:15 +09:00
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
Gijs Kruitbosch
a8cc7601a0 Bug 1203574 - use ShowNA for everything except aero basic / aero lite, to get caption button metrics, r=jimm
--HG--
extra : commitid : 8Q5THh7Z8r4
extra : rebase_source : 89ab1026c64ba514ccb27202b91b12ac67b492ff
2015-10-20 11:40:15 +01:00
Carsten "Tomcat" Book
3198b767f9 merge mozilla-inbound to mozilla-central a=merge 2015-10-20 12:00:53 +02:00
Gijs Kruitbosch
e182a0c49c Bug 1213845 - enable osk support on windows 8, but hide it behind a preference, r=jaws
--HG--
extra : commitid : HGvNNv1htDF
extra : rebase_source : 7c39d7903bfda6040a202d6784c5a4e469a7eeed
extra : amend_source : af5a54a5fe9f3120c30dfe6ac3b607da596364e9
2015-10-16 16:28:13 +01:00
Gijs Kruitbosch
a9af7b7120 Bug 1211805 - rework keyboard detection for on-screen keyboard, r=jaws
--HG--
extra : commitid : 4W25HdPNNOS
extra : rebase_source : d49ee1de93691ee77d395d2ea1005103fdf8a3ec
extra : amend_source : 2fbd7b8f946fa8672d000ca0457d5cb1386d0569
2015-10-16 17:47:25 +01:00
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