Commit Graph

258489 Commits

Author SHA1 Message Date
JW Wang
539b3a0c31 Bug 1195158. Part 3 - connect listeners. r=cpearce.
a. MediaMetadataManager is connected to MediaDecoderReader::mTimedMetadataEvent to receive TimedMetadata events.
b. OggReader publish TimedMetadata events through MediaDecoderReader::mTimedMetadataEvent.
c. MDSM calls MediaMetadataManager::DispatchMetadataIfNeeded to publish metadata if playback positoin reaches the publish time.
d. MediaDecoder is connected to MediaMetadataManager::mTimedMetadataEvent to receive TimedMetadata events.
e. MediaDecoder updates its metadata when TimedMetadata events are received.
2015-08-18 11:12:39 +08:00
JW Wang
9ea6b2d493 Bug 1195158. Part 2 - Have OggReader send TimedMetadata events through a event source instead of direct calls to AbstractMediaDecoder::QueueMetadata. r=cpearce. 2015-08-18 11:12:39 +08:00
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
Nick Alexander
f94db9ceb4 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.)
2015-08-17 11:26:29 -07:00
Shivang Nagaria
1693ce03ad Bug 591753: Category buttons should highlight on hover even when selected. r=dtownsend 2015-08-17 10:48:52 -07:00
B2G Bumper Bot
349c1bad52 Bumping manifests a=b2g-bump 2015-08-17 10:33:39 -07:00
B2G Bumper Bot
0e49a7d434 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
58e7484f96 Bumping manifests a=b2g-bump 2015-08-17 08:57:05 -07:00
B2G Bumper Bot
dd0f7f9357 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
89d2fb382a Bumping manifests a=b2g-bump 2015-08-17 08:32:04 -07:00
B2G Bumper Bot
1540135e5b Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

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

Bug 1152986 - Contact Last Name is repeated in Name field when viewin…

========

https://hg.mozilla.org/integration/gaia-central/rev/ce0ede99d039
Author: Francisco Jordano <fjordano@mozilla.com>
Desc: Bug 1152986 - Contact Last Name is repeated in Name field when viewing an attached vcard with Last Name and without Name fields r=francisco
2015-08-17 08:30:27 -07:00
Mike Shal
f82aaa2ea5 Bug 1133074 - Make the gecko.v2 routes public; r=jlund,garndt 2015-08-17 10:29:34 -04:00
Trevor Saunders
3c153be828 bug 1192330 - update text change data for proxied text change events r=surkov 2015-08-19 12:48:58 -04:00
Trevor Saunders
f378a1c7ce bug 1192330 - add ia2AccessibleText::UpdateTextChangeData r=surkov
Soon we will need to be able to update the text change event data from both
 HandleAccEvent() and ProxyTextChangeEvent(), so separate out the logic to do
 that into a function.
2015-08-19 12:48:58 -04:00
Trevor Saunders
01dba03e84 bug 1192330 - remove ia2AccessibleText::GetModifiedText() r=surkov
There's no point in this indirection since ia2AccessibleText has direct access
to this data.
2015-08-19 12:48:58 -04:00
Trevor Saunders
6deda0cbcd bug 1192330 - move static text change data from HyperTextAccessibleWrap to ia2AccessibleText r=surkov
This will enable us to remove the virtual function GetModifiedText().
2015-08-19 12:48:58 -04:00
Trevor Saunders
eedf7b74e2 bug 1192353 - make HyperTextProxyAccessibleWrap inherit from
HyperTextAccessibleWrap r=davidb

This is rather unfortunate, AccessibleWrap itself wastes a fair amount of space
when it just stores a pointer to a proxy, and this makes it waste even more.
However this is rather necessary for now because we need to be able to downcast
classes such as ia2AccessibleText to one type that works both when the
accessible is pointing to a proxy and when it is not.  That means
HyperTextAccessibleWrap and HyperTextProxyAccessibleWrap need to have the same
layout.
2015-08-19 12:48:57 -04:00
Kai Engert
e2dccd155b Bug 1194135, set NSS version to final 3.20 tag, no code change, DONTBUILD 2015-08-19 18:41:53 +02:00
Bill McCloskey
f039e12372 Bug 1163735 - Ensure that we don't hand out a destroyed TabChild from WorkerPrivate::InterfaceRequestor (r=khuey)
If the actor we hand out has been __delete__d, then we'll crash when
Necko tries to send the actor to the parent to open connections.
2015-08-19 09:40:55 -07:00