Commit Graph

27906 Commits

Author SHA1 Message Date
Brian Birtles
46562ab4f3 Bug 1040543 part 9 - Move IsFinishedTransition from AnimationPlayer to Animation; r=bz
As the third step in dividing functionality between AnimationPlayer and
Animation this patch moves the mIsFinishedTransition member and related methods
from AnimationPlayer to Animation.

At the same time we rename SetFinishedTransition to SetIsFinishedTransition.
2014-08-10 17:06:51 +10:00
Brian Birtles
2520d366a6 Bug 1040543 part 8 - Move timing parameters from AnimationPlayer to Animation; r=bz
As the second step in dividing functionality between AnimationPlayer and
Animation, this patch moves the AnimationTiming member from AnimationPlayer to
Animation.

Most of this patch is simply moving code around. However, one significant
functional difference is that Animation::GetLocalTime() uses the mParentTime
member which is set when the Animation is updated by the player it is attached
to.

Other less significant differences are:

* AnimationPlayer::GetLocalTime is renamed to GetCurrentTimeDuration
  In Web Animations, animation players have a (writeable) "current time" and
  animations have a (read-only) "local time".
  We would call the method simply "GetCurrentTime" (instead of
  "GetCurrentTimeDuration") but GetCurrentTime is the name of the method used in
  the content-facing API where it returns a double.

* "IsCurrent" is defined on both AnimationPlayer and Animation with the version
  in AnimationPlayer serving mostly as a convenience shortcut to the version on
  Animation.

* Animation::GetComputedTiming (previously on AnimationPlayer) now makes the
  timing parameter optional since most of the time it is not needed.
2014-08-10 17:06:50 +10:00
Brian Birtles
8088c0320d Bug 1040543 part 7 - Move keyframe properties from AnimationPlayer to Animation; r=bz
As the first step in dividing the functionality currently contained in
AnimationPlayer between AnimationPlayer and Animation this patch moves the set
of keyframe properties to the Animation.

These properties are returned from the Animation by a couple of Properties()
methods that provide direct access to the member variable. In future it is
anticipated that the non-const version will be replaced with an appropriate
setter function. This will likely happen when we implement a separate
KeyframeEffect object as defined by the Web Animations API.

With regards to error checking, nsAnimationManager checks the result of
AnimationPlayer::GetSource() and handles the case where it is nullptr.
nsTransitionManager, however, simply asserts that GetSource() is never null much
like it also asserts that there is only one property with one segment in the
animation. Eventually this code should be made more generic which will probably
happen in bug 999927.
2014-08-10 17:06:49 +10:00
Brian Birtles
249039905a Bug 1040543 part 5 - Pass down time from AnimationPlayer to Animation; r=bz
This patch makes AnimationPlayers pass their current time down to the Animation
they are playing.

Since all Animations need from their players is their time, this avoids adding
a pointer back to their AnimationPlayer.
2014-08-10 17:06:48 +10:00
Brian Birtles
8f9311bf63 Bug 1040543 part 4 - Create Animation objects and set on AnimationPlayer; r=bz 2014-08-10 17:06:47 +10:00
Brian Birtles
30c27e5573 Bug 1040543 part 3 - Add Animation interface; r=bz
This patch adds the Animation interface and adds a 'source' attribute to
AnimationPlayer that refers to this class.
2014-08-10 17:06:46 +10:00
Brian Birtles
0c90999575 Bug 1040543 part 1 - Move/Rename ElementAnimations to dom::AnimationPlayer; r=bz
This patch renames mozilla::ElementAnimations to mozilla::dom::AnimationPlayer
and moves the code from layout/style/AnimationCommon.cpp to
dom/animation/AnimationPlayer.cpp.

It also moves various helper classes needed by AnimationPlayer to
AnimationPlayer.cpp and moves them from the mozilla::css namespace to the
mozilla namespace.

Beyond that, there are no functional changes contained in this patch.

The renaming of various members and variables that used to refer to
ElementAnimation objects but now refer to AnimationPlayer objects--to give them
a more appropriate name--is performed in a subsequent patch.

--HG--
rename : layout/style/AnimationCommon.cpp => dom/animation/AnimationPlayer.cpp
rename : layout/style/AnimationCommon.h => dom/animation/AnimationPlayer.h
2014-08-10 17:06:44 +10:00
Tim Taubert
0b53ce7ae8 Bug 1050318 - Split WebCrypto tests into multiple files to prevent timeouts r=rbarnes 2014-08-07 22:24:52 +02:00
Tim Taubert
340058c912 Bug 1050785 - RSA-OAEP encrypt/decrypt should accept strings as AlgorithmIdentifiers r=rbarnes 2014-08-08 16:45:08 +02:00
Ryan VanderMeulen
0e89667592 Merge inbound to m-c. a=merge 2014-08-09 11:19:46 -04:00
Sylvestre Ledru
2e0c1ce1ec Bug 1050715 - Update the description of the various tests targed proposed by './mach help' r=jmaher
--HG--
extra : rebase_source : 29019a02711ffce5c148787517051855259b6446
2014-08-09 15:37:29 +02:00
Jessica Jong
339bc7a307 Bug 1043114 - Part 4: Unify add/removeHostRoute and add/removeHostRouteWithResolve (NetworkUtils). r=edgar 2014-08-08 02:32:00 -04:00
Jessica Jong
c4f7d3bacb Bug 1043114 - Part 3.2: Remove unused NetworkParams and refine comments. r=edgar, r=smaug 2014-08-08 02:30:00 -04:00
Ryan VanderMeulen
667b0058eb Backed out changeset db69c702369d (bug 1035454) for suspicion of causing e10s leaks.
CLOSED TREE
2014-08-08 23:27:28 -04:00
Nils Ohlmeier [:drno]
dcf29e9246 Bug 1050851 - Add long running steeplechase tests from the sunny day QA lab environment. r=gmealer 2014-08-08 10:57:00 -04:00
Bob Owen
18e43ea03f Bug 1047509 - Part 3: Replace nsCxPusher in nsJSNPRuntime.cpp nsJSObjWrapper::NP_SetProperty. r=bholley 2014-08-08 13:22:53 +01:00
Bob Owen
6a7e711651 Bug 1047509 - Part 2: Replace nsCxPusher in nsJSNPRuntime.cpp nsJSObjWrapper::NP_GetProperty. r=bholley 2014-08-08 13:21:07 +01:00
Bob Owen
3e1c0c8724 Bug 1047509 - Part 1: Replace nsCxPusher in nsJSNPRuntime.cpp doInvoke. r=bholley 2014-08-08 09:01:45 +01:00
Nils Ohlmeier [:drno]
dcbd1e34b6 Bug 1049684 - Fix SDP verification to be able to run on steeplechase environment. r=bwc 2014-08-06 14:53:00 -04:00
Jessica Jong
eca0bb2087 Bug 1043114 - Part 3.1: Unify add/removeHostRoute and add/removeHostRouteWithResolve (NetworkService). r=edgar 2014-08-06 01:51:00 -04:00
Jessica Jong
0455b094b6 Bug 1043114 - Part 2: Unify add/removeHostRoute and add/removeHostRouteWithResolve (NetworkManager). r=edgar 2014-08-06 01:46:00 -04:00
Jessica Jong
350c768d4b Bug 1043114 - Part 1: Unify add/removeHostRoute and add/removeHostRouteWithResolve (idl). f=vchang, r=edgar 2014-08-06 01:45:00 -04:00
Wes Kocher
98f9eac6dd Merge m-c to inbound on a CLOSED TREE 2014-08-08 14:15:34 -07:00
Kyle Huey
04c06effe3 Bug 1050509: Shut down the KeyStore socket during system shutdown to avoid leaks. r=tdz 2014-08-08 11:11:36 -07:00
Ryan VanderMeulen
73c19b3d60 Backed out changeset 05e4c47f1e98 (bug 1036186) for Mulet mochitest bustage.
CLOSED TREE
2014-08-08 13:29:28 -04:00
Kartikaya Gupta
11a5b6139c Bug 1045824 - Use nsIntRect for passing around a value that is not in app units. r=smaug 2014-08-08 13:23:50 -04:00
Ryan VanderMeulen
62bfc4ddfb Merge b2g-inbound to m-c. a=merge 2014-08-08 11:29:48 -04:00
Gabriele Svelto
7503409646 Bug 1050067 - Correctly provide the service code when requesting an IMEI number. r=hsinyi 2014-08-07 23:01:42 +02:00
Chuck Lee
1e3d65af11 Bug 1047294 - Fix potential Javascript Error. r=vchang 2014-08-07 18:00:23 +08:00
John Lu [:mnjul]
3c89f36d03 Bug 1043828 - Switching IMEs doesn't always work after switching to 3rd-party keyboard and back. r=yxl 2014-08-07 14:44:46 +08:00
Chuck Lee
8655d63560 Bug 930355 - 0002. Implement wifi enable API. r=vchang 2014-08-07 17:19:31 +08:00
Chuck Lee
b87f8cb246 Bug 930355 - 0001. WebIDL Change - Add API to set wifi enable. r=mrbkap 2014-08-07 17:19:28 +08:00
Vicamo Yang
7a4d8e7265 Bug 1048098: remove redundant flushPermissions, flushPrefEnv from tearing down procedure. r=btian, r=echen 2014-08-08 18:28:58 +08:00
Yoshi Huang
2d0be37140 Bug 1050692 - [NFC] B2G NFC: peer.sendNDEF always return Bad Session ID. r=dimi 2014-08-08 17:22:28 +08:00
Jocelyn Liu
de0443c58f Bug 1050494: Clear sBluetoothThread in BluetoothDBusService on shutdown to fix memory leak. r=shuang 2014-08-08 16:22:32 +08:00
Thomas Zimmermann
92a362d3ac Bug 1048770: Rename |ConnectResultHandler| to |ConnectSocketResultHandler| (under bluetooth2/), r=btian
The linker mixes up |ConnectResultHandler| from BluetoothSocket.cpp
and BluetoothHfpManager.cpp. Consequently one of them gets removed
when linking libxul.so.

This patch works around the problem by renaming |ConnectResultHandler|
in BluetoothSocket.cpp to |ConnectSocketResultHandler|.
2014-08-08 09:58:18 +02:00
Thomas Zimmermann
5bcadb1e61 Bug 1048770: Fix member types of |BluetoothInterfaceRunnable{1,3}<>| (under bluetooth2/), r=btian
When sending a |BluetoothInterfaceRunnable3<>| to the main thread,
in the case of BluetoothSocketResultHandler, the connect and accept
operations transfer string objects by reference from the I/O thread.
When the reference is accessed, the actual string might be removed
already.

The patch fixes the problem by storing the strings as value in the
runnable object.
2014-08-08 09:58:17 +02:00
Thomas Zimmermann
e8b4e2e011 Bug 1050299: Wrap BlutoothInterface array initializaton in preprocessor macro, r=shuang
This patch fixes array initialization in the |Convert| functions of
|BluetoothInterface|. Designated initializers are not supported by
all compilers, so we wrap them into a macro and only used them when
possible.
2014-08-07 16:51:14 +02:00
Edgar Chen
26cd181655 Bug 1048581 - Part 2: MobileConnection shouldn't be shutdown if JS still keeps a ref to it. r=smaug 2014-08-07 12:21:29 +08:00
Paul Kerr [:pkerr]
821014490e Bug 1049583 - Allow sub-domain wildcard on ScreenSharing domain whitelist patterns. r=ethanhugg, r=mt 2014-08-07 15:12:26 -07:00
Kershaw Chang
c9371d085d Bug 1041425 - Enable fast-path dispatch when sending touch event to nested oop iframe. r=smaug 2014-08-08 00:34:00 -04:00
Nicholas Nethercote
a7cf4142b4 Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc.
* * *
imported patch rm-dummy-params

--HG--
extra : rebase_source : c25987eb11bae197218d5fc53b77def19afa36ac
2014-08-06 06:31:21 -07:00
Edgar Chen
8759e5fe89 Bug 1048581 - Part 1: Voice() and Data() won't need to check mProvider is valid or not. r=smaug 2014-08-06 15:35:34 +08:00
Ryan VanderMeulen
f286fad7b5 Merge m-c to b2g-inbound. a=merge
CLOSED TREE
2014-08-07 17:49:02 -04:00
Ryan VanderMeulen
82ac6c981d Backed out changeset 8b44017765ac (bug 1045975) for Windows non-unified bustage.
CLOSED TREE
2014-08-07 15:13:54 -04:00
Ryan VanderMeulen
e173e0484c Bug 1041369 - Bump expected assertions up to 3 max. 2014-08-07 13:13:01 -04:00
Ed Morley
26dab67a18 Merge mozilla-central and b2g-inbound 2014-08-07 14:40:54 +01:00
Ed Morley
58fedf8654 Merge latest green b2g-inbound changeset and mozilla-central; a=merge 2014-08-07 14:12:54 +01:00
Thomas Zimmermann
4fa153dcec Bug 992206: Cleanup interface of |BluetoothSocket|, r=shuang
This patch cleans up the interface of Bluedroid's |BluetoothScoket|
to look more similar the interface of |UnixSocketConsumer|, from
which it descends.
2014-08-07 11:37:50 +02:00
Thomas Zimmermann
cea72e393a Bug 992206: Use |SocketIOShutdownTask| for Bluetooth sockets, r=shuang 2014-08-07 11:37:50 +02:00
Thomas Zimmermann
9187540426 Bug 992206: Use |SocketIOSendTask| for Bluetooth sockets, r=shuang 2014-08-07 11:37:49 +02:00
Thomas Zimmermann
2088ae9735 Bug 992206: Use |SocketIOTask| for Bluetooth sockets, r=shuang 2014-08-07 11:37:49 +02:00
Thomas Zimmermann
36ac80cc0c Bug 992206: Use |SocketIOBase| for Bluetooth sockets, r=shuang 2014-08-07 11:37:49 +02:00
Thomas Zimmermann
d1a9709a19 Bug 992206: Use |SocketIODeleteInstanceRunnable| for Bluetooth sockets, r=shuang 2014-08-07 11:37:49 +02:00
Thomas Zimmermann
5a48c70476 Bug 992206: Use |SocketIORequestClosingRunnable| for Bluetooth sockets, r=shuang 2014-08-07 11:37:48 +02:00
Thomas Zimmermann
74b98b9560 Bug 992206: Use |SocketIOReceiveRunnable| for Bluetooth sockets, r=shuang 2014-08-07 11:37:48 +02:00
Thomas Zimmermann
814189c271 Bug 992206: Use |SocketIOEventRunnable| for Bluetooth sockets, r=shuang 2014-08-07 11:37:48 +02:00
Thomas Zimmermann
c0e4407084 Bug 992206: Use |SocketIORunnable| for Bluetooth sockets, r=shuang 2014-08-07 11:37:47 +02:00
Thomas Zimmermann
dfd86e68a6 Bug 992206: Use |SocketConsumerBase| for Bluetooth sockets, r=shuang 2014-08-07 11:37:47 +02:00
Thomas Zimmermann
b9008c0397 Bug 992206: Cleanup fields in |DroidSocketImpl|, r=shuang
|DroidSocketImpl| contains several unused fields that are removed
by this patch.
2014-08-07 11:37:47 +02:00
Jocelyn Liu
763f8f19a9 Bug 1047757: Call ClearOnShutdown(sBluetoothService) to fix memory leak. r=shuang 2014-08-07 14:01:24 +08:00
Nigel Babu
bf91c75128 Merge m-i to m-c 2014-08-07 08:47:18 +05:30
Wes Kocher
2c1bb01c13 Backed out 3 changesets (bug 923512) for mochitest-2 bustage on a CLOSED TREE
Backed out changeset f8720d81b74f (bug 923512)
Backed out changeset f431232084b7 (bug 923512)
Backed out changeset dff51863663c (bug 923512)
2014-08-06 16:36:35 -07:00
Wes Kocher
914924e971 Backed out changesets 950a3afc2b15 and dfb5303af6f9 (bug 1028288) for being incorrect 2014-08-06 15:43:25 -07:00
Jan de Mooij
82972d112d Bug 1041148 - Move HoldJSObjects call to XMLHttpRequest constructor to simplify the code. r=bz 2014-08-06 15:23:33 -07:00
Tim Taubert
400f767c33 Bug 1049434 - Don't allocate SECItems with new operator r=rbarnes 2014-08-06 12:15:35 +02:00
Tim Taubert
cf9076f009 Backed out changeset 5184f19384c8 (bug 1049434) 2014-08-07 09:21:13 +02:00
Tim Taubert
17d1371eb6 Bug 1049434 - Don't allocate SECItems with new operator r=rbarnes 2014-08-06 12:15:35 +02:00
Mike Hommey
89777800f9 Bug 1047267 - Move remaining OS_LIBS and EXTRA_LIBS to moz.build. r=gps
* * *
Bug 1047267 - To fold with "Move remaining OS_LIBS and EXTRA_LIBS to moz.build"
2014-08-07 14:21:03 +09:00
Krzysztof Mioduszewski
a896da3c6a Bug 1042651 - B2G NFC: getNFCPeer and getNFCTag should not throw error. r=smaug, r=allstars.chh, a=me 2014-08-05 05:06:00 -04:00
Ryan VanderMeulen
97e1aacb8a Merge m-c to b2g-inbound. 2014-08-06 15:39:23 -04:00
Ryan VanderMeulen
2a9138be4b Backed out changeset b8c53e689955 (bug 1042651) because it depends on the patch from bug 1046554 which was backed out. 2014-08-06 15:37:54 -04:00
Kartikaya Gupta
ff97ac7749 Bug 1042959 - Ensure that we always use the actual old screen size in HandlePossibleViewportChange. r=botond 2014-08-06 12:41:05 -04:00
Ed Morley
f822655e4e Backed out changeset b2ef6a444640 (bug 1046554) since the gaia part has been reverted 2014-08-06 16:58:31 +01:00
Ed Morley
3d0df09968 Merge mozilla-central and b2g-inbound 2014-08-06 13:55:47 +01:00
Ed Morley
87f4ab810e Merge latest green inbound changeset and mozilla-central; a=merge 2014-08-06 13:37:48 +01:00
Ed Morley
2b2e9195b5 Merge latest green fx-team changeset and mozilla-central; a=merge 2014-08-06 13:34:25 +01:00
Kan-Ru Chen (陳侃如)
a8fe610318 Bug 1032063 - Call update_network_state and update_network_availability when network state changes for A-GPS. r=dougt
--HG--
extra : rebase_source : 9a674017a74099f3919b27252c454e7ca777ef84
2014-08-06 14:41:56 +08:00
Krzysztof Mioduszewski
d271ad6d27 Bug 1042651 - B2G NFC: getNFCPeer and getNFCTag should not throw. r=smaug, r=allstars.chh 2014-08-06 01:17:00 -04:00
Thomas Zimmermann
d4a10240a2 Bug 1038591: Convert Bluedroid status codes and error handlers, r=shuang
This patch converts Bluedroid status codes in Gecko to the
backend-neutral data type |BluetoothStatus|. All error handlers
have been adapted. The Bluedroid type |bt_status_t| only remains
in |BluetoothInterface|.
2014-08-06 11:45:32 +02:00
Thomas Zimmermann
ee587b2e81 Bug 1038591: Convert Bluetooth AVRCP data types in |BluetoothAvrcpInterface|, r=shuang
With this patch |BluetoothAvrcpInterface| is responsible for converting all
Bluetooth data types to Bluedroid types. All callers have been adapted.
2014-08-06 11:45:22 +02:00
Thomas Zimmermann
4444130578 Bug 1038591: Convert Bluetooth A2DP data types in |BluetoothA2dpInterface|, r=shuang
With this patch |BluetoothA2dpInterface| is responsible for converting all
Bluetooth data types to Bluedroid types. All callers have been adapted.
2014-08-06 11:45:14 +02:00
Thomas Zimmermann
b7264fc980 Bug 1038591: Convert Bluetooth Handsfree data types in |BluetoothHandsfreeInterface|, r=shuang
With this patch |BluetoothHandsfreeInterface| is responsible for converting all
Bluetooth data types to Bluedroid types. All callers have been adapted.
2014-08-06 11:45:05 +02:00
Thomas Zimmermann
75d7fb0176 Bug 1038591: Convert Bluetooth Socket data types in |BluetoothSocketInterface|, r=shuang
With this patch |BluetoothSocketInterface| is responsible for converting all
Bluetooth data types to Bluedroid types. All callers have been adapted.
2014-08-06 11:44:56 +02:00
Thomas Zimmermann
b6993b6fc6 Bug 1038591: Convert Bluetooth data types in |BluetoothInterface|, r=shuang
With this patch, |BluetoothInterface| is responsible for converting
all Bluetooth data types to Bluedroid types. All callers have been
adapted.
2014-08-06 11:44:47 +02:00
Wes Kocher
0d0f9abef2 Merge m-c to inbound on a CLOSED TREE 2014-08-05 17:32:52 -07:00
Wes Kocher
2882d4f06b Merge inbound to m-c a=merge 2014-08-05 17:05:58 -07:00
Olli Pettay
87b818700b Bug 1026164, improve focus handling in shadow dom, r=wchen
--HG--
extra : rebase_source : 026b9ee49cdce82a703700593d7a1f0e5d27969f
2014-08-06 02:23:02 +03:00
Wes Kocher
659f33fb19 Merge m-c to fx-team on a CLOSED TREE 2014-08-05 17:38:06 -07:00
Ryan VanderMeulen
a2f84cef77 Backed out changeset 90c9b3d8f5bf (bug 1014023) for intermittent Windows mochitest failures.
CLOSED TREE
2014-08-05 15:33:10 -04:00
Ryan VanderMeulen
cdc1306825 Backed out 6 changesets (bug 1034855) for LSAN leaks on a CLOSED TREE.
Backed out changeset 0dc569f74991 (bug 1034855)
Backed out changeset 4eb0ee62db1e (bug 1034855)
Backed out changeset 4af8993f1534 (bug 1034855)
Backed out changeset f4f5f5b8421d (bug 1034855)
Backed out changeset 33510bb7ad60 (bug 1034855)
Backed out changeset 50b8670329aa (bug 1034855)
2014-08-05 14:04:08 -04:00
Mike Habicher
2f751308dd Bug 1037322 - change CameraConfiguration default mode to 'unspecified' r=dhylands,khuey 2014-08-05 13:20:31 -04:00
Ed Morley
93a8ff787b Merge latest green b2g-inbound changeset and mozilla-central; a=merge 2014-08-05 15:47:28 +01:00
Ed Morley
1d0a9269db Backed out changeset 9281f9896ce0 (bug 1048098) for webapi test failures 2014-08-05 12:22:00 +01:00
Jocelyn Liu
adac77c1ec Bug 1036228 - Patch3: Handle pairing requests and fire pairing events in BluetoothAdapter. r=btian, r=bz 2014-08-05 18:25:54 +08:00
Jocelyn Liu
109a2d162b Bug 1036228 - Patch2: Handle pairing requests reported by bluedroid in bluetooth services. r=btian 2014-08-05 18:25:47 +08:00
Jocelyn Liu
68c5209cb0 Bug 1036228 - Patch1: Add BluetoothPairingRequestListeningHandle.webidl and implement it. r=btian, r=bz 2014-08-05 18:25:42 +08:00
Henry Chang
9cb99bd7bd Bug 1046116 - Do not disable network on receiving 'CTRL-EVENT-ASSOC-REJECT'. r=vchang
We would disable one network after receiving 'CTRL-EVENT-ASSOC-REJECT'
a couple of times but never re-enable it again. Remove this rule until
we have a sophisticated re-enable policy.
2014-08-05 16:33:40 +08:00
Vicamo Yang
a5bcee91bf Bug 1048098: remove redundant flushPermissions, flushPrefEnv from tearing down procedure. r=btian, r=echen 2014-08-05 16:19:06 +08:00
Thomas Zimmermann
b511bfa20c Bug 1045486: Rename |ConnectResultHandler| to |ConnectSocketResultHandler|, r=shuang
The linker mixes up |ConnectResultHandler| from BluetoothSocket.cpp
and BluetoothHfpManager.cpp. Consequently one of them gets removed
when linking libxul.so.

This patch works around the problem by renaming |ConnectResultHandler|
in BluetoothSocket.cpp to |ConnectSocketResultHandler|.
2014-08-05 09:29:14 +02:00