Commit Graph

275601 Commits

Author SHA1 Message Date
Brian Birtles
c4a38c62e4 Bug 1226118 part 13 - Move the GetAnimationCollection definitions side-by-side; r=dholbert
This is to match the order in the header file and because in the next patch I'd
like to somewhat re-implement one method in terms of the other and having them
side-by-side will make it easier to read the code.

This patch makes no code changes whatsoever besides shifting the placement of
the function definitions within the .cpp file.
2015-12-04 08:34:17 +09:00
Brian Birtles
d4b16758ed Bug 1226118 part 12b - Rename CommonAnimationManager::GetAnimations to GetAnimationCollection; r=dholbert
This is to align with the existing GetAnimationCollection method that takes
a frame. Also, by making this name more specific hopefully it will be used less
since we are trying to move as much code as possible over to using EffectSet
instead of AnimationCollection.
2015-12-04 08:34:17 +09:00
Brian Birtles
28f919c1db Bug 1226118 part 12a - Make RestyleManager::GetMaxAnimationGenerationForFrame used frame-based GetAnimationCollection; r=dholbert 2015-12-04 08:34:17 +09:00
Brian Birtles
94942ad5a0 Bug 1226118 part 11 - Remove CommonAnimationManager::GetAnimationsForCompositor; r=dholbert 2015-12-04 08:34:17 +09:00
Brian Birtles
0f4369941d Bug 1226118 part 10 - Use EffectCompositor::GetAnimationsForCompositor in nsLayoutUtils; r=dholbert 2015-12-04 08:34:17 +09:00
Brian Birtles
5a49c44773 Bug 1226118 part 9 - Use EffectCompositor::GetAnimationsForCompositor in nsDisplayList; r=dholbert
The existing code contains a comment about needing to add transitions before
animations. However, this is unnecessary since the interaction between
transitions and animations is handled by the mWinsInCascade member that is
checked in AddAnimationsForProperty.
2015-12-04 08:34:17 +09:00
Brian Birtles
a42b96a2e8 Bug 1226118 part 8 - Add EffectCompositor::GetAnimationsForCompositor that uses the EffectSet rather than AnimationCollection; r=dholbert
This added method should behave in an equivalent manner to the existing
CommonAnimationManager::GetAnimationsForCompositor except for the following
differences:

* It uses the EffectSet attached to a target element rather than one of the
  AnimationCollection object on the owning element.

* It returns an array of Animation objects consisting of only those Animations
  that actually have the specified property as opposed to the
  AnimationCollection consisting of *all* CSS animations or *all* CSS
  transitions for the element regardless of whether they run on the compositor
  or not.

It may not be obvious why these two methods otherwise behave in an equivalent
fashion so the following explains how the existing code is mirrored in the new
method.

The existing code is as follows:

> AnimationCollection*
> CommonAnimationManager::GetAnimationsForCompositor(const nsIFrame* aFrame,
>                                                    nsCSSProperty aProperty)
> {
>   AnimationCollection* collection = GetAnimationCollection(aFrame);
>   if (!collection ||
>       !collection->HasCurrentAnimationOfProperty(aProperty) ||
>       !collection->CanPerformOnCompositorThread(aFrame)) {
>     return nullptr;
>   }
>
>   // This animation can be done on the compositor.
>   return collection;
> }

The new EffectCompositor::GetAnimationsForCompositor begins with two checks
performed at the beginning of CanPerformOnCompositorThread: the checks for
whether async animations are enabled or not and whether the frame has refused
async animations since these are cheap and it makes sense to check them first.

The next part of EffectCompositor::GetAnimationsForCompositor checks if there is
an EffectSet associated with the frame. This is equivalent to the check whether
|collection| is null or not above.

Following, we iterate through the effects in the EffectSet.

We first check if each effect is playing or not. In the above code,
HasCurrentAnimationOfProperty only checks if the effect is *current* or not.
However, CanPerformOnCompositorThread will only return true if it finds an
animation that can run on the compositor that is *playing*. Since playing is
a strict subset of current we only need to perform the more restrictive test.

Next we check if the effect should block running other animations on the
compositor. This is equivalent to the remainder of CanPerformOnCompositorThread.
Note that the order is important here. Only playing animations should block
other animations from running on the compositor. Furthermore, this needs to
happen before the following step since animations of property other than
|aProperty| can still block animations from running on the compositor.

Finally, we check if the effect has an animation of |aProperty|. This is
equivalent to the remainder of HasCurrentAnimationOfProperty.

If all these checks succeed, we add the effect's animation to the result to
return.
2015-12-04 08:34:12 +09:00
Brian Birtles
91cd4d763c Bug 1226118 part 7 - Rename and rework KeyframeEffectReadOnly::CanAnimatePropertyOnCompositor to ShouldBlockCompositorAnimations; r=hiro
KeyframeEffectReadOnly::CanAnimatePropertyOnCompositor has a comment that says
it, "Returns true |aProperty| can be run on compositor for |aFrame|" but it
does nothing of the sort.

What it *does* do is check answer the question, "If there happened to be an
animation of |aProperty| on |aFrame|, should we still run animations on the
compositor for this element?".

This patch renames the method accordingly and moves the step where we iterate
over a given effect's animated properties from
AnimationCollection::CanPerformOnCompositor to inside this method, making this
method a class method rather than a static method at the same time.

As noted in the expanded comment, the approach of blocking opacity animations
in these situations seems unnecessary but for now this patch just preserves the
existing behavior.
2015-12-04 08:32:53 +09:00
Brian Birtles
3a6bdc2a0f Bug 1226118 part 6 - Remove no longer used LayerAnimationRecord/Info code from AnimationCommon; r=dholbert
This code has now been moved to LayerAnimationInfo.{h,cpp} and is not used in
AnimationCommon.
2015-12-04 08:32:53 +09:00
Brian Birtles
9529226dc0 Bug 1226118 part 5 - Move LogAsyncAnimationFailure to AnimationUtils; r=dholbert
This patch also moves AnimationUtils out of the dom namespace since it seems
unnecessary. We typically only put actual DOM interfaces in the dom namespace.
2015-12-04 08:32:53 +09:00
Brian Birtles
553a38bc84 Bug 1226118 part 4 - Use EffectSet in ActiveLayerManager's animated-scale checks; r=dholbert 2015-12-04 08:32:53 +09:00
Brian Birtles
1b8a387939 Bug 1226118 part 3 - Use EffectSet in CommonAnimationManager::ClearIsRunningOnCompositor; r=hiro, r=dholbert 2015-12-04 08:32:53 +09:00
Brian Birtles
d1b3fba7c3 Bug 1226118 part 2 - Use EffectSet in nsLayoutUtils animation functions; r=dholbert 2015-12-04 08:32:52 +09:00
Brian Birtles
13c98ad403 Bug 1226118 part 1 - Add EffectSet::GetEffectSet(const nsIFrame*); r=dholbert 2015-12-04 08:32:52 +09:00
Henrik Skupin
4924b91ce1 Bug 1229908 - ScriptMixin._urlopen() has to use quoted URL to not fail if spaces are contained. r=jlund 2015-12-04 00:29:50 +01:00
Blake Kaplan
562f6c2af7 Bug 1116478 - Open web content handlers in the proper tab in e10s. r=billm 2015-12-03 15:04:28 -08:00
Chris Pearce
fd772594a7 Bug 1230026 - Add test for 'webm' initDataType for ClearKey initData. r=gerald 2015-12-04 07:24:32 +13:00
Chris Pearce
00d02d5074 Bug 1230026 - Support 'webm' initDataType format for MP4 ClearKey initData. r=gerald 2015-12-04 07:24:11 +13:00
B2G Bumper Bot
0c33b35243 Bumping manifests a=b2g-bump 2015-12-03 09:39:58 -08:00
B2G Bumper Bot
42cad2a32d Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/1a71a5a82809
Author: Fernando Jiménez Moreno <ferjmoreno@gmail.com>
Desc: Merge pull request #33498 from ferjm/bug1230142.asyncStorage.switch.accounts

Bug 1230142 - asyncStorage not defined when switching accounts. r=mic…

========

https://hg.mozilla.org/integration/gaia-central/rev/694d8bfd0e65
Author: Fernando Jiménez Moreno <ferjmoreno@gmail.com>
Desc: Bug 1230142 - asyncStorage not defined when switching accounts. r=michielbdejong
2015-12-03 09:38:34 -08:00
Gregor Wagner
92c181e810 Bug 1215494 - Don't set b2g.safe_mode pref in child process. r=fabrice 2015-12-03 18:23:22 +01:00
Fabrice Desré
3dfc2cff96 Bug 1229620 - Replace #ifdefs in b2g/ code by AppConstants r=timdream 2015-12-03 09:14:07 -08:00
B2G Bumper Bot
5a2f420901 Bumping manifests a=b2g-bump 2015-12-03 07:16:36 -08:00
B2G Bumper Bot
3bc9d7216a Bumping gaia.json for 5 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/519a0bca45fa
Author: Fernando Jiménez Moreno <ferjmoreno@gmail.com>
Desc: Revert "Bug 1224203 - Update Kinto.js to version 6ea1cf5 (1 Dec), r=ferjm"

This reverts commit 2fa6b60d2e42cf7e202497dc72882aca5d4725fa.

========

https://hg.mozilla.org/integration/gaia-central/rev/6d2bd78e65f9
Author: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Desc: Merge pull request #33468 from azasypkin/bug-1229372-update-libs

Bug 1229372 - [Messages][NG] Update tools/update_nga_libs.sh script to work with new fxos-components repository. r=julien

========

https://hg.mozilla.org/integration/gaia-central/rev/c6bec3afc105
Author: Aleh Zasypkin <azasypkin@mozilla.com>
Desc: Bug 1229372 - [Messages][NG] Update tools/update_nga_libs.sh script to work with new fxos-components repository. r=julien

========

https://hg.mozilla.org/integration/gaia-central/rev/d72a203016e8
Author: albertopq <albert.pastor@gmail.com>
Desc: Merge pull request #33460 from albertopq/1228600-migrate-sim

Bug 1228600 - Migrate SimLockSystemDialog to a WebComponent r=mhenretty

========

https://hg.mozilla.org/integration/gaia-central/rev/6ca318dd371d
Author: albertopq <albert.pastor@gmail.com>
Desc: Bug 1228600 - Migrate SimLockSystemDialog to a WebComponent r=mhenretty
2015-12-03 07:15:13 -08:00
Brian Grinstead
5c32865d4c Bug 1220011 - Yield on 'console close' command in test (fixes permafail with bug 1224294 applied); r=jwalker 2015-12-03 10:02:37 -05:00
Maja Frydrychowicz
5445d51671 Bug 1230079 - Update media-test revisions to use latest Marionette; r=me 2015-12-03 10:01:44 -05:00
Olli Pettay
dd00989648 Bug 1229760 - CustomElement registry keeps strong reference to the unresolved elements, r=wchen 2015-12-03 18:21:04 +02:00
Geoff Brown
76eb834c6c Bug 1201018 - Catch exception in PersistTabsRunnable; r=rnewman 2015-12-03 09:10:46 -07:00
B2G Bumper Bot
f572dfae60 Bumping manifests a=b2g-bump 2015-12-03 06:45:51 -08:00
B2G Bumper Bot
f036c467d1 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/df2a4e911824
Author: Francisco Jordano <arcturus@ardeenelinfierno.com>
Desc: Merge pull request #33496 from arcturus/bug-1146265

Bug 1146265 - [Aries][Nexus 5][Contacts] Creating new contact page do…

========

https://hg.mozilla.org/integration/gaia-central/rev/9cdd5bc45efc
Author: Francisco Jordano <fjordano@mozilla.com>
Desc: Bug 1146265 - [Aries][Nexus 5][Contacts] Creating new contact page does not fit the screen width. r=ferjm
2015-12-03 06:44:28 -08:00
Carsten "Tomcat" Book
3260367138 Merge mozilla-central to b2g-inbound 2015-12-03 12:11:24 +01:00
Carsten "Tomcat" Book
c29d9679a2 merge mozilla-inbound to mozilla-central a=merge 2015-12-03 12:00:42 +01:00
Carsten "Tomcat" Book
d6f020013a merge fx-team to mozilla-central a=merge 2015-12-03 11:58:40 +01:00
Carsten "Tomcat" Book
070341cd33 merge b2g-inbound to mozilla-central a=merge 2015-12-03 11:57:06 +01:00
B2G Bumper Bot
e3aec9c02a Bumping manifests a=b2g-bump 2015-12-03 02:55:10 -08:00
B2G Bumper Bot
b39950dead Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/f4183136380d
Author: Gabriele Svelto <gsvelto@mozilla.com>
Desc: Merge pull request #32561 from gabrielesvelto/bug-1199773-callscreen-lockscreen-state-fix

Bug 1199773 - Make the callscreen state coherent with the lockscreen state. r=thills

========

https://hg.mozilla.org/integration/gaia-central/rev/f73a610ef448
Author: Gabriele Svelto <gsvelto@mozilla.com>
Desc: Bug 1199773 - Make the callscreen state coherent with the lockscreen state. r=drs
2015-12-03 02:53:47 -08:00
B2G Bumper Bot
834baf269d Bumping manifests a=b2g-bump 2015-12-03 02:00:07 -08:00
B2G Bumper Bot
bf14f5a128 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/b6c6ab0cf0ca
Author: Timothy Guan-tin Chien <timdream@gmail.com>
Desc: Merge pull request #32927 from timdream/tz_select

Bug 1218677 - Don't rely on incorrect <select> behavior, r=timdream

========

https://hg.mozilla.org/integration/gaia-central/rev/7e757128c3e6
Author: Mats Palmgren <mats@mozilla.com>
Desc: Bug 1218677 - Don't rely on incorrect <select> behavior
2015-12-03 01:58:45 -08:00
B2G Bumper Bot
2476d5c708 Bumping manifests a=b2g-bump 2015-12-03 01:09:54 -08:00
B2G Bumper Bot
d01d697a4e Bumping gaia.json for 4 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/23255b236be2
Author: isabelrios <isabelrios@gmail.com>
Desc: Merge pull request #33485 from isabelrios/Duplicate_phone_number_final

Bug 1228294 - Verify that the duplicates found screen is shown

========

https://hg.mozilla.org/integration/gaia-central/rev/e7fb57c514a2
Author: Isabel Rios Escobar <irios@MacBook-Pro-de-Isabel.local>
Desc: Bug 1228294 - Verify that the duplicates found screen is shown

deleting one line

========

https://hg.mozilla.org/integration/gaia-central/rev/0476046e5aff
Author: Fernando Jiménez Moreno <ferjmoreno@gmail.com>
Desc: Merge pull request #33492 from ferjm/bug1229920.sync.production

Bug 1229920 - Sync stuck at signing in. r=fabrice

========

https://hg.mozilla.org/integration/gaia-central/rev/a9ec2e0a6090
Author: Fernando Jiménez Moreno <ferjmoreno@gmail.com>
Desc: Bug 1229920 - Sync stuck at signing in. r=fabrice
2015-12-03 01:08:32 -08:00
Botond Ballo
06a951aae6 Bug 1069417 - Fix an error introduced when rebasing across bug 1021845 to reopen a CLOSED TREE. r=bustage 2015-12-03 02:20:35 -05:00
Phil Ringnalda
7692ac9d98 Backed out 7 changesets (bug 1209967) for making Android Talos hang
CLOSED TREE

Backed out changeset e78763a5c2c3 (bug 1209967)
Backed out changeset cdd9b2d4b72a (bug 1209967)
Backed out changeset ced2c85d9f09 (bug 1209967)
Backed out changeset d458396e6f06 (bug 1209967)
Backed out changeset 5cea26659e0d (bug 1209967)
Backed out changeset 035f6f5db4fe (bug 1209967)
Backed out changeset 7942bfbde7f2 (bug 1209967)
2015-12-02 20:45:26 -08:00
Jared Wein
6bfbdd36c5 Bug 1227711 - Add a box-shadow to the XUL alerts. ui-r=shorlander r=MattN 2015-12-02 22:21:20 -05:00
Kris Maglione
22b11bf752 Bug 1190688: Part 2 - [webext] Add tests for executeScript permission checks. r=billm 2015-12-02 15:07:02 -08:00
ffxbld
f57647cb94 No bug, Automated blocklist update from host bld-linux64-spot-369 - a=blocklist-update 2015-12-02 14:59:19 -08:00
ffxbld
19d7efa772 No bug, Automated HPKP preload list update from host bld-linux64-spot-369 - a=hpkp-update 2015-12-02 14:59:16 -08:00
ffxbld
dca455f93f No bug, Automated HSTS preload list update from host bld-linux64-spot-369 - a=hsts-update 2015-12-02 14:59:14 -08:00
B2G Bumper Bot
cb08d795c6 Bumping manifests a=b2g-bump 2015-12-02 14:35:46 -08:00
B2G Bumper Bot
c3d27d43fc Bumping gaia.json for 4 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/91dde7178270
Author: punamdahiya <punamdahiya@yahoo.com>
Desc: Merge pull request #33333 from punamdahiya/Bug1219661

Bug 1219661 - [Gallery] Implement share image using select view Gij test

========

https://hg.mozilla.org/integration/gaia-central/rev/3a6268583353
Author: Punam Dahiya <punamdahiya@yahoo.com>
Desc: Bug 1219661 - [Gallery] Implement share image using select view Gij test

========

https://hg.mozilla.org/integration/gaia-central/rev/2116387c60d4
Author: Gareth Aye <gareth.aye@gmail.com>
Desc: Bump marionette-client version to 1.9.4 r=yzen

========

https://hg.mozilla.org/integration/gaia-central/rev/b767fc0a09f3
Author: Yura Zenevich <yzenevich@mozilla.com>
Desc: Revert "Merge pull request #33474 from yzen/bug-1229472"

This reverts commit 479875e59be2676899f8cfe80c7fe7f409e966b8, reversing
changes made to 9fe913fa95ce1f8f0841fc7ab8fd9fec6fa1077d.
2015-12-02 14:35:30 -08:00
B2G Bumper Bot
b08c62e6a4 Bumping manifests a=b2g-bump 2015-12-02 13:24:57 -08:00