Commit Graph

10553 Commits

Author SHA1 Message Date
Xidorn Quan
9141eb539e Bug 1190316 - Apply fullscreen transition on only the target monitor. r=roc 2015-08-13 08:53:53 +10:00
Gabor Krizsanits
40f4b4b71c Bug 1175940 - UIResolutionChanged should not trigger sync messages from content to chrome. r=mconley 2015-08-13 16:42:19 +02:00
Jacek Caban
49e4ae2d79 Bug 1192248 - Fixed WinIMEHandler.cpp cross compilation. r=masayuki 2015-08-13 17:37:57 +02:00
Mason Chang
c8c6e68b76 Bug 1193842 - Delete touch resampling preference and non resampling paths. r=kats 2015-08-13 08:23:14 -07:00
Mike Conley
6ca832b8e4 Bug 1106321 - Serialize DEVMODE down to the content process when printing on Windows. r=jimm 2015-08-06 17:36:54 -04:00
Bob Owen
36f187da0f Bug 1182411 Part 2: Change winless popup surrogate to have its parent set in the chrome process. r=jimm
The creation of the surrogate native window in the child NPAPI process was
failing when then sandbox was at low integrity, because the parent is from the
chrome process, so at medium integrity.
Instead of making an IPC call to get the parent, we now create the window upfront
and send it in an IPC message to be parented in the chrome process.
This is done with asynchronous messaging.
2015-08-12 16:00:26 +01:00
Terrence Cole
2ac7da03fc Bug 1191529 - Remove JSIdArray and AutoIdArray and replace with Rooted<IdVector>; r=mccr8, r=jonco
* * *
imported patch 2_remove_AutoIdArray_gk
2015-08-05 11:02:00 -07:00
Nick Robson
07b38ad250 Bug 1075089 - Move popup menu frame offset to LookAndFeel and fix default offset for OS X. r=Enn 2015-08-04 16:41:00 -04:00
Kyle Huey
1ffb03e8dc Bug 1179909: Refactor stable state handling. r=smaug
This is motivated by three separate but related problems:

1. Our concept of recursion depth is broken for things that run from AfterProcessNextEvent observers (e.g. Promises). We decrement the recursionDepth counter before firing observers, so a Promise callback running at the lowest event loop depth has a recursion depth of 0 (whereas a regular nsIRunnable would be 1). This is a problem because it's impossible to distinguish a Promise running after a sync XHR's onreadystatechange handler from a top-level event (since the former runs with depth 2 - 1 = 1, and the latter runs with just 1).

2. The nsIThreadObserver mechanism that is used by a lot of code to run "after" the current event is a poor fit for anything that runs script. First, the order the observers fire in is the order they were added, not anything fixed by spec. Additionally, running script can cause the event loop to spin, which is a big source of pain here (bholley has some nasty bug caused by this).

3. We run Promises from different points in the code for workers and main thread. The latter runs from XPConnect's nsIThreadObserver callbacks, while the former runs from a hardcoded call to run Promises in the worker event loop. What workers do is particularly problematic because it means we can't get the right recursion depth no matter what we do to nsThread.

The solve this, this patch does the following:

1. Consolidate some handling of microtasks and all handling of stable state from appshell and WorkerPrivate into CycleCollectedJSRuntime.
2. Make the recursionDepth counter only available to CycleCollectedJSRuntime (and its consumers) and remove it from the nsIThreadInternal and nsIThreadObserver APIs.
3. Adjust the recursionDepth counter so that microtasks run with the recursionDepth of the task they are associated with.
4. Introduce the concept of metastable state to replace appshell's RunBeforeNextEvent. Metastable state is reached after every microtask or task is completed. This provides the semantics that bent and I want for IndexedDB, where transactions autocommit at the end of a microtask and do not "spill" from one microtask into a subsequent microtask. This differs from appshell's RunBeforeNextEvent in two ways:
a) It fires between microtasks, which was the motivation for starting this.
b) It no longer ensures that we're at the same event loop depth in the native event queue. bent decided we don't care about this.
5. Reorder stable state to happen after microtasks such as Promises, per HTML. Right now we call the regular thread observers, including appshell, before the main thread observer (XPConnect), so stable state tasks happen before microtasks.
2015-08-11 06:10:46 -07:00
Gabor Krizsanits
2ad126c20b Bug 863512 - Fixing xul dnd panels for linux. r=enndeakin 2015-08-05 13:19:44 +02:00
Makoto Kato
40de6d393c Bug 1187178 - Use MOZ_WINSDK_MAXVER instead of #ifndef. r=jimm 2015-08-11 14:12:29 +09:00
Sotaro Ikeda
bec8e2d216 Bug 1192949 - Fix nsScreenGonk::SetMirroringScreen() r=mwu 2015-08-10 16:28:36 -07:00
Andrew Comminos
7b05d7ecde Bug 1189028 - Draw a toplevel popup behind popup menus on GTK3. r=karlt 2015-08-06 14:20:00 -04:00
Lee Salzman
c12a6d0614 Bug 1184009 - Limit gtk file picker preview source sizes. r=acomminos 2015-08-07 12:24:22 -04:00
Masayuki Nakano
1c0c5d9147 Bug 1187724 Don't dispatch KeyboardEvents when the target of WM_APPCOMMAND is a windowed plug-in for preventing deadlock r=jimm 2015-08-10 23:54:18 +09:00
Xidorn Quan
f3e3f9d7f0 Bug 1184201 - Disable fullscreen transition on Windows if composition is disabled. r=jimm 2015-08-10 23:20:03 +10:00
Jacek Caban
617577e4bb Bug 1192248 - Fix wchar_t/char16_t mismatch WinIMEHandler.cpp. r=masayuki 2015-08-10 09:24:57 +10:00
Sotaro Ikeda
f523d754da Bug 1186000 - Support screen mirroring to HDMI display on gonk r=mwu,mattwoodrow 2015-08-08 13:50:47 -07:00
Masayuki Nakano
c20e0ea95d Bug 1192156 Separate IME specific structs, classes and enums from nsIWidget.h to IMEData.h r=roc 2015-08-09 00:47:19 +09:00
Ryan VanderMeulen
5ebf665b03 Merge inbound to m-c. a=merge 2015-08-07 16:02:43 -04:00
Petr Jasicek
67bf5e95b4 Bug 1160154 - Decrease padding between icons in the personal toolbar with Gtk3 by using "image-button" css style class. r=karlt
CLOSED TREE
2015-08-07 01:09:00 -04:00
Xidorn Quan
e15a5ffe16 Bug 1188322 - Always hide menubar as well as dock for fullscreen on OS X whatever the screen is. r=mstange 2015-08-07 13:49:12 +10:00
Wes Kocher
470f734e39 Merge m-c to inbound, a=merge 2015-08-06 18:11:16 -07:00
Ryan VanderMeulen
48740cf0e3 Merge m-c to fx-team. a=merge 2015-08-06 15:53:46 -04:00
Jared Wein
0af88fb303 Bug 1007063 - Show virtual (on-screen) keyboard in Windows 8 and higher when text fields are focused if physical keyboards are not present. r=jimm r=masayuki r=m_kato 2015-08-05 10:38:51 -04:00
Lee Salzman
1c532ba7ab Bug 1190935 - Fix race condition in gtk window EndRemoteDrawingInRegion. r=nical 2015-08-06 11:02:03 -04:00
Masayuki Nakano
07cb2950f9 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
Milan Sreckovic
a02e28186c Bug 1191404 - Update the comments to avoid confusion about what happens with blocklisting when the OS is unknown. No code change. r=milan 2015-08-05 10:39:00 +02:00
Wes Kocher
34351583f5 Merge b2ginbound to central, a=merge 2015-08-05 16:45:41 -07:00
Carsten "Tomcat" Book
bab4897aec Merge mozilla-central to b2g-inbound 2015-08-05 13:40:29 +02:00
Boris Chiou
711a43c8f8 Bug 1180657 - Use hwc directly on GonkDisplayICS. r=sotaro 2015-08-03 19:43:00 +02:00
Masayuki Nakano
c09c1c685f Bug 1188442 IMMHandler::GetSelection() should use static Selection instance when IME doesn't have focus and return its or mSelection's reference r=emk 2015-08-04 17:05:25 +09:00
Birunthan Mohanathas
9b6236a10a Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
David Anderson
377a84198d Don't create a D3D11 compositor device on content processes. (bug 1183910 part 8, r=bas,mattwoodrow) 2015-08-05 02:45:06 -07:00
Masayuki Nakano
75e7593459 Bug 1187579 Enable TSF in e10s mode r=m_kato 2015-08-05 18:37:47 +09:00
Robert O'Callahan
3e3003e4ce Bug 1184842. Add aNewValue to nsIMutationObserver::AttributeWillChange. r=peterv 2015-07-25 18:05:19 +12:00
Robert O'Callahan
99701808fc Bug 1184842. Allow BeforeSetAttr to preparse aValue. r=peterv
We will pass the preparsed value into AttributeWillChange.
2015-08-01 17:14:06 +12:00
Robert O'Callahan
53c0044a87 Bug 1184842. Pass aOldValue to all mutation observers. r=peterv 2015-07-25 18:01:19 +12:00
Xidorn Quan
e93cfc91bd Bug 1190669 part 4 - Force stop transition animation when the cocoa window gets destroyed. r=smichaud 2015-08-06 15:37:48 +10:00
Xidorn Quan
8cfe5b1e93 Bug 1191112 part 2 - Set the destroyed flag on nsCocoaWindow when destroyed. r=smichaud 2015-08-06 15:37:48 +10:00
Wes Kocher
a183d75efd Merge m-c to inbound, a=merge 2015-08-05 16:47:52 -07:00
Trevor Saunders
26afedea6c no bug - fix case of nsIDocShell.h in WindowsUIUtils.cpp 2015-08-05 17:19:45 -04:00
Jim Chen
7f80c8d918 Bug 1187552 - Make NativeJSContainer use direct ownership model; r=snorp
Make NativeJSContainer/NativeJSObject Java objects own their
corresponding C++ objects directly, to reduce an extra
allocation/deallocation for each object and to simplify code.
2015-08-04 17:47:28 -04:00
Jim Chen
56018802bc Bug 1187552 - Support direct ownership of C++ objects by Java objects; r=snorp
Add a direct ownership model where the Java object owns the
corresponding C++ object directly, in addition to the WeakPtr model
where the Java object owns a WeakPtr to the C++ object. The WeakPtr
model is chosen when the implementing C++ class inherits from
SupportsWeakPtr. Otherwise, the direct ownership model is chosen. Under
the direct ownership model, a UniquePtr object must be used to attach
the containing C++ object to a Java object, to ensure ownership is
passed on to the Java object.
2015-08-04 17:47:28 -04:00
Jim Chen
4ee9900b62 Bug 1187088 - Use UNIFIED_SOURCES in widget/android; r=snorp
Fix some compiling errors in unified mode due to header dependency
issues.
2015-08-04 17:47:28 -04:00
Jim Chen
3a10049d9d Bug 1186467 - Rewrite NativeJSContainer to use new native JNI scheme; r=snorp
This patch makes NativeJSContainer use per-instance native methods.
NativeJSContainer is also updated to use smart JNI reference classes.
2015-08-04 17:47:28 -04:00
Jim Chen
633ea676cd Bug 1186467 - Update generated JNI bindings; r=me 2015-08-04 17:47:28 -04:00
Jim Chen
5f730a2047 Bug 1186467 - Add some JNI utilities for convenience; r=snorp
This patch adds:
* Conversion operator from String::Param to String::LocalRef.
* More overloads of the jni::ThrowException function.
* name members to built-in types like jni::Object, jni::String, etc.
  This allows using jni::Accessors::EnsureClassRef on built-in types
  to get built-in class refs (e.g. jclass for java/lang/String).
* Ability to implicitly convert LocalRef<Cls> to LocalRef<Object>
* Fixes for bugs in LocalRef/GlobalRef where new refs are not created.
* Fixes for inaccurate uses of mozilla::Forward in favor of mozilla::Move
2015-08-04 17:47:28 -04:00
Carsten "Tomcat" Book
26d634a982 Backed out changeset 427cfffcb5b7 (bug 1000870) 2015-08-03 16:37:18 +02:00
Carsten "Tomcat" Book
05d8bcb28a Merge mozilla-central to fx-team 2015-08-07 13:21:30 +02:00
Mark Capella
e14e6d67cc Bug 1191161 - p3 - Surprise update-generated-wrappers changes, r=jchen 2015-08-07 02:09:08 -04:00
Maksim Lebedev
8fbc5386cc Bug 1000870 - Add some features in testing system. r=smaug 2015-05-19 07:03:00 +02:00
Masayuki Nakano
ed1af44398 Bug 1050644 part.2 Hack ITextStoreACP::GetTextExt()'s offset for some Chinese TIPs of MS r=emk 2015-08-03 15:15:30 +09:00
Masayuki Nakano
8e0a022516 Bug 1050644 part.1 Add methods to check whether the active TIP is Chinese TIP which deosn't show candidate window in e10s mode r=emk 2015-08-03 15:15:30 +09:00
Masayuki Nakano
bc1da58279 Bug 1187566 TSFTextStore::Content should compute mMinTextModified Offset only with the latest composition string and original composition string, and also the hack should be enabled on Win10 r=emk 2015-08-03 15:15:30 +09:00
Neil Rashbrook
19532117ef Bug 1189698 Potential race condition when shutting down the old player thread r=jimm 2015-08-01 14:03:43 +01:00
Gian-Carlo Pascutto
b1a625dcbb Bug 1189058 - Don't spin the Event loop while setting up WebRTC + Java. r=snorp 2015-07-30 19:53:38 +02:00
Xidorn Quan
51e6bea4a5 Bug 1173930 - Not invoke FullscreenChange callback on OS X if state is not changed. r=smichaud 2015-08-01 10:49:19 +10:00
Carsten "Tomcat" Book
7605a6369b 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
Carsten "Tomcat" Book
e9db1b969f Merge mozilla-central to mozilla-inbound on a CLOSED TREE 2015-07-31 13:50:49 +02:00
Carsten "Tomcat" Book
5dc9daea7c merge mozilla-inbound to mozilla-central a=merge 2015-07-31 12:06:51 +02:00
Andrew Comminos
d15ad31c48 Bug 1187237 - Correct range slider drawing on GTK3. r=karlt 2015-07-30 11:29:00 +02:00
Nick Robson
0ce13e9fc1 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
Sebastian Kaspari
686a916037 Bug 1187260 - Simplify RestrictedProfiles class. r=ally
This patch transforms RestrictedProfiles to delegate isAllowed() and
canLoadUrl() calls to an object implementing the RestrictionConfiguration
interface.

DefaultConfiguration, GuestProfileConfiguration and
RestrictedProfileConfiguration are implementing RestrictionConfiguration
and will take care of handling the restrictions for the different types
of profiles.
2015-07-24 19:47:31 +02:00
Mike Conley
b3a66c0d44 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.
2015-07-27 17:11:46 -04:00
Matt Woodrow
ff3e71c061 Bug 1150944 - Add a flags parameter to GLContextProvider functions instead of a bool. r=jgilbert 2015-07-29 16:35:55 -04:00
Steven Michaud
0af9ff9bc3 Bug 1188425 - Add a pref to allow insecure text input, thereby avoiding crashes at [ChildView keyDown:] in non-release builds. r=spohl 2015-07-29 16:31:14 -05:00
Wes Kocher
d73df9eb52 Backed out 6 changesets (bug 1150944, bug 1034370) for build failures in WebGLContext.cpp CLOSED TREE
Backed out changeset e2a6160242e5 (bug 1150944)
Backed out changeset 1c510537d20b (bug 1150944)
Backed out changeset 7ae813666ed5 (bug 1150944)
Backed out changeset 2f29ac2e31cd (bug 1150944)
Backed out changeset bf7681b1567e (bug 1150944)
Backed out changeset 79c6b8d014d2 (bug 1034370)
2015-07-29 14:16:17 -07:00
Matt Woodrow
a355c051e4 Bug 1150944 - Add a flags parameter to GLContextProvider functions instead of a bool. r=jgilbert 2015-07-29 16:35:55 -04:00
Jim Chen
254ad9bb7a Bug 1186517 - Generate JNI bindings for Bundle; r=snorp
Add Bundle to the list of SDK classes to generate JNI bindings for. The
generated bindings, like other SDK classes, use XPCOM-style nsresult
to indicate success/failure, and return values through out-parameters.
2015-07-29 15:11:15 -04:00
Jim Chen
d4cfdd4ca4 Bug 1186517 - Adjust white spacing in generated files; r=me 2015-07-29 15:11:15 -04:00
Jim Chen
31900f731d Bug 1186530 - Fix compile error when using native methods with ref parameters; r=snorp
We use Ref::From() inside TypeAdapter<Ref>::ToNative to convert a raw JNI
ref argument to a Ref argument for the C++ function. However, that
generates a compile error, unless we make TypeAdapter<Ref> a friend of
Ref, because we intentionally made Ref's copy constructor private and
returning from TypeAdapter<Ref>::ToNative requires the copy constructor.
2015-07-29 15:11:15 -04:00
Jim Chen
fa23b86d99 Bug 1186530 - Add support for instance native pointers; r=snorp
Introduce a JNIObject class that serves as a base class for classes
that wish to use per-instance native methods. JNIObject includes a long
native pointer field that the C++ code accesses to associate the Java
object instance with a C++ object instance.
2015-07-29 15:11:15 -04:00
Jim Chen
e50c3c9536 Bug 1182641 - Implement new native methods for ANRReporter; r=snorp 2015-07-29 15:11:15 -04:00
Jim Chen
a01650d99f Bug 1182641 - Update autogenerated code; r=me 2015-07-29 15:11:15 -04:00
Lee Salzman
b14ec2fed8 Bug 1188462 - Rename gfx/skia/trunk directory to gfx/skia/skia. r=jrmuizel 2015-07-30 11:51:29 -04:00
Milan Sreckovic
d49c6f9f83 Bug 1183725 - Update the Windows 10 constant from the original 0x60004 to the current 0xA0000. r=bas 2015-07-29 13:02:00 -04:00
Sotaro Ikeda
60075dcb8e Bug 1188877 - Fix LayerComposite::SetClearRect() calling r=mwu 2015-07-30 11:50:16 -07:00
Byron Campen [:bwc]
5f772f1635 Bug 1188590: Don't sync dispatch if we're already on main. r=snorp, a=abillings 2015-07-28 16:56:34 -05:00
Bobby Holley
106e778c81 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Steven Michaud
be3fede0ce Bug 1186158 - Receive notifications of sandbox violations in the browser on OS X. r=spohl 2015-07-28 15:19:55 -05:00
Andrew Comminos
6ccb614b9f Bug 1188138 - Prevent default buttons from being drawn twice on GTK3. r=karlt 2015-07-27 15:08:00 -04:00
Andrew Comminos
b0e51f36f7 Bug 1186661 - Draw drag and drop alpha pixmap correctly on GTK3. r=karlt 2015-07-28 07:13:00 -04:00
Andrew Comminos
a057485889 Bug 1186661 - Use monitors-changed signal to update screen manager on GTK. r=karlt 2015-07-25 19:07:00 -04:00
Andrew Comminos
e1207ceb02 Bug 1187649 - Free constructed widget path in nsLookAndFeel on GTK. r=karlt 2015-07-28 06:28:00 -04:00
Carsten "Tomcat" Book
31657c0e57 Backed out changeset ac04ab483fba (bug 1187649) for bustage on a CLOSED TREE 2015-07-28 13:05:48 +02:00
Andrew Comminos
62839f34fc Bug 1187649 - Free constructed widget path in nsLookAndFeel on GTK. r=karlt 2015-07-27 11:21:00 +02:00
David Anderson
f3cdafd4b3 Add a "blacklisted" property to d3d11 telemetry. (bug 1187453, r=mattwoodrow) 2015-07-28 00:54:33 -07:00
Mike Hommey
46df179a4f 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
Ryan VanderMeulen
03436682af Backed out changeset 4fd14cf6b415 (bug 1186158) for OSX Werror bustage. 2015-07-27 15:21:52 -04:00
Steven Michaud
268ee8b698 Bug 1186158 - Receive notifications of sandbox violations in the browser on OS X. r=spohl 2015-07-27 13:56:08 -05:00
Sotaro Ikeda
2ab0a4f740 Bug 1187503 - use external surface size on CompositorOGL r=nical 2015-07-27 09:41:13 -07:00
Ryan VanderMeulen
326be0b0e2 Merge m-c to inbound. a=merge 2015-07-27 10:41:37 -04:00
Ryan VanderMeulen
aaaf344ec6 Merge fx-team to m-c. a=merge 2015-07-27 10:39:37 -04:00
Mike Conley
6209cc32af Bug 1181630 - Do not fail out if there are no registered printers when printing with e10s on OS X. r=mstange.
We were being overly cautious, and returning NS_ERROR_FAILURE if the printer name passed
up from the content process didn't map to an existing system printer.

The problem with that is that sometimes there are no registered printers. In that case,
we just need to not set the printer in the NSPrintInfo.

So in the event that we cannot find a printer with the name that the child sent up, we
just leave the printer and printer name fields on the NSPrintInfo blank.
2015-07-22 14:21:39 -04:00
Wes Kocher
9f5fea3df8 Merge m-c to fx-team, a=merge 2015-07-24 13:48:31 -07:00
Qiang Lu
bd33cc02a5 Bug 1178069 - Check devices capability before enable use of vp8 hardware acceleration using android.media.MediaCodecList and android.media.MediaCodecInfo r=jrmuizel 2015-07-24 12:45:55 -07:00
Masayuki Nakano
4a9562f506 Bug 1186014 Rename nsTextStore to mozilla::widget::TSFTextStore r=jimm+m_kato 2015-07-24 14:07:39 +09:00
Xidorn Quan
7928d7e98f Bug 1160014 part 6 - Implement fullscreen transition for GTK. r=roc 2015-07-24 09:45:00 +10:00
Xidorn Quan
10390bfab6 Bug 1160014 part 5 - Implement fullscreen transition on Mac. r=smichaud 2015-07-24 09:45:00 +10:00
Mike Hommey
6bc3f407c4 Bug 1063359 - Unconditionally use -Wl,--no-as-needed when building with GNU ld/gold. r=mshal 2015-07-24 06:49:49 +09:00
Jim Mathies
4bb0681c90 Bug 1186886 - Reset the command button clear region when command buttons are not visible. r=jaws 2015-07-23 15:40:03 -05:00
Jeff Muizelaar
9b95b86e14 Bug 1183341. Reenable ANGLE w/ D3D11 on newer Intel GPUs. r=bas
Our device family for GMA4500 included more than just GMA4500 devices. Lets
remove the blacklist entry that was added unintentionally.  HG: Enter commit
message.  Lines beginning with 'HG:' are removed.
2015-07-22 10:32:29 -04:00
Masayuki Nakano
39d98a22b7 Bug 1186015 part.2 Rename nsIMM32Handler to mozilla::widget::IMMHandler r=jimm+m_kato 2015-07-23 12:31:28 +09:00
Masayuki Nakano
646a0d5e44 Bug 1186015 part.1 Rename nsIMEContext to mozilla::widget::IMEContext r=jimm 2015-07-23 12:31:28 +09:00
Mike Conley
9374a74e64 Bug 1180878 - Do not re-escape NSPrintJobSavingURLs when deserializing in the content process. r=mstange
We assume that when an NSURL has been serialized to PrintData, that it has already
been percent encoded. This means that we don't need to re-percent encode it when
we deserialize.
2015-07-22 13:40:28 -04:00
Lee Salzman
da1a635cba Bug 1184009 - Limit image preview sizes. r=acomminos 2015-07-21 13:16:44 -04:00
David Major
bf4f0f0f1f Bug 1159604: Use a fallible allocation in nsClipboard::GetGlobalData. r=bbondy 2015-07-22 10:31:17 -04:00
Xidorn Quan
754356b222 Bug 1186384 - Consider device pixel scale on fullscreen transition window. r=jimm 2015-07-22 23:02:22 +10:00
Masayuki Nakano
7155d8167a Bug 1185316 TabParent should flush pending IME notifications after child process handles all sending events r=smaug 2015-07-22 14:51:36 +09:00
Masayuki Nakano
3c3b507f8d Bug 1184986 NOTIFY_IME_OF_POSITION_CHANGE should be put off until all sending events are recieved by child process r=smaug 2015-07-22 14:15:06 +09:00
Masayuki Nakano
0e680d31f0 Bug 1184449 part.3 Fix the bustage of Mac OS X r=myself 2015-07-22 13:28:23 +09:00
Masayuki Nakano
3eb9ddcc00 Bug 1184449 part.2 nsIMM32Handler should store selection range as far as possible r=m_kato 2015-07-22 12:40:32 +09:00
Masayuki Nakano
e7ef1f7da9 Bug 1184449 part.1 IMENotifiation::SelectionChangeData should store selected string r=smaug 2015-07-22 12:40:32 +09:00
Jeff Muizelaar
50e11c0b68 Bug 1180379. Split out GMAX4500 and block those devices from D2D. r=Bas
This line of cards seems to have lots of bugs. Let's block them
until we can figure out what works where.
2015-07-21 18:04:48 -04:00
George Wright
86ff843ebf Bug 1157941 - If the current PresShell is suppressed, paint the old one if it is available r=tn,Enn 2015-07-21 21:09:02 -04:00
Wes Kocher
11edeef9d4 Backed out changeset b3d392163411 (bug 1160014) (Linux part), too CLOSED TREE 2015-07-21 16:54:09 -07:00
Wes Kocher
4396b41d15 Backed out changeset 039f3d0c6e62 (bug 1160014) (Mac part) for build failures CLOSED TREE 2015-07-21 16:23:56 -07:00
Wes Kocher
cef2b6dc84 Merge m-c to inbound, a=merge 2015-07-21 16:11:44 -07:00
Wes Kocher
6fcbd64260 Merge fx-team to central, a=merge 2015-07-21 16:08:37 -07:00
Xidorn Quan
03fed9b502 Bug 1160014 part 6 - Implement fullscreen transition for GTK. r=roc 2015-07-22 09:07:46 +10:00
Xidorn Quan
157cbd0449 Bug 1160014 part 5 - Implement fullscreen transition on Mac. r=smichaud 2015-07-22 09:07:46 +10:00
Justin Dolske
98169c9ab0 Bug 1184942 - Use DPI scaling factor to ensure top window border is correct thickness. r=jimm 2015-07-21 11:24:16 -07:00
Jonathan Watt
f00462fa35 Bug 1164310, part 4 - Implement the new HTMLInputElement API including the new Promise returning GetFilesAndDirectories. r=baku 2015-07-10 18:55:52 +01:00
Birunthan Mohanathas
9948903bb5 Bug 1185589 - Fix unintentional assignment in PuppetWidget::ExecuteNativeKeyBinding. r=masayuki 2015-07-21 10:21:05 -07:00
Makoto Kato
b7cdd49866 Bug 1167105 - Part 2. Improve OnSelectionChange implementation. r=masayuki 2015-07-21 21:47:54 +09:00
Makoto Kato
c28f70d6e6 Bug 1167105 - Part 1. Set temporary range until OnSelectionChange is called. r=masayuki 2015-07-21 21:47:32 +09:00
David Anderson
dc0138c34a Add compositor, layers, and rendering info to nsIGfxInfo. (bug 1179051 part 5, r=mattwoodrow) 2015-07-19 14:50:35 -07:00
Ryan VanderMeulen
7a0228a1fa Backed out changesets 90446493d402 and c4f4027f9f3a (bug 1179051) for crashes. 2015-07-19 22:39:20 -04:00
David Anderson
e4541b0cb2 Add compositor, layers, and rendering info to nsIGfxInfo. (bug 1179051 part 5, r=mattwoodrow) 2015-07-19 14:50:35 -07:00
Nicolas Silva
68d97a7143 Bug 1180688 - Reset the appropriate widget states if creating a compositor fails. r=mstange 2015-07-19 21:50:17 +02:00
Ryan VanderMeulen
078d2ab402 Merge inbound to m-c. a=merge 2015-07-17 10:26:22 -04:00
Masayuki Nakano
b55ac6a6cf Bug 1184004 part.3 IPC methods to notify IME should use IMENotification for its argument r=smaug 2015-07-17 13:30:01 +09:00
Masayuki Nakano
99ad6e7a9d Bug 1184004 part.2 Make all structs in IMENotification IPC-aware r=smaug 2015-07-17 13:30:01 +09:00
Masayuki Nakano
dc9a7deb5d Bug 1184004 part.1 Give a name to each struct in IMENotification r=smaug 2015-07-17 13:30:01 +09:00
Masayuki Nakano
3cab9a2283 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
Masayuki Nakano
c7b7c3a5dd Bug 1176955 part.3 nsTextStore shouldn't notify TSF of selection change which is caused by selection set event r=m_kato 2015-07-17 11:25:00 +09:00
Masayuki Nakano
7a1e674a5f Bug 1176955 part.2 NOTIFY_IME_OF_SELECTION should have a flag which indicates if it's caused by a selection event r=smaug 2015-07-17 11:25:00 +09:00
Ryan VanderMeulen
4f75be6ece Merge m-c to fx-team. a=merge 2015-07-16 16:23:27 -04:00
Xidorn Quan
8c2590c08d Bug 1183651 - Avoid operating refcount of fullscreen task runnable inside the transition thread. r=jimm 2015-07-16 09:54:19 +10:00
Ryan VanderMeulen
73a017a6b9 Merge b2g-inbound to m-c. a=merge 2015-07-15 13:25:56 -04:00
Ryan VanderMeulen
c85c2ca90f Merge inbound to m-c. a=merge 2015-07-15 13:19:59 -04:00
Ryan VanderMeulen
78869521d1 Backed out changeset f612649fdbaf (bug 1174461) for causing bug bug 1182919. a=topcrash 2015-07-15 12:44:01 -04:00
Kan-Ru Chen
f5063cfb8c Bug 1181518 - Change the reason for memory-pressure fired during priority change. r=gsvelto 2015-07-15 17:07:39 +08:00
Alex Henrie
1b3c03eeb2 Bug 941858 - Do not scale down elements passed to setDragImage. r=roc 2015-07-11 10:15:19 -06:00
Andrew Comminos
e575689707 Bug 1178799 - Filter X11 SelectionRequest events with an invalid requestor on GTK3. r=karlt 2015-07-13 08:58:00 -04:00
Jeff Muizelaar
9214c5266a Bug 1178426. Add GfxInfo to ServicesList.h. r=nfroyd 2015-07-08 16:51:09 -04:00
David Anderson
a95f1bd843 Move compositor backend decisions into gfxPlatform. (bug 1179051 part 3, r=mattwoodrow) 2015-07-16 15:18:05 -07:00
Gijs Kruitbosch
b43395bdfe Bug 1173725 - part 1: force top border to be visible on windows 10 and don't cut out caption buttons, r=jimm 2015-07-10 12:07:03 +01:00
Botond Ballo
1108f5b6cd Bug 1181832 - Keep gfxPrefs.h out of header files. r=kats 2015-07-13 11:53:10 -04:00
Dylan Roeh
e20a0e2c74 Bug 1172567 - Use GetLongField rather than GetIntField for jEGLSurfacePointerField when the API version is >= 20. r=snorp 2015-07-10 10:11:20 -05:00
Andrew Comminos
c127e9d189 Bug 1179780 - Render opaque scrollbar troughs in the root viewport on GTK3. r=karlt 2015-07-14 07:35:00 -04:00
Karl Tomlinson
488294bf2d bug 1182972 no need to pass member variable bounds to NativeResize r=acomminos 2015-07-14 15:24:56 +12:00
Karl Tomlinson
0ca9d57818 bug 1182972 remove mNeedsMove/mNeedsResize logic; instead process changes immediately r=acomminos 2015-07-14 15:23:47 +12:00
Karl Tomlinson
e6cc24847c bug 1182972 create NativeMove helper method r=acomminos 2015-07-13 14:29:05 +12:00
Karl Tomlinson
2446f126fe bug 1182972 remove unused aRepaint parameter from NativeResize methods r=acomminos 2015-07-13 13:57:23 +12:00
Makoto Kato
11dac79045 Bug 1181000 - Use logical pixel to set IME candidate window. r=karlt 2015-07-27 14:37:02 +09:00
Masayuki Nakano
bd947fb099 Bug 1186017 part.2 Rename GetBoolName() in IMContextWrapper.cpp to ToChar() r=kerlt 2015-07-27 08:23:04 +09:00
Masayuki Nakano
4632f0b838 Bug 1186017 part.1 Rename nsGtkIMModule to mozilla::widget::IMContextWrapper r=m_kato+kerlt 2015-07-27 08:23:04 +09:00
Masayuki Nakano
19d7b540c0 Bug 1187367 TSFTextStore shouldn't destroy native caret for ATOK until notifying TSF of layout change r=emk 2015-07-26 12:29:47 +09:00
Masayuki Nakano
66f7f07f47 Bug 1187351 TSFTextStore should forget modified range at notifying TSF of layout change since GetTextExt() shouldn't return TS_E_NOLAYOUT after that r=emk 2015-07-26 12:29:47 +09:00
Masayuki Nakano
d57d2e4aba Bug 1184533 Rewrite range check in aOffset of nsIMM32Handler::GetCharacterRectOfSelectedTextAt() r=emk 2015-07-26 12:29:47 +09:00
Eric Rahm
3507e2aa10 Bug 1183828 - Remove 'nsWindow::GetNativeData not implemented for this type' warning. r=roc 2015-07-25 10:43:27 -07:00
Sotaro Ikeda
64eaf50f20 Bug 1187345 - Fix HwcComposer2D::mCompositorParent handling r=mwu 2015-07-24 11:28:28 -07:00
Sotaro Ikeda
a024b5aa03 Bug 1187048 - Code clean up around nsScreenGonk's EGLSurface handling r=mwu 2015-07-24 10:56:05 -07:00
Andrew Comminos
a7dfdde26e Bug 1182972 - Fallback to GTK monitor scale factor when mGdkWindow is null. r=karlt 2015-07-15 20:26:00 -04:00
Andrew Comminos
d585ea1094 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
Milan Sreckovic
a2b58b20d1 Bug 1183725 - Windows 10 not recognized in downloadable blocklist. r=bas 2015-07-14 13:22:13 -04:00
Birunthan Mohanathas
e52329c788 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
Nicolas Silva
e6a5a9b15d Bug 1180688 - Detect whether the widget will be able to present frames with BasicCompositor on Mac. r=mstange 2015-07-13 16:46:48 +02:00
Nicolas Silva
37143d9703 Bug 1180688 - Backout previous fix to try another solution. r=me 2015-07-13 16:46:44 +02:00
Michael Layzell
c1d10743ff Bug 1180993 - Part 3: Correct use sites of functions which return already_AddRefed. r=ehsan 2015-07-10 08:36:00 -04:00
Robert O'Callahan
c25172739f Bug 1167786. Restrict bounds of drawn region to the nsShmImage bounds to avoid X errors. r=karlt 2015-07-14 00:03:44 +12:00
Xidorn Quan
b9dc3a93cd Bug 1160014 part 4 - Implement fullscreen transition on Windows. r=jimm 2015-07-13 20:44:36 +10:00
Xidorn Quan
74fed6862f Bug 1160014 part 3 - Backout code from bug 634586. r=jimm
The code was for improving fullscreen transition. However, it doesn't seem to
be an improvment anymore. Instead, it causes various bugs like bug 649067,
bug 646374, bug 1053783. Also see bug 634586 comment 33 which shows that this
code causes performance issue on slow machine. According to my test, removing
this code could improve the speed switching to fullscreen from normal mode.
2015-07-13 20:44:36 +10:00
Xidorn Quan
2e8981657b Bug 1160014 part 2 - Move some procedures in nsBaseWidget::MakeFullScreen to individual methods. r=roc
The two new methods will be reused by code in later patches.
2015-07-13 20:44:36 +10:00
Xidorn Quan
50ab569356 Bug 1160014 part 1 - Implement common part of fullscreen transition. r=roc,smaug,dao
This patch implements the code which is shared by all platforms for
fullscreen transition.

It adds two prefs for the duration of fullscreen transition. They can
also be used to completely suppress the transition.

In addition, this patch uses the newly added prefs to suppress the
transition in all tests which use the DOM fullscreen.
2015-07-13 20:44:36 +10:00
Xidorn Quan
8808558a82 Bug 1160014 part 0 - Avoid explicitly mentioning DOM Fullscreen concept in widget part. r=roc 2015-07-13 20:44:36 +10:00
David Anderson
e82c953579 Add nsIGfxInfo::ListMonitors support for OS X. (bug 1175005 part 3, r=mstange) 2015-07-13 01:12:44 -07:00
David Anderson
0787d4498b Add nsIGfxInfo::GetMonitor support for Windows. (bug 1175005 part 2, r=jimm) 2015-07-13 01:12:41 -07:00
David Anderson
084c6f1403 Add an nsIGfxInfo function to query monitors. (bug 1175005 part 1, r=mattwoodrow) 2015-07-13 01:12:26 -07:00
Masayuki Nakano
775ebdac76 Bug 1176950 nsTextStore should keep storing locked content until NOTIFY_IME_OF_COMPOSITION_UPDATE is notified r=emk 2015-07-12 18:56:23 +09:00
Jim Chen
ccc2e2847f Bug 1178850 - Update generated files; r=me 2015-07-10 23:41:36 -04:00
Jim Chen
2d74858505 Bug 1178850 - Add supporting classes for native JNI calls; r=snorp 2015-07-10 23:41:36 -04:00
Jim Chen
5afbfdc70f Bug 1178850 - Make mozilla::jni::Param more intuitive to use; r=snorp 2015-07-10 23:41:35 -04:00
Alex Henrie
e3e72c4a57 Bug 1181897 - Do not scale down <img> elements passed to setDragImage. r=roc 2015-07-09 23:16:01 -06:00
Nigel Babu
6c7a32fd6c Backed out 4 changesets (bug 1160014) for M2 bustages CLOSED TREE
Backed out changeset 87b00a9dac95 (bug 1160014)
Backed out changeset d4fa5c794e08 (bug 1160014)
Backed out changeset fca26897d534 (bug 1160014)
Backed out changeset b0b7f4f09ed2 (bug 1160014)
2015-07-11 10:49:25 +05:30
Mike Conley
700c034d2c Bug 1158798 - Properly initialize the LookAndFeel cache in the child. r=mstange.
The old code was just flat-out wrong. The IPDL for getting the LookAndFeel
cache from the parent during child process initialization was passing an
array it wanted to be populated as an argument, rather than using a return
value.
2015-07-10 17:11:59 -04:00
Masayuki Nakano
21b84a5198 Bug 1176954 part.8 ContentCacheInParent::OnEventNeedingAckReceived() should log the event message r=smaug 2015-07-11 10:53:56 +09:00
Masayuki Nakano
f63fe84824 Bug 1176954 part.7 IMENotification::TextChangeData should have a method to merge with another instance and IMENotification::MergeWith() should use it r=smaug 2015-07-11 10:53:56 +09:00
Masayuki Nakano
2d7ddd1c22 Bug 1176954 part.6 IMEContentObserver should use IMENotification::TextChangeData r=smaug 2015-07-11 10:53:56 +09:00
Masayuki Nakano
50df90ab99 Bug 1176954 part.5 IMENotification::TextChangeDataBase should have a state which indicates that it's not initialized r=smaug 2015-07-11 10:53:55 +09:00
Masayuki Nakano
350cec058b Bug 1176954 part.4 Define IMENotification::TextChangeDataBase and whose member names should be same as IMEContentObserver::TextChangeData's r=smaug 2015-07-11 10:53:55 +09:00
Masayuki Nakano
db82a01967 Bug 1176954 part.3 Don't send selection change, text change nor composition update notification to IME from TabParent until all events sent to the child process is received by it r=smaug 2015-07-11 10:53:55 +09:00
Masayuki Nakano
0f6acb8281 Bug 1176954 part.2 ContentCache in parent process should manage how many events are sent but not yet received r=smaug 2015-07-11 10:53:55 +09:00
Xidorn Quan
e0404d2093 Bug 1160014 part 4 - Implement fullscreen transition on Windows. r=jimm 2015-07-11 10:08:59 +10:00
Xidorn Quan
bd2a74a405 Bug 1160014 part 3 - Backout code from bug 634586. r=jimm
The code was for improving fullscreen transition. However, it doesn't seem to
be an improvment anymore. Instead, it causes various bugs like bug 649067,
bug 646374, bug 1053783. Also see bug 634586 comment 33 which shows that this
code causes performance issue on slow machine. According to my test, removing
this code could improve the speed switching to fullscreen from normal mode.
2015-07-11 10:08:59 +10:00
Xidorn Quan
ca6c7c1ec6 Bug 1160014 part 2 - Move some procedures in nsBaseWidget::MakeFullScreen to individual methods. r=roc
The two new methods will be reused by code in later patches.
2015-07-11 10:08:59 +10:00
Xidorn Quan
523cefc73c Bug 1160014 part 1 - Implement common part of fullscreen transition. r=roc,smaug,dao
This patch implements the code which is shared by all platforms for
fullscreen transition.

It adds two prefs for the duration of fullscreen transition. They can
also be used to completely suppress the transition.

In addition, this patch uses the newly added prefs to suppress the
transition in all tests which use the DOM fullscreen.
2015-07-11 10:08:59 +10:00
Wes Kocher
5c2976c995 Backed out 5 changesets (bug 1178850) for android build bustage CLOSED TREE
Backed out changeset 79085d3894e8 (bug 1178850)
Backed out changeset c02b603104ea (bug 1178850)
Backed out changeset d6dab7810669 (bug 1178850)
Backed out changeset 8ee5809f349b (bug 1178850)
Backed out changeset 821b22ce79e1 (bug 1178850)
2015-07-10 14:17:53 -07:00
Jim Chen
6ec1f63a4a Bug 1178850 - Update generated files; r=me 2015-07-10 16:52:52 -04:00
Jim Chen
000127be9d Bug 1178850 - Add supporting classes for native JNI calls; r=snorp 2015-07-10 16:52:52 -04:00
Jim Chen
618b97e23a Bug 1178850 - Make mozilla::jni::Param more intuitive to use; r=snorp 2015-07-10 16:52:51 -04:00
Geoff Brown
495b7cbfe1 Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin 2015-07-10 14:41:59 -06:00
Carsten "Tomcat" Book
b0931deb0b Backed out changeset a02884944d45 (bug 1175005) for bustage on a CLOSED TREE 2015-07-10 08:40:38 +02:00
Carsten "Tomcat" Book
e1b9d75166 Backed out changeset 9fac75be77b7 (bug 1175005) 2015-07-10 08:39:38 +02:00
Carsten "Tomcat" Book
e71344c7e0 Backed out changeset 83b04f47bdaf (bug 1175005) 2015-07-10 08:39:33 +02:00
David Anderson
bfd6082a4a Add nsIGfxInfo::GetMonitor support for Windows. (bug 1175005 part 2, r=jimm) 2015-06-17 23:12:00 -07:00
David Anderson
aa99dd6a31 Add nsIGfxInfo::ListMonitors support for OS X. (bug 1175005 part 3, r=mstange) 2015-06-17 23:12:06 -07:00
David Anderson
5ebb5ec1c3 Add an nsIGfxInfo function to query monitors. (bug 1175005 part 1, r=mattwoodrow) 2015-06-17 23:11:55 -07:00
Jim Mathies
c3e0172203 Bug 1174461 - Cache NS_NATIVE_PLUGIN_PORT on the content side since it never changes. r=aklotz 2015-07-09 19:07:48 -05:00
Xidorn Quan
1d241c7f38 Bug 1181912 - Remove the usage of nsString for window class names. r=jimm
This patch causes change to pref ui.window_class_override not take
effect until next boot of the application.
2015-07-10 10:15:48 +10:00
Josh Aas
719bb92540 Bug 1180564: Pref off NSTextInput protocol methods in anticipation of removing them. Also re-organize them so they're all in one spot and fix an unrelated warning. r=masayuki 2015-07-09 10:11:22 -05:00
Andrew Comminos
e7096545de Bug 1174248 - Workaround unico theme engine resizer bug on GTK3. r=karlt 2015-07-08 08:40:00 -04:00
Joel Maher
a6e162011f bug 1175005: performance regression. backout_2dba54b89ec8 2015-07-09 11:50:02 +01:00
Joel Maher
ccbb8c9ed6 bug 1175005: performance regression. backout_59a89d5db8f0 2015-07-09 11:48:47 +01:00
Joel Maher
1f706df26c bug 1175005: performance regression. backout_44b74f0b7e1d 2015-07-09 11:48:27 +01:00
Joel Maher
4b3190641d bug 1175005: performance regression. backout_f081c464c1e2 2015-07-09 11:48:06 +01:00
Nicolas Silva
f344efc4c7 Bug 1180688 - Disable the basic compositor backend on Mac. r=mstange 2015-07-09 12:07:51 +02:00
Masayuki Nakano
66bc91dddb Bug 1181714 nsTextStore should store previous focused document manager until new document manager actually gets focus r=m_kato 2015-07-09 17:30:07 +09:00
Makoto Kato
f1701ab7c8 Bug 1179695 - Remove mWasAsync from WidgetQueryContentEvent. r=masayuki,nchen 2015-07-09 15:09:56 +09:00
Xidorn Quan
ef224aefc6 Bug 1181395 - Avoid runtime conversion or copy of names of window classes on Windows. r=jimm 2015-07-09 08:00:33 +10:00
Markus Stange
7548504c6f Bug 1181289 - Specify size: small when drawing small scrollbars with CoreUI. r=smichaud 2015-07-07 16:06:20 -04:00
Ryan VanderMeulen
19b177c473 Backed out changeset 57f4bd1baf13 (bug 1157941) for OSX 10.10 e10s browser_bug427559.js failures.
CLOSED TREE
2015-07-07 12:01:56 -04:00
Dragana Damjanovic
c7fc0a288e Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen
31c0c961cd Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Andrew Comminos
33c7024ee2 Bug 1180971 - Fix X11 SHM invalidation regions on HiDPI with GTK3. r=karlt 2015-07-06 16:57:00 +02:00
Andrew Comminos
920c49f514 Bug 1180008 - Define gtk_window_get_window_type in mozgtk. r=karlt 2015-07-06 08:26:00 +02:00
Andrew Comminos
497d757b6b Bug 1176109 - Don't attach menu popups to menubars on GTK3. r=karlt 2015-07-06 21:55:00 +02:00
Robert O'Callahan
a40be7876e Bug 1143575. Android's screenshotting code should invalidate the LayerManagerComposite to ensure composition will actually happen. r=nical
There is some ambiguity about whether ScheduleComposite will necessarily
trigger a composite all the way to nsWindow::DrawWindowUnderlay. Android
robocop tests assume it will, because they rely on DrawWindowOverlay
being called so they can take a screenshot and make progress,
but this is a very fragile assumption. They also rely on the entire
window being painted, which is also a fragile assumption.

This patch improves the situation by explicitly invalidating the current
window area when Android Java code needs to trigger a composite. This avoids
regressions from future patches in this series which make composition bail
out when there is nothing invalid.

The resulting setup is still a bit fragile for my taste but I'm not sure
what the ideal solution would be.
2015-06-12 03:20:04 +12:00
Robert O'Callahan
e23366ece4 Bug 1143575. Avoid including Android's GraphicBuffer.h from LayersTypes.h. r=nical
On some Android versions, GraphicBuffer.h ends up including libui's
hardware.h, which #defines the symbols version_minor and version_major, which
are used as field names in Ogg Theora's th_info struct. Later patches will
require some files to include both Theora headers and LayerTypes.h.
2015-06-08 21:27:23 +12:00
Andrew Comminos
8c3674f12d Bug 983843 - Switch to GtkOffscreenWindow for drag source widget, fixing ghost tabs on some GTK versions. r=karlt 2015-06-17 12:20:00 +02:00
George Wright
468cf983e6 Bug 1157941 - If the current PresShell is suppressed, paint the old one if it is available r=tn 2015-07-02 15:42:35 -04:00
Bill McCloskey
b162c4e892 Bug 1177013 - Use CancelCurrentTransaction to avoid crashes (r=dvander) 2015-07-06 19:58:44 -07:00
James Willcox
8e6305585e Bug 1178365 - Fix DOM fullscreen support on Android r=blassey,xidorn 2015-07-06 10:21:17 -05:00
Karl Tomlinson
450b3a5b12 bug 1180008 don't measure size of decorations for override-redirect windows r=acomminos 2015-04-21 19:52:00 +12:00
Karl Tomlinson
7981f78e4c 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
2015-04-21 19:06:41 +12:00
Karl Tomlinson
5323477bd0 bug 1180008 provide gtk_window_get_window_type for old GTK versions r=glandium 2015-04-21 18:17:24 +12:00
Sotaro Ikeda
0782cc9b9f Bug 1112219 - Implement platform independent MediaResourceManager r=cpearce,bwu,nical 2015-07-05 11:56:04 -07:00
Juan Gomez
21d73728f3 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Kevin Wern
b4ac13dd45 Bug 1120683 - Properly handle unapplying 3D projective transforms throughout APZ code. r=botond
Whenever the inverse of a 3D projective transform is applied to a point, only use the result if it has a positive w-coordinate.

When transforming by a matrix that we know should be 2D, assert to that effect.

Transformations of rectangles (as opposed to points) remain to be audited.
2015-07-03 15:06:26 -04:00
Phil Ringnalda
6d43ab4967 Back out 12 changesets (bug 1177013) on suspicion of causing b2g emulator debug test bustage
CLOSED TREE

Backed out changeset 912aae0815f8 (bug 1177013)
Backed out changeset 3b6448172e50 (bug 1177013)
Backed out changeset 2af18bef5703 (bug 1177013)
Backed out changeset e6bf35115c11 (bug 1177013)
Backed out changeset 4d7f5205b60b (bug 1177013)
Backed out changeset f7de893911bc (bug 1177013)
Backed out changeset de79eba232f0 (bug 1177013)
Backed out changeset 978a77b60f2a (bug 1177013)
Backed out changeset f5b52fa19511 (bug 1177013)
Backed out changeset e14a7b70b6fa (bug 1177013)
Backed out changeset d0f5a3474659 (bug 1177013)
Backed out changeset bff9f07dad52 (bug 1177013)
2015-07-02 22:08:54 -07:00
Bill McCloskey
af77069eb7 Bug 1177013 - Use CancelCurrentTransaction to avoid crashes (r=dvander) 2015-07-02 17:18:10 -07:00
Hamzata Diallo
9a79d7372b Bug 1178513 - Export libxul symbols needed by ACL. r=mattwoodrow 2015-07-02 15:19:35 -07:00
Andrew Comminos
a81572ffad Bug 1177171 - Round widget coordinates on GTK3. r=karlt 2015-06-29 11:50:00 -04:00
Carsten "Tomcat" Book
d88eda597d Merge mozilla-central to mozilla-inbound on a CLOSED TREE 2015-07-02 15:47:27 +02:00
Carsten "Tomcat" Book
5739e50696 merge mozilla-inbound to mozilla-central a=merge 2015-07-02 15:44:14 +02:00
Nicolas Silva
208fea79bb Bug 1156182 - Ensure nsWindow::Destroy() is called before destroying mPresentLock to avoid a race with the compositor thread. r=Bas 2015-07-02 11:40:53 +02:00
Gijs Kruitbosch
0eeb2dc792 Bug 1170522 - expose whether or not we're in tablet mode to xul/js/css, r=jimm,ted 2015-06-16 19:51:29 +01:00
Nathan Froyd
46d6f38e68 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