Commit Graph

46096 Commits

Author SHA1 Message Date
Nicholas Nethercote
5721b2ad2e Bug 1232852 (part 5) - Remove some unused parameters in and around layout/base/. r=heycam.
--HG--
extra : rebase_source : 3f114d32650a260fe2eda847f24c2967a9d94185
2016-01-05 16:08:17 -08:00
Alastor Wu
2c4e6b6e51 Bug 1235535 - Part 2: Create muted-by-default test in another new file. r=baku
--HG--
extra : rebase_source : 42db964e6e8f10c41f70f4afd458c3d3fde9e575
extra : source : 76209c880c783e1206760b7f62cb5c05574bbb5b
2016-01-05 19:26:01 +08:00
Alastor Wu
b8416efbd2 Bug 1235535 - Part 1: Remove muted-by-default test. r=baku
--HG--
extra : rebase_source : 56ffe5def32ce28ff1dfd5a672902d71327ebf0d
extra : source : 0beb3e22b4b545b18cd2ce4ae77f673d229126b2
2016-01-05 19:25:55 +08:00
Honza Bambas
a0a6f7e23c Bug 1165214 - Use OriginAttributes in DOM Storage. r=smaug, r=bholley
--HG--
extra : rebase_source : b63ddb5a24a335f771a856cd20c69cdeb0c92ca0
2016-01-05 07:25:00 -05:00
Alastor Wu
7cb7d44fc1 Bug 1204793 - Testcase for checking the agent active state when changing the volume. r=baku
--HG--
extra : rebase_source : cc9c4b231b66eb51eae4556bf0738b57e5d46bfd
2015-12-25 18:47:08 +08:00
Chris Pearce
967b559ecc Bug 1233274 - Don't shutdown detached MediaKeys. r=gerald 2016-01-06 13:28:43 +13:00
peter chang
13f0aa17be Bug 1236782 - [WebGL2] pass getProgramParameter in gl-object-get-calls.html; r=jgilbert
--HG--
extra : rebase_source : ebe21e72c7eca6d022999da92054bbcfab42c817
2016-01-05 14:44:28 +08:00
Nicholas Nethercote
f447bec986 Bug 1233619 (part 2) - Moz2Dify BeginUpdate() and BeginUpdateBackground() functions. r=roc.
The only non-trivial change is in BasicPaintedLayer::Validate().

--HG--
extra : rebase_source : 7eed0e384d2d856d918ad025b09e29f796017f51
2015-12-17 19:39:10 -08:00
Nicholas Nethercote
67e5c3ea2c Bug 1233619 (part 1) - Remove unneeded gfxContext argument from EndUpdate() and EndUpdateBackground() functions. r=roc.
--HG--
extra : rebase_source : cc16e7a77d8d60706cd0406c859aece88d7b18c3
2015-12-17 19:39:09 -08:00
Brian Birtles
8bfaf66a58 Bug 1232563 part 4 - Don't perform style updates when the effect progress has not changed; r=heycam
Now that restyle requests are handled by the effect, we can more easily detect
cases where we don't need to trigger a style update by looking for when the
output of the effect could actually differ.

Currently, any changes that require updates where the progress does *not* change
(e.g. pausing) are triggered by the Animation. The exception is when we
update timing properties (e.g. animation-iteration-count) from CSS but
current nsAnimationManager takes care to adjust the animation generation in
this case.

--HG--
extra : rebase_source : ecc0b5c80e52ce17214ab8c6ac9681477e3f80ca
2016-01-06 11:04:06 +09:00
Brian Birtles
ba0280fd28 Bug 1232563 part 3 - Drop check for an empty set of properties when requesting restyles from KeyframeEffectReadOnly; r=heycam
This is because rather than simply requesting a throttled restyle when there
were no properties, as of the previous patch, we no longer request a restyle at
all in this case.

We should be able to restore this optimization in bug 1235002 when we properly
encapsulate the properties of a keyframe effect.

--HG--
extra : rebase_source : 1774698e15178cf8f8295160b96adea8ca5a2ed2
2016-01-06 11:04:06 +09:00
Brian Birtles
55c934a957 Bug 1232563 part 2 - Move RequestRestyle calls to the effect; r=heycam
--HG--
extra : rebase_source : 40d014f1ab978534a172545b33d3f9c7d1a56395
2016-01-06 11:04:06 +09:00
Brian Birtles
d0ad270eef Bug 1232563 part 1 - Request a layer update if an animation is newly finished; r=heycam
When requesting restyles we take special care to detect when an animation has
newly finished so we perform the necessary restyle to represent the fill state.
However, we should really explicitly pull the animation off the layer at this
point by requesting a layer update. (That is, when an animation is
newly-finished we should use RestyleType::Layer instead of
RestyleType::Standard. Currently we just use RestyleType::Standard.)

In this bug we plan to move restyle requests down to the effect (since it is
the *effect* that is restyled). However, only the Animation has the notion of
"finished" or not so we detect this particular case in the Animation and
request the layer update there. We already request layer updates in the
Animation for other situations such as pausing so doing *layer* updates in the
Animation and regular restyles in the effect is not inconsistent.

This patch also tweaks test_animations_omta.html since it was previously
erroneously testing that a finished animation was still running on the
compositor.

--HG--
extra : rebase_source : 3cd1abe2a10370e90cde64b4b42b27326082f6f0
2016-01-06 11:04:06 +09:00
Brian Birtles
0d628b2a55 Bug 1232561 part 4 - Add EffectCompositor::ComposeAnimationRule; r=heycam
This patch just moves a piece of functionality from
AnimationCollection::EnsureStyleRuleFor to the EffectCompositor. In subsequent
bugs we will move more and more of this functionality across until this
logic is fully contained in the EffectCompositor.

--HG--
extra : rebase_source : 7ffe91adb4ca3d57fc8f6ae3f7e5f7bec91f350b
2016-01-06 11:04:06 +09:00
Brian Birtles
f4eeb573d0 Bug 1232561 part 3 - Move AnimValuesStyleRule to a separate file; r=heycam
As we gradually move logic from layout/style/AnimationCommon.cpp to
dom/animation/EffectSet and EffectCompositor it makes sense to let this class
live in its own file inside dom/animation where it is used.

--HG--
extra : rebase_source : aed0632a19800e0ef9d8fe1d03d0364bf1ccc4dc
2016-01-06 11:04:06 +09:00
Brian Birtles
a736eafacc Bug 1232561 part 2 - Move the animation style rules from AnimationCollection to EffectSet; r=heycam
This is needed in order to support script-generated animations since they do not
belong to any AnimationCollection.

This patch adopts the naming "animation rule" over "style rule". Currently we
are inconsistent about this (e.g. GetAnimationRule vs EnsureStyleRuleFor).
We don't do a mass rename here but just a few places near where we're touching.
Many of the other references to "style rule" will be revised in this bug or
related bugs so we can fix those references when we come to them.

--HG--
extra : rebase_source : e1f824029b39960915e056328447de256b6c1c6d
2016-01-06 11:04:06 +09:00
Brian Birtles
cb3f0f2256 Bug 1232561 part 1 - Replace AppliesToTransitionsLevel() with a cascade level enumeration; r=heycam
Introducing an enum will simplify further patches in this series by providing
a common vocabulary for this distinction.

--HG--
extra : rebase_source : 4afbd358a401853df3ad401f2b1c3454ccff26cd
2016-01-06 11:04:05 +09:00
Brian Birtles
bf0b758990 Bug 1229280 - Move animation generation from AnimationCollection to EffectSet; r=dbaron
--HG--
extra : rebase_source : 26a942c8c6058e629e7d7ed549eb1fcdf7f6d399
2016-01-06 11:04:05 +09:00
Brian Birtles
bf9f389bda Bug 1228229 part 11 - Avoid calling nsRuleNode::ComputePropertiesOverridingAnimation when there are no compositor-animatable properties; r=dbaron
This restores the code removed in part 3 but adjusts it to iterate over
an effect set instead of an AnimationCollection. It also adds an early return
for the case where no compositor-animatable properties are found.

--HG--
extra : rebase_source : 5e73374c8fb7df4e946f73512337a55f5dae94f2
2016-01-06 11:04:05 +09:00
Brian Birtles
741d976ea1 Bug 1228229 part 10 - Remove no-longer-used cascade functions; r=dbaron
--HG--
extra : rebase_source : 3cdff84fefbc24796abf2d765f6f40062dd7941f
2016-01-06 11:04:05 +09:00
Brian Birtles
96f4a19af3 Bug 1228229 part 9 - Use EffectCompositor::UpdateCascadeResults; r=dbaron
--HG--
extra : rebase_source : c294befb9b57564f17c9c22d8fc0f37e7792eaed
2016-01-06 11:04:05 +09:00
Brian Birtles
f14f3a2be8 Bug 1228229 part 8 - Add EffectCompositor::(Maybe)UpdateCascadeResults; r=dbaron
--HG--
extra : rebase_source : 7f87c5a33e153e0815d39b7eb21917f3c034c0d3
2016-01-06 11:04:05 +09:00
Brian Birtles
144a09f431 Bug 1228229 part 7 - Add a method to Animation to indicate if it applies to the transitions level of the cascade; r=dbaron
For transitions, this method returns true so long as the transition is
bound to markup. This is based on the below discussion,

  https://github.com/w3c/web-animations/issues/97
  https://github.com/w3c/web-animations/issues/62#issuecomment-117357703
  https://github.com/w3c/web-animations/issues/62#issuecomment-117374689

We will likely reuse this method when we come to implement animation style rule
generation in a more generic manner.

--HG--
extra : rebase_source : fe8a3d09296d7f74cabd59c605cf568d200bb240
2016-01-06 11:04:05 +09:00
Brian Birtles
265cbb47a5 Bug 1228229 part 6 - Mark the animation cascade results as dirty when an effect goes in or out of being "in effect"; r=dbaron
This patch implements "case 2" described in the commit message from part 4 of
this patch series.

--HG--
extra : rebase_source : 805f24376fa4648f094fb04247d48d075a73400c
2016-01-06 11:04:05 +09:00
Brian Birtles
5331e1fa91 Bug 1228229 part 5 - Separate target element registration in NotifyAnimationTimingUpdated; r=dbaron
KeyframeEffectReadOnly::NotifyAnimationTimingUpdated currently just acts as an
alias for UpdateTargetRegistration. However, bug 1226118 added logic to
UpdateTargetRegistration which is not strictly related to updating the target
element registration. This patch tidies this up so that UpdateTargetRegistration
only does what its name suggests. This is in preparation for adding more
logic to NotifyAnimationTimingUpdated.

--HG--
extra : rebase_source : c6162e8415613d7ec16744228d7cf498b4c19e2c
2016-01-06 11:04:04 +09:00
Brian Birtles
c773cf7551 Bug 1228229 part 4 - Add a flag to EffectSet to mark when the cascade needs to be updated; r=dbaron
There are three situations when the cascade results of effects needs to be
updated.

1. The sets of effects (animations) has changed.

2. One or more effects have changed their "in effect" status.

3. Other style properties affecting the element have changing meaning that
   animations applied at the animations-level of the cascade may now be
   overridden or become active again.

We want to detect these situations so we can avoid updating the cascade when
none of these possibilities exist.

Currently we handle case 1 by calling UpdateCascadeResults at the appropriate
point in nsAnimationManager and nsTransitionManager when we build
animations/transtiions.

Case 2 only affects animations (since whether transitions are in effect or not
makes no difference to the cascade--they have a lower "composite order" than
animations and never overlap with each other so they can't override anything).
As a result, we handle it by adding a flag to CSSAnimation to track when an
animation was in effect last time we checked or not.

For case 3, we take care to call UpdateCascadeResults when the style context
changed in nsAnimationManager::CheckAnimationRule (called from
nsStyleSet::GetContext).

We want to generalize this detection to handle script-generated animations too.
In order to do that this patch introduces a flag to EffectSet that we will use
to mark when the cascade needs to be updated in cases 1 and 2. This patch also
sets the flag when we detect case 1. A subsequent patch sets the flag for
case 2.

Case 3 is more difficult to detect and so we simply maintain the existing
behavior of making nsAnimationManager::CheckAnimationRule unconditionally
update the cascade without checking if the "needs update" flag is set.

--HG--
extra : rebase_source : fc56b1bb5a98ae78b93a179c7a3b8af4724a06a1
2016-01-06 11:04:04 +09:00
Brian Birtles
114b1e3ebd Bug 1228229 part 3 - Factor out a method to get compositor-animatable overridden properties; r=dbaron
This patch also simplifies this logic by simply always looking for overrides of
'transform' and 'opacity'.

--HG--
extra : rebase_source : d1e432e629e2b97651f14c784f97c03f55d217be
2016-01-06 11:04:04 +09:00
Brian Birtles
5d5fb26344 Bug 1228229 part 2 - Add a helper to get the appropriate (pseudo-)element for a frame; r=dbaron
We will use similar logic later in this patch series so we separate it out into
a separate helper function here.

--HG--
extra : rebase_source : 00cb49e7829bdef7a6084059b31fe2ef4b921af5
2016-01-06 11:04:04 +09:00
Eitan Isaacson
d0d4c1ba6a Bug 1230533 - Cancel speech when controlling window goes away. r=smaug
Don't allow bfcache when there is an active or queued utterance in the window.
2016-01-05 18:01:24 -08:00
Eitan Isaacson
06174b6211 Bug 1236060 - Dispatch error should advance queue. r=smaug 2016-01-05 18:01:23 -08:00
Wes Kocher
e0dc3b7265 Merge m-c to inbound, a=merge CLOSED TREE
--HG--
extra : commitid : 4JS7aaOzaVD
extra : amend_source : 249ac0feaf4a6ea8ad5d2ef9de63d4c5baee012b
2016-01-05 16:52:09 -08:00
Wes Kocher
a8e5e6c427 Backed out 2 changesets (bug 1235535) for possibly breaking weightmapping-12579.html CLOSED TREE
Backed out changeset 76209c880c78 (bug 1235535)
Backed out changeset 0beb3e22b4b5 (bug 1235535)

--HG--
extra : commitid : 2Qv8Y33oGRU
2016-01-05 16:47:54 -08:00
Wes Kocher
5c5db39163 Merge fx-team to m-c a=merge CLOSED TREE
--HG--
extra : commitid : 8cnDWzxc5CW
2016-01-05 16:34:06 -08:00
Wes Kocher
52ed1e6ff2 Backed out changeset 3aca7055f52f (bug 1236329) because something from this push turned browser_video_test.js permafail on mulet CLOSED TREE
--HG--
extra : commitid : 2RDQomPsA9l
2016-01-05 15:14:48 -08:00
Wes Kocher
c708d0c57f Backed out changeset b7cd1bc458a3 (bug 1230172) because something from this push turned browser_video_test.js permafail on mulet CLOSED TREE
--HG--
extra : commitid : C1U7fyE3XPN
2016-01-05 15:14:44 -08:00
Wes Kocher
9b5c90690e Merge inbound to m-c a=merge
--HG--
extra : commitid : I44HufYdnXT
2016-01-05 16:02:49 -08:00
Olli Pettay
ff444b2e38 Bug 1236227, don't OOM in TextDecoder, r=baku
--HG--
extra : rebase_source : 7b22b88198289e9d6db004d4208911901a7f8287
2016-01-05 15:48:47 +02:00
Thomas Zimmermann
1025acb217 Bug 1223722: Transfer arrays of Bluetooth UUIDs in |BluetoothValue|, r=brsun
Bluetooth's UUID arrays are sorted and stripped from duplicates. This code is
now executed in the client process. This reduces the amount of privilegued
code and accounts the required computation time to the process that actually
uses it.

The change also makes the IPDL interface a bit less fragile, as the client
does not expect sorted arrays from the chrome process. It's a detail of the
client's implementation that manifested itself in the interface.
2016-01-05 12:01:33 +01:00
Thomas Zimmermann
388ee1f523 Bug 1223722: Transfer Bluetooth remote names in |BluetoothValue|, r=brsun 2016-01-05 12:01:33 +01:00
Thomas Zimmermann
30f1560836 Bug 1223722: Transfer Bluetooth addresses in |BluetoothValue|, r=brsun 2016-01-05 12:01:33 +01:00
Carsten "Tomcat" Book
d92e3c9113 Merge mozilla-central to b2g-inbound 2016-01-05 12:03:29 +01:00
Carsten "Tomcat" Book
2262c1271c merge mozilla-inbound to mozilla-central a=merge 2016-01-05 11:58:56 +01:00
Carsten "Tomcat" Book
766339cc81 merge fx-team to mozilla-central a=merge 2016-01-05 11:56:41 +01:00
Jean-Yves Avenard
ea13a5a2fb Bug 1236746: Let FFmpeg manages its own memory allocation. r=gerald
Additionally, the API to override memory allocation has been deprecated years ago and it completely removed in libavcodec 57.
2016-01-05 16:55:11 +11:00
Gabriele Svelto
7f5f74fbaf Bug 1234176 - Do not send memory pressure events to applications sent into the background. r=dhylands
--HG--
extra : rebase_source : f9eb0b76733d4f3fc663948fc46627bdba416837
2015-12-29 11:17:13 +01:00
Thomas Zimmermann
708b1d38ca Bug 1232687: Start bluetoothd with HAL service interface, r=shuang
This patch replaces Bluetooth's internal implmentation for starting
bluetoothd with the portable one provided by the HAL module. Gonk-
specific workarounds are preserved within HAL.
2016-01-04 16:08:21 +01:00
Carsten "Tomcat" Book
8f85c8232a Merge mozilla-central to b2g-inbound 2016-01-04 13:52:00 +01:00
Carsten "Tomcat" Book
7e10479400 merge mozilla-inbound to mozilla-central a=merge 2016-01-04 11:55:29 +01:00
Edgar Chen
7cf67181f5 Bug 975778 - Increase the timeout value for test_cdma_call_waiting.js; r=me
--HG--
extra : rebase_source : c502f30c26c7dfc7c6b9729da6002caf83c05aba
2015-12-31 11:47:39 +08:00
Jeff Gilbert
7a82450687 Bug 1220450 - Clear length on cache OOM. r=kamidphish
DONTBUILD a=relanding

--HG--
extra : source : 740e4ce7bb1623505a8555c9a2be80f8700e32fe
extra : amend_source : 9026a1b1416a7f46978b816f7866fa298bc85bba
2016-01-01 14:00:48 -05:00