Commit Graph

435666 Commits

Author SHA1 Message Date
JW Wang
e82e865c9a Bug 1195158. Part 1 - Have MediaMetadataManager listen to an event source to receive TimedMetadata events. OggReader will send TimedMetadata events through an event source. This will break OggReader's dependency on AbstractMediaDecoder::QueueMetadata which then can be removed for it is against our goal to run all MediaDecoder's methods on the main thread. r=cpearce. 2015-08-18 11:12:38 +08:00
Brian Birtles
7f6947284e Bug 1188251 part 12 - Use RestyleType::Layer in UpdateCascade; r=dholbert
When updating the cascade results between transitions and animations, if we
detect a change we force an update by taking the following steps:

 a. Updating the animation generation on the restyle manager
 b. Updating the animation generation on the collection
 c. Iterating over all the properties animated by the collection and, for
    each property that we can animate on the compositor, posting a restyle
    event with the appropriate change hint (nsChangeHint_UpdateTransformLayer
    or nsChangeHint_UpdateTransformOpacity)
 d. Marking the collection as needing refreshes
 e. Clearing the style rule refresh time so we generate a new style rule in
    EnsureStyleRuleFor

As it turns out, the newly-added
AnimationCollection::RequestRestyle(RestyleType::Layer) already performs a, b,
d, and e. It also:

* Ensures we are observing the refresh driver if need be (should have no effect
  in this case)
* Clears the last animation style update time on the pres context so that
  subsequent calls to FlushPendingNotifications will update animation style
  (it seems like we probably should have been doing this for changes to cascade
  results anyway)
* Posts a restyle event with restyle hint eRestyle_CSSTransitions or
  eRestyle_CSSAnimations
* Marks the document as needing a style flush (irrelevant since posting
  a restyle event does this anyway)

The only missing piece that would prevent using RequestRestyle in place of this
code when updating cascade results is (c) from the list above. However, (c)
should not be necessary since ElementRestyler::AddLayerChangesForAnimation()
explicitly checks for out-of-date layer animation generation numbers and adds
the appropriate change hints (nsChangeHint_UpdateTransformLayer etc.) to the
change list.
2015-08-18 16:11:55 +09:00
Brian Birtles
3cc3ae622c Bug 1188251 part 11 - Add RestyleType::Layer; r=dholbert
We currently have a series of methods that clobber various bits of animation
state to force animations on layers to be updated. This aligns closely with
the restyle code introduced in this patch series.

By re-using RequestRestyle when updating animations on layers, not only should
we be able to simplify the code somewhat but, in future, we should also be able
to have Animation objects use the same mechanism to update layers during
a regular tick.

For example, currently we have a bug where when an animation starts after
a delay with the same value as the backwards fill then we don't send the
animation to the compositor right away (see
https://dxr.mozilla.org/mozilla-central/rev/d6ea652c579992daa9041cc9718bb7c6abefbc91/layout/style/test/test_animations_omta.html#287).
By adding this Restyle::Layer value we should be able to fix that in future.
2015-08-18 16:11:55 +09:00
Brian Birtles
6e18b672e3 Bug 1188251 part 10 - Remove throttling from EnsureStyleRuleFor; r=dholbert
EnsureStyleRuleFor contains logic for performing throttled updates to the style
rule but it is only used in one case: inside
nsTransitionManager::UpdateCascadeResults to determine what properties are
being animated by CSS animations.

We would like to remove throttling logic from EnsureStyleRuleFor altogether but
if that one case where it is currently used is run on every tick then removing
this logic could effectively mean we end up updating the style rule on every
tick. Fortunately nsTransitionManager::UpdateCascadeResults is only called
in the following cases:

1. From nsTransitionManager::StyleContextChanged (via
   TransitionManager::UpdateCascadeResultsWithTransitions), when we are
   processing style changes for transitions.

2. From AnimationCollection::EnsureStyleRuleFor (via
   nsAnimationManager::MaybeUpdateCascadeResults and
   nsTransitionManager::UpdateCascadeResultsWithAnimations), when we are
   updating the animation style rule from CSS animations.

3. From nsAnimationManager::CheckAnimationRule (via
   TransitionManager::UpdateCascadeResultsWithAnimationsToBeDestroyed), when
   we are processing style changes for CSS animations.

None of these things should be happenning on a regular throttle-able tick so by
removing this logic we shouldn't be causing any additional work.

I have verified, using a test case that combines transitions and animations on
the same property, that we have the same behavior with regard to calling
EnsureStyleRuleFor both before and after this patch (specifically we avoid
calling it altogether while running only the transition but when the animation
starts and clobbers the transition we end up calling EnsureStyleRuleFor once on
each tick).
2015-08-18 16:11:55 +09:00
Brian Birtles
5715bb1092 Bug 1188251 part 9 - Request restyles from Animation::Tick; r=dholbert
In preparation for ultimately being able to run animations without a manager,
this patch moves the request restyle code from FlushAnimations to
Animation::Tick. (Ultimately most of this functionality should move to the
KeyframeEffect but for now Animation is fine.)
2015-08-18 16:11:55 +09:00
JW Wang
043e43feb6 Bug 1194112. Part 6 - add a test case to test the exclusive mode. r=kinetik. 2015-08-18 11:12:18 +08:00
JW Wang
efbb80586d Bug 1194112. Part 5 - remove dead code. r=kinetik. 2015-08-18 11:12:06 +08:00
JW Wang
1b22c5e8ce Bug 1194112. Part 4 - reimplement Listener/ListenerImpl to support Move. r=kinetik. 2015-08-18 11:11:53 +08:00
JW Wang
5f598a7653 Bug 1194112. Part 3 - use perfect forwarding in MediaEventProducer::Notify() so MediaEventSource can decide whether to copy or move according to its ListenerMode. r=kinetik. 2015-08-18 11:11:42 +08:00
JW Wang
de505bd968 Bug 1194112. Part 2 - small code refactoring to reduce typing. r=kinetik. 2015-08-18 11:11:29 +08:00
JW Wang
45edb0c3a0 Bug 1194112. Part 1 - extract event dispatch code from ListenerImpl to its own class. r=kinetik. 2015-08-18 11:11:16 +08:00
Makoto Kato
45b2236f90 Bug 1191688 - Add -nologo option to rc.exe. r=ted 2015-08-18 15:55:17 +09:00
Chris Peterson
0b2ba61b72 Bug 554171 - Add plugin thread checks to functions that must only be called on the main thread. r=jimm 2015-07-17 00:17:09 -07:00
Chris Peterson
a5d85d1651 Bug 1194955 - Fix -Wunreachable-code warnings in dom/ipc and dom/plugins. r=jimm 2015-05-31 19:39:16 -07:00
Chris Peterson
fa48ec17dc Bug 1194954 - Fix -Wunreachable-code warnings in gfx/layers and gfx/thebes. r=BenWa 2015-06-03 23:13:42 -07:00
Chris Peterson
8b1de6b820 Bug 1194948 - Build gfx/ipc in unified mode and mark as FAIL_ON_WARNINGS. r=BenWa 2015-08-13 20:46:47 -07:00
L. David Baron
ef223d57a2 Bug 1195142 patch 3 - Link to correct specification URLs so the CSSWG test suite system is happy. 2015-08-18 08:20:35 +02:00
Ms2ger
132c5b2f05 Remove prefixed properties. No bug.
(Imported from https://hg.csswg.org/test/ by dbaron.)
2015-08-11 12:21:28 +02:00
John Daggett
4fa8c01024 Bug 1195188 - add fontlist init problem telemetry for DirectWrite. r=m_kato 2015-08-18 15:15:45 +09:00
L. David Baron
792c0d9ece Bug 1195142 patch 2 - Add reftests for will-change creating a stacking context. r=BenWa
--HG--
extra : commitid : 7mGPUbhsYeC
2015-08-18 08:13:56 +02:00
L. David Baron
d6fd5cd910 Bug 1195142 patch 1 - Set CSS_PROPERTY_CREATES_STACKING_CONTEXT for the opacity property. r=BenWa
This isn't actually needed for the only caller (which ensures that
frames with will-change: opacity create a stacking context), since
nsIFrame::BuildDisplayListForChild checks HasOpacity, which checks for
NS_STYLE_WILL_CHANGE_OPACITY.  However, it's good to have the bit set
for consistency in case we use it elsewhere.

--HG--
extra : commitid : 2mKHVXRkjZL
2015-08-18 08:13:56 +02:00
Robert O'Callahan
23fec6ad97 Bug 1179288. Make position:fixed induce a stacking context. r=heycam
--HG--
extra : commitid : 7QaxW4IWItK
extra : rebase_source : 33cc2889181a70d662757c0a93a4d1438ffb3573
2015-08-17 11:02:54 +12:00
Francois Marier
a196b8ef35 Bug 1195572 - Enable -Wformat-security in DOM::Security. r=ckerschb 2015-08-17 21:48:07 -07:00
Wes Kocher
9cfc18f036 Backed out changeset 0fc1b3aba102 (bug 1178653) for js bustage CLOSED TREE 2015-08-17 20:16:45 -07:00
JW Wang
119df69dbc Bug 1195187. Part 2 - add a new class OutputStreamManager for managing output streams. r=roc. 2015-08-18 10:58:13 +08:00
JW Wang
4b4299ef9a Bug 1195187. Part 1 - Move output stream connection/disconnection code to OutputStreamData. r=roc. 2015-08-18 10:57:56 +08:00
Jeff Walden
6ac3864ea7 Bug 1178653 - Refactor construction code to use an interface consistent with the spec, with the one exception using an out-of-the-way, differently-named method. r=efaust
--HG--
extra : rebase_source : 59288cc2ad65433ab310faf4d10fb2bca4263bdd
2015-07-25 02:38:10 -07:00
Nathan Froyd
5108c14a08 Bug 1194806 - part 5 - mark function pointer-to-members with JNICALL appropriately; r=snorp,jchen 2015-08-14 23:03:45 -04:00
Nathan Froyd
03c1f240be Bug 1194806 - part 4 - use |typename| to refer to trait class typedefs, not |class|; r=jchen 2015-08-14 22:34:16 -04:00
Nathan Froyd
bd24a2df58 Bug 1194806 - part 3 - consistently declare dom::mobilemessage::SmsFilterData as a class; r=snorp 2015-08-14 22:22:50 -04:00
Nathan Froyd
160a6405bb Bug 1194806 - part 2 - mark overrides as such in widget/android/; r=snorp 2015-08-14 22:06:20 -04:00
Nathan Froyd
a64d0e54a5 Bug 1194806 - part 1 - consistently declare mozilla::jni::detail::TypeAdaptor as a struct; r=jchen
clang doesn't like it when we declare things as a struct in one place
and a class in another.  This change makes all the current usages
consistent and clang happy.
2015-08-14 21:59:27 -04:00
Ehsan Akhgari
053201adb7 Bug 1195150 - Persist the tab muted state in the session store; r=billm
The muted state is state that belong to the whole tab, and it would be
nice if it was integrated with undo close tab and session restore.
2015-08-17 20:21:51 -04:00
Wes Kocher
292ed85eba Merge m-c to inbound, a=merge 2015-08-17 17:15:24 -07:00
Wes Kocher
fc6203de4a Merge b2ginbound to central, a=merge 2015-08-17 17:05:25 -07:00
Wes Kocher
c11420c4df Merge inbound to central, a=merge 2015-08-17 17:00:42 -07:00
Wes Kocher
06e280b35d Merge fx-team to central, a=merge 2015-08-17 16:54:21 -07:00
David Burns
d0149ca48f Bug 1195440: Disable health reporting when marionette tests are running; r=jgriffin
--HG--
extra : commitid : 6ltTPgnkn0V
extra : rebase_source : 3cf8839225e8b9d64ef866e983fbbe329526bbf4
2015-08-17 21:36:57 +01:00
Josh Matthews
d81dcd0407 Bug 1179399 - Add a flag to HttpBaseChannel indicating whether interception is occurring. r=mayhemer
Landed on a CLOSED TREE
2015-08-17 16:42:46 -04:00
Ryan VanderMeulen
47217eaaec Bug 1195474 - Annotate 759249-1.html and 415394-1.xhtml as asserting in e10s mode. a=me
--HG--
extra : amend_source : 6f6f04e2566e9e74bad340ceb9238566e3a55f5e
2015-08-17 15:48:20 -04:00
Ryan VanderMeulen
2b80504f9c Bug 1195472 - Annotate 505912-1.html to expect one assertion in e10s mode. 2015-08-17 15:36:20 -04:00
Andrew Osmond
d4cc8622c2 Bug 1187364 - Part 2. Ensure that recording is resumed with a key frame. r=mchiang 2015-08-17 15:20:35 -04:00
Andrew Osmond
b100eebfc1 Bug 1187364 - Part 1. Add ability for camera to pause/resume recording. r=dhylands,bz 2015-08-17 15:20:28 -04:00
Nick Alexander
e46a0d8dd6 No bug - Bump Google Play versions in Android Gradle versions. r=me
DONTBUILD NPOTB

We're seeing build failures since 6.5.+ doesn't match 6.5.87.  This
shouldn't be fuzzy, and it shouldn't be an ancient version of Google
Play Services either.  (In moz.build local builds , we're using a much
more recent version.  In automation, I'm not certain what we're
using.)

--HG--
extra : commitid : 6EjfXxM9FJy
2015-08-17 11:26:29 -07:00
Shivang Nagaria
359c5be3bf Bug 591753: Category buttons should highlight on hover even when selected. r=dtownsend
--HG--
extra : commitid : KKdcqvrSA39
extra : rebase_source : d79b33aa032abdf804bdf7bc0a21cc720431446c
2015-08-17 10:48:52 -07:00
B2G Bumper Bot
592cae86db Bumping manifests a=b2g-bump 2015-08-17 10:33:39 -07:00
B2G Bumper Bot
8011696dbe Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

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

Bug 1194342 - [Music][NGA] Enable ServiceWorkers via build-time flag

========

https://hg.mozilla.org/integration/gaia-central/rev/2774febb236a
Author: Justin D'Arcangelo <justindarc@gmail.com>
Desc: Bug 1194342 - [Music][NGA] Enable ServiceWorkers via build-time flag
2015-08-17 10:32:01 -07:00
B2G Bumper Bot
a83ca180fe Bumping manifests a=b2g-bump 2015-08-17 08:57:05 -07:00
B2G Bumper Bot
09d6f7e95e Bumping gaia.json for 4 gaia revision(s) a=gaia-bump
========

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

Bug 1183058 - [Contacts]Enable "Order by last name", and then kill th…

========

https://hg.mozilla.org/integration/gaia-central/rev/b7ff8a7de4a9
Author: Francisco Jordano <fjordano@mozilla.com>
Desc: Bug 1183058 - [Contacts]Enable "Order by last name", and then kill the contact app or reboot device without tapping "Done", and "Order by last name" will not work when it is enable unless you kill contact and relaunch again. r=borjasalguero

========

https://hg.mozilla.org/integration/gaia-central/rev/95b70d55c028
Author: Martijn <martijn.martijn@gmail.com>
Desc: Merge pull request #31355 from mwargers/1191471

Bug 1191471 - Fix failure in test_keyboard.py

========

https://hg.mozilla.org/integration/gaia-central/rev/4b6e42473d80
Author: Martijn Wargers <mwargers@mozilla.com>
Desc: Bug 1191471 - Fix failure in test_keyboard.py
2015-08-17 08:55:28 -07:00
B2G Bumper Bot
37c6ef18f2 Bumping manifests a=b2g-bump 2015-08-17 08:32:04 -07:00