Commit Graph

258618 Commits

Author SHA1 Message Date
JW Wang
01ec86dbeb 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
7d4d926aa6 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
735ff9144b 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
603a09ba64 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
0959beed1d 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
867bd0fcfb 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
5fe377ae91 Bug 1194112. Part 5 - remove dead code. r=kinetik. 2015-08-18 11:12:06 +08:00
JW Wang
206283ec0d Bug 1194112. Part 4 - reimplement Listener/ListenerImpl to support Move. r=kinetik. 2015-08-18 11:11:53 +08:00
JW Wang
997a17f75e 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
fd506c0b56 Bug 1194112. Part 2 - small code refactoring to reduce typing. r=kinetik. 2015-08-18 11:11:29 +08:00
JW Wang
a53fc1f7e3 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
43ae374c18 Bug 1191688 - Add -nologo option to rc.exe. r=ted 2015-08-18 15:55:17 +09:00
B2G Bumper Bot
8eec30c196 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/600cee8e2a24
Author: Greg Weng <snowmantw@gmail.com>
Desc: Merge pull request #31320 from snowmantw/bug1186762

Bug 1186762 - fix: now the command is: RAPTOR_TRANSFORM_RULES=<which directory the esp files is> make raptor-transformer

========

https://hg.mozilla.org/integration/gaia-central/rev/d745d5d62aea
Author: Greg Weng <snowmantw@gmail.com>
Desc: Bug 1186762 - fix: now the command is: RAPTOR_TRANSFORM_RULES=<which directory the esp files is> make raptor-transformer
2015-08-17 20:10:37 -07:00
Jessica Jong
008a8c5a4f Bug 1185406 - B2G RIL: Read 'pcscf' and expose it in nsIRilNetworkInfo. r=hsinyi 2015-08-18 09:54:36 +08:00
B2G Bumper Bot
9294208be3 Bumping manifests a=b2g-bump 2015-08-17 17:21:49 -07:00
B2G Bumper Bot
a82748f8f6 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/ce868aab03e6
Author: Kevin Grandon <kevingrandon@yahoo.com>
Desc: Merge pull request #31365 from KevinGrandon/bug_1195062_clock_switches

Bug 1195062 - [Clock] Port building block switches to use web components

========

https://hg.mozilla.org/integration/gaia-central/rev/784f22088592
Author: Kevin Grandon <kevingrandon@yahoo.com>
Desc: Bug 1195062 - [Clock] Port building block switches to use web components
2015-08-17 17:20:11 -07:00
Wes Kocher
d56847e545 Merge m-c to b2ginbound, a=merge 2015-08-17 17:15:50 -07:00
Wes Kocher
f5f46725f0 Merge b2ginbound to central, a=merge 2015-08-17 17:05:25 -07:00
Wes Kocher
f6a10b2301 Merge inbound to central, a=merge 2015-08-17 17:00:42 -07:00
Wes Kocher
a766cb3417 Merge fx-team to central, a=merge 2015-08-17 16:54:21 -07:00
Boris Chiou
f38cb18883 Bug 952456 - Part 3: Enable test_copyimage.html on gonk/cocoa r=fabrice
Enable dom/base/test/test_copyimage.html on b2g emulators and macos
2015-08-17 15:49:30 -07:00
Boris Chiou
34b18580e3 Bug 952456 - Part 2: Support copy image in BrowserElement. r=kchen
Add a new context menu option, copy image.
2015-08-17 15:49:20 -07:00
Boris Chiou
b885cc202e Bug 952456 - Part 1: Implement gonk/nsClipboard for rich text and raw image r=fabrice
Handle text/html and image MIME types on gonk/nsClipboard
2015-08-17 15:49:14 -07:00
Roger Yang
ace6b897cb Bug 1008483 - removes the RW lock in CameraControlImpl and replaces it with a standard mutex. r=aosmond 2015-08-17 15:48:07 -07:00
David Burns
034dbeb282 Bug 1195440: Disable health reporting when marionette tests are running; r=jgriffin 2015-08-17 21:36:57 +01:00
Josh Matthews
bc2ef57e8e 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
fa6ffdfa08 Bug 1195474 - Annotate 759249-1.html and 415394-1.xhtml as asserting in e10s mode. a=me 2015-08-17 15:48:20 -04:00
B2G Bumper Bot
f9baceafe2 Bumping manifests a=b2g-bump 2015-08-17 12:37:11 -07:00
Ryan VanderMeulen
7512870e81 Bug 1195472 - Annotate 505912-1.html to expect one assertion in e10s mode. 2015-08-17 15:36:20 -04:00
B2G Bumper Bot
0cdb76ffd0 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/6124f9e4053b
Author: Dave Hylands <dhylands@gmail.com>
Desc: Merge pull request #31362 from dhylands/bug-1171556-auto-usb

Bug 1171556 - Make MTP be the default when internal sdcard is not sharable. r=timdream

========

https://hg.mozilla.org/integration/gaia-central/rev/ee45cd585bad
Author: Dave Hylands <dhylands@gmail.com>
Desc: Bug 1171556 - Make MTP be the default when internal sdcard is not sharable.
2015-08-17 12:35:33 -07:00
Andrew Osmond
bfb5af0595 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
b71e1c2307 Bug 1187364 - Part 1. Add ability for camera to pause/resume recording. r=dhylands,bz 2015-08-17 15:20:28 -04:00
Julien Pagès
cb177987ea Bug 1194789 - Disable mochitest-ipcplugins and remove mochitest-ipcplugins code. r=jgriffin 2015-08-17 20:34:25 +02:00
Robert O'Callahan
e0d874d12f Bug 1059519. Relax assertion. r=mstange 2015-08-19 13:23:06 +12:00
Bobby Holley
f01a126f2b Bug 1196371 - Add a runtime assertion against illegal string characters in OriginAttributes suffix creation. r=janv,r=mystor 2015-08-19 21:14:34 -07:00
Matthew Gregan
5c6f79720b Bug 1195058 - Handle pa_context_new returning NULL in OOM situations. r=padenot 2015-08-18 12:34:15 +12:00
Masayuki Nakano
2e4d980eea Bug 1196124 Fix mismatch of printf style string and following arguments of MOZ_LOG() in IMMHandler::GetCharacterRectOfSelectedTextAt() r=m_kato 2015-08-20 11:40:14 +09:00
Shu-yu Guo
56a92a5a73 Bug 1179063 - Hook up FunctionBox directly to the JSFunction being parsed to avoid allocating extra static scopes. (r=efaust) 2015-08-19 18:42:56 -07:00
Guilherme Goncalves
3d6fedf828 Bug 1125514 - Use jemalloc's metadata statistics to compute bookkeeping. r=glandium 2015-08-20 10:05:44 +09:00
Ehsan Akhgari
32a369b80d Bug 1196361 - Remove the media.useAudioChannelService pref; r=baku
We need to rely on the audio channel service for all products now,
so supporting running without it seems pointless at this point.
2015-08-19 21:00:18 -04:00
Masatoshi Kimura
121c6f6d72 Bug 1141394 - Remove strings for SSLv3 warnings from the tree. r=keeler,dolske 2015-08-20 09:35:39 +09:00
Xidorn Quan
6f7cb57689 Bug 1196050 - Replace NSCAP_Zero usage with decltype(nullptr). r=froydnj 2015-08-20 10:30:10 +10:00
Bobby Holley
c4c2164df2 Bug 1188976 - Improve MozPromise.h comment. r=me DONTBUILD 2015-08-19 17:13:45 -07:00
Wes Kocher
23c57742cd Merge m-c to inbound, a=merge CLOSED TREE 2015-08-19 17:13:12 -07:00
Wes Kocher
f6147ac656 Backed out 4 changesets (bug 1191178) to see if it will fix the build bustage on a CLOSED TREE
Backed out changeset 32adb36cf863 (bug 1191178)
Backed out changeset 85cb22235eb5 (bug 1191178)
Backed out changeset 744bab15a5ec (bug 1191178)
Backed out changeset b7621c6af97e (bug 1191178)
2015-08-19 16:13:13 -07:00
Wes Kocher
3947493d19 Backed out changeset ee8d28602bc2 (bug 1191647) for build bustage CLOSED TREE 2015-08-19 15:55:05 -07:00
Wes Kocher
33bb841610 Backed out changeset f00b7bf7b9f8 (bug 1196371) for build bustage CLOSED TREE 2015-08-19 15:49:30 -07:00
Milan Sreckovic
91184fe12b Bug 1188105: Parse bad driver versions. r=botond 2015-08-19 15:14:59 -07:00
Honza Bambas
499d9d2c58 Bug 1188983 - mozilla::Tokenizer improvements, r=nfroyd 2015-08-19 15:14:25 -07:00
Hiroyuki Ikezoe
fefea25bb1 Bug 1191178 - Part 2: Add PerformanceRenderTiming and PerformanceCompositeTiming. r=smaug 2015-08-19 15:14:05 -07:00