Commit Graph

442276 Commits

Author SHA1 Message Date
Chris Pearce
dc7d7fd07d Bug 1207439 - Don't use GMPVideoDecoderTrialCreator for Primetime. r=edwin 2015-09-25 14:19:46 +12:00
Kartikaya Gupta
b6115339aa Bug 1208072 - Wait for the layer tree to get to the compositor before synthesizing wheel events or they don't have the desired effect. r=dvander
--HG--
extra : commitid : 73ZepbLOQ79
2015-09-24 22:11:31 -04:00
Nicholas Nethercote
f523d5c4ba Bug 1207931 - Remove no-longer-needed SetBackgroundColor IPC message. r=mattwoodrow. 2015-09-24 19:03:33 -07:00
B2G Bumper Bot
cb7f44af5b Bumping manifests a=b2g-bump 2015-09-24 18:48:04 -07:00
B2G Bumper Bot
806a2bebdb Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/07aa730d05a7
Author: Justin D'Arcangelo <justindarc@gmail.com>
Desc: Merge pull request #31979 from justindarc/bug1206782

Bug 1206782 - [Music][NGA] Scan progress UI needs implemented

========

https://hg.mozilla.org/integration/gaia-central/rev/971b0236d50a
Author: Justin D'Arcangelo <justindarc@gmail.com>
Desc: Bug 1206782 - [Music][NGA] Scan progress UI needs implemented
2015-09-24 18:45:14 -07:00
Nicholas Nethercote
634396125b Bug 1208283 (part 5) - Pass a gfx::Color instead of a gfxRGBA to PaintRectToSurface(). r=jwatt.
--HG--
extra : rebase_source : 6d5e72d5a5579d445a77f090b357720a71654e99
2015-09-24 18:32:40 -07:00
B2G Bumper Bot
9e41b264c2 Bumping manifests a=b2g-bump 2015-09-24 18:18:24 -07:00
Nicholas Nethercote
ff7df9ad79 Bug 1208283 (part 4) - Change FrameMetrics::mBackgroundColor from gfxRGBA to gfx::Color. r=jwatt.
This removes some ToColor() calls.

--HG--
extra : rebase_source : 05ee3e5aaa784e12c15fa42845864eacec45271f
2015-09-24 18:17:45 -07:00
Nicholas Nethercote
62d71c049e Bug 1208283 (part 3) - Remove the ToDeviceColor() that takes a gfxRGBA. r=jwatt.
--HG--
extra : rebase_source : afb31c9e9bb3367a165c079b06dc63ff9f87f468
2015-09-24 18:16:51 -07:00
Nicholas Nethercote
89189f2ced Bug 1208283 (part 2) - Change ColorLayer::mColor, ColorLayerProperties::mColor, ReadbackLayer::mBackgroundColor from gfxRBGA to gfx::Color. r=jwatt.
This avoids some gfxRGBA-to-Color conversions.

--HG--
extra : rebase_source : ba62db5204301e4ab57f05b9f9901f986f5b09aa
2015-09-24 18:16:45 -07:00
B2G Bumper Bot
5d07e191ee Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/5c01c4184313
Author: Douglas Sherk <github@sherk.me>
Desc: Merge pull request #31989 from DouglasSherk/1168633-call-log-background

Bug 1168633 - [Dialer] Add call log background image at 2.25x resolution, update other images. r=gsvelto

========

https://hg.mozilla.org/integration/gaia-central/rev/f9d72aaa549c
Author: Doug Sherk <github@sherk.me>
Desc: Bug 1168633 - [Dialer] Add call log background image at 2.25x resolution, update other images. r=gsvelto
2015-09-24 18:15:33 -07:00
B2G Bumper Bot
1c583e6e84 Bumping manifests a=b2g-bump 2015-09-24 17:54:40 -07:00
B2G Bumper Bot
df49d1b19d Bumping gaia.json for 4 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/c0c5c619dc6e
Author: Justin D'Arcangelo <justindarc@gmail.com>
Desc: Merge pull request #31949 from justindarc/bug1205019

Bug 1205019 - [Music][NGA] When search bar is shown, songs cannot be tapped

========

https://hg.mozilla.org/integration/gaia-central/rev/91f5adadc25d
Author: Justin D'Arcangelo <justindarc@gmail.com>
Desc: Bug 1205019 - [Music][NGA] When search bar is shown, songs cannot be tapped

========

https://hg.mozilla.org/integration/gaia-central/rev/3c920e18ec05
Author: Douglas Sherk <github@sherk.me>
Desc: Merge pull request #31980 from DouglasSherk/1163834-keypad-comma

Bug 1163834 - [Dialer] Add a comma to the asterisk button on the keypad. r=gsvelto

========

https://hg.mozilla.org/integration/gaia-central/rev/5bb9c785e9f8
Author: Doug Sherk <github@sherk.me>
Desc: Bug 1163834 - [Dialer] Add a comma to the asterisk button on the keypad. r=gsvelto
2015-09-24 17:51:49 -07:00
Nicholas Nethercote
25d52ffe9f Bug 1208283 (part 1) - Change gfxPattern's single-arg constructor to take a gfx::Color& instead of a gfxRGBA&. r=jwatt.
--HG--
extra : rebase_source : 09fece3af01326be1ea7a5c29d52266323f09ade
2015-09-24 17:50:46 -07:00
Jean-Yves Avenard
28995f8c35 Bug 1207441: [mp4] Ignore invalid tracks. r=gerald
This is designed to minimize the chance of regressions.
2015-09-28 14:12:47 +10:00
Chris Pearce
947b4b02c2 Bug 1208348 - Backout 9f73b03732fc 2015-09-28 17:11:24 +13:00
Brian Birtles
16b5c82dc9 Bug 1207951 - Fix buggy logic in ComposeStyle; r=heycam 2015-09-28 12:38:41 +09:00
Brian Birtles
60a5523a6a Bug 1195180 part 10 - Remove refresh driver observing machinery from CommonAnimationManager; r=heycam
This patch removes a lot of code involved with observing the refresh driver from
nsAnimationManager and nsTransitionManager now that we no longer need to do
this.

The one piece it does not remove, however, is
AnimationCollection::mNeedsRefreshes since this flag actually serves a secondary
purpose in telling us when the animation style has not changed and so does
not need to be updated. A subsequent patch in this series will rename this
and update the code that makes use of it.
2015-09-28 12:38:41 +09:00
Brian Birtles
820618158a Bug 1195180 part 9 - Add test for seeking finished -> paused; r=heycam
This patch adds a test that even when we seek from being irrelevant to another
state where we no longer need ticks that we still spin the refresh driver
in order to queue and dispatch an animationstart event.
2015-09-28 12:38:41 +09:00
Brian Birtles
36c16f7957 Bug 1195180 part 8 - Tick animations from their timeline; r=heycam 2015-09-28 12:38:41 +09:00
Brian Birtles
68cafe83b4 Bug 1195180 part 7 - Store animations in an array; r=heycam
Currently AnimationTimeline stores animations in a hashmap which means that
when we go to iterate over those animations to tick them we will visit them
in an order that is non-deterministic.

Although many of the observable effects of ticking an animation (e.g. CSS
animation/transition events, mutation observer events) are later sorted so that
the result does not depend on the order in which animations are ticked, this is
not true for in all cases. In particular, the order in which Animation.finished
promises are resolved will vary depending on the order in which animations are
ticked. Likewise, for Animation finish events.

Furthermore, it seems generally desirable to have a deterministic order for
visiting animations in order to aid reproducing bugs.

To achieve this, this patch switches the storage of animations in
AnimationTimeline to use an array instead. However, when adding animations
we need to determine if the animation to add already exists. To this end we
also maintain a hashmap of the animations so we can quickly determine if
the animation to add is a duplicate or not.
2015-09-28 12:38:41 +09:00
Brian Birtles
ae189d2746 Bug 1195180 part 6 - Lazily remove animations from timelines; r=heycam
Now that DocumentTimeline observes the refresh driver we can use regular
ticks to remove unnecessary animations.

We do this because in a subsequent patch, in order to provide deterministic
enumeration order when ticking animations, we will store animations in an array.
Removing an arbitrary element from an nsTArray is O(n) since we have to search
for the array index first, or O(log n) if we keep the array sorted. If we
destroy a subtree containing n animations, the operation effectively becomes
O(n^2), or, if we keep the array sorted, O(n log n). By destroying during a
tick when we are already iterating over the array, however, we will be able
to do this much more efficiently.

Whether an animation is newly associated with a timeline, or is disassociated
from a timeline, or if it merely has its timing updated, the behavior
implemented in this patch is to simply make sure we are observing the refresh
driver and deal with the animation on the next tick.

It might seem that we could be a lot more clever about this and, for example, if
an animation reports NeedsTicks() == false, not start observing the refresh
driver. There are various edge cases however that need to be taken into account.
For example, if a CSS animation is finished (IsRelevant() == false so that
animation will have been removed from the timeline), and paused
(NeedsTicks() == false), and we seek it back to the point where it is relevant
again, we actually need to observe the refresh driver so that it can dispatch an
animationstart event on the next tick. A test case in a subsequent patch tests
this specific situation.

We could possibly add logic to detect if we need to fire events on the next tick
but the complexity does not seem warranted given that even if we unnecessarily
start observing the refresh driver, we will stop watching it on the next tick.

This patch removes some rather lengthy comments from
AnimationTiming::UpdateTiming. This is, in part, because of the behavior
described above that makes these comments no longer relevant. Other parts are
removed because the Web Animations specification has been updated such that a
timeline becoming inactive now pauses the animation[1] so that the issue
regarding detecting timelines becoming active/inactive no longer applies
since animations attached to an inactive timeline remain "relevant".

[1] https://w3c.github.io/web-animations/#responding-to-a-newly-inactive-timeline
2015-09-28 12:38:41 +09:00
Brian Birtles
4ba3abb7d3 Bug 1195180 part 5 - Synchronize refresh driver observing with presshell creation/teardown; r=heycam 2015-09-28 12:38:40 +09:00
Brian Birtles
615fb3a648 Bug 1195180 part 4 - Unregister from refresh observer when there are no animations needing ticks; r=heycam 2015-09-28 12:38:40 +09:00
Brian Birtles
5e9be9d40a Bug 1195180 part 3 - Add flag to record if DocumentTimeline is observing the refresh driver; r=heycam 2015-09-28 12:38:40 +09:00
Brian Birtles
a12e08d26e Bug 1195180 part 2 - Make DocumentTimeline inherit from nsARefreshObserver; r=heycam 2015-09-28 12:38:40 +09:00
Brian Birtles
534ef7e86c Bug 1195180 part 1 - Add Animation::NeedsTicks; r=heycam
Adds a method to determine if an animation requires refresh driver ticks.
We will use this function later to determine when it is safe to stop
observing the refresh driver.
2015-09-28 12:38:40 +09:00
Chris Pearce
e30c6e5fa9 Bug 1208289 - Backout. r=backout 2015-09-28 15:37:18 +13:00
Chris Pearce
771aa6c979 Bug 1208289 - Yet another-another bustage fix. r=bustage 2015-09-28 15:16:13 +13:00
Chris Pearce
3b2e225a56 Bug 1208289 - Yet another bustage fix. r=bustage 2015-09-28 14:26:44 +13:00
Chris Pearce
593512f49b Bug 1208289 - Bustage fix. r=bustage 2015-09-28 14:21:21 +13:00
Chris Pearce
8ded475d58 Bug 1208289 - Log outstanding frames in GMP DrainComplete() and detect dropped ResetComplete. r=jwwang 2015-09-28 14:03:21 +13:00
Chris Pearce
4e35212ee5 Bug 1208289 - Add SimpleTimer to make setting timeouts in C++ easy. r=jwwang 2015-09-28 14:03:15 +13:00
Chris Pearce
25a4f614a7 Bug 1208348 - Check whether DirectShow can decode MP3 before assuming it will work. r=jya 2015-09-28 14:03:04 +13:00
Ehsan Akhgari
a6cf9bdba5 Bug 1208926 - Initialize hOldFont so that it can't be accessed uninitialized; r=rstrong
Found by Viva64.
2015-09-27 20:54:31 -04:00
Ehsan Akhgari
9757e808a4 Bug 1208901 - Fix a typo in nsStyleClipPath::nsStyleClipPath; r=heycam
Found by Viva64.  Seems to have been a copy-paste error.
2015-09-27 20:54:29 -04:00
Jean-Yves Avenard
57037c7820 Bug 1208917: Fix VP9 decoding with recent version of libav. r=kentuckyfriedtakahe
Recent libav do not require a codec parser to decode VP9.
2015-09-28 10:30:03 +10:00
Nicholas Nethercote
342466f878 Bug 1208345 - Remove gfxContext::GraphicsOperator. r=jwatt.
Also...

- Rename various "operator" identifiers as "op" to match |CompositionOp|.

- Rename |nsBackgroundLayerState::mCompositingOp| as |mCompositionOp| to match
  |CompositionOp|.

- Remove some deprecated functions that are no longer needed.

--HG--
extra : rebase_source : 74e9b6eecf6f442e27cc18fd4ae6f668a45188aa
2015-09-24 22:38:58 -07:00
Ehsan Akhgari
beff9c1083 Bug 1208906 - Fix typo on a typo fix! 2015-09-27 19:36:19 -04:00
Ehsan Akhgari
0ac8a4aff7 Bug 1208904 - Fix a condition in nsWindow::SetNonClientMargins; r=roc
Found by Viva64.
2015-09-27 19:34:13 -04:00
Ehsan Akhgari
8258e311c6 Bug 1208906 - Fix a conditional statement in nsNativeThemeWin::GetThemePartAndState; r=roc
Found by Viva64.
2015-09-27 19:34:11 -04:00
Ehsan Akhgari
ed270af4ab Bug 1208884 - Fix a few null check ordering bugs in nsHTMLEditRules::SplitParagraph; r=roc
Found by Viva64.
2015-09-27 19:34:09 -04:00
JW Wang
74504dc15a Bug 1207915 - Apply the fix of bug 1052206 to DecodedStream. r=roc. 2015-09-28 05:46:47 +08:00
Ehsan Akhgari
ad3a3c6527 Bug 1208892 - Replace the uses of memset to clean up data in GMPLoader::Load with an inline memset; r=cpearce
This is found by Viva64.  Because the data we're memsetting to 0
may not be used after this point, the compiler can eliminate the
memsets.  We need to roll our own inline memset that cannot be
optimized away.
2015-09-27 17:46:04 -04:00
B2G Bumper Bot
a5bc120478 Bumping manifests a=b2g-bump 2015-09-24 17:24:56 -07:00
B2G Bumper Bot
b2d74d0443 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/1248110d4686
Author: Ghislain 'Aus' Lacroix <aus@noiseport.org>
Desc: Merge pull request #31776 from nullaus/bug1188891

Bug 1188891 - Use pypi.pub.build.mozilla.org instead of pypi.python.o…

========

https://hg.mozilla.org/integration/gaia-central/rev/ef43cf07ea0a
Author: Ghislain 'Aus' Lacroix <aus@mozilla.com>
Desc: Bug 1188891 - Use pypi.pub.build.mozilla.org instead of pypi.python.org. r=me
2015-09-24 17:21:59 -07:00
Nick Fitzgerald
3dd24d960d Bug 1207645 - Create HeapSnapshotFileActor; r=jryans
This commit creates the HeapSnapshotFileActor and moves the transferHeapSnapshot
method from MemoryActor to HeapSnapshotFileActor. This is necessary because
child processes in e10s are sandboxed and do not have access to the file system,
and because MemoryActor is in the sandboxed child process it cannot open the
file and send it over the RDP.

This complexity is hidden at the MemoryFront layer. Users of MemoryFront will
still simply call its saveHeapSnapshot method, and do not need to worry about
the inner workings of how heap snapshot files are transferred over the RDP. This
required adding a third parameter to MemoryFront's initialize method: the
listTabs response.
2015-09-24 17:19:03 -07:00
Wes Kocher
f9f25580af Merge m-c to fx-team, a=merge 2015-09-24 17:15:17 -07:00
Wes Kocher
6eca104071 Merge m-c to b2ginbound, a=merge 2015-09-24 17:14:44 -07:00
Wes Kocher
0d3937e34d Merge b2ginbound to central, a=merge 2015-09-24 16:57:38 -07:00