Commit Graph

367084 Commits

Author SHA1 Message Date
Brian Birtles
0833cb3100 Bug 1025709 part 4 - Move EnsureStyleRuleFor from ElementTransitions and ElementAnimations to CommonElementAnimationData; r=heycam
Both ElementAnimations and ElementTransitions have an EnsureStyleRuleFor method.
The ElementAnimations version is a more general of the ElementTransitions one
with the exception that the ElementTransitions version checks for finished
transitions. This patch moves the code from ElementAnimations to
CommonElementAnimationData with one minor change: adding the checks for finished
transitions. The ElementTransitions version is removed.

Since the ElementAnimations version contains a second parameter, aIsThrottled,
callers of ElementTransitions must include this extra parameter. In
a subsequent patch we add an enum for this parameter to make call sites easier
to read.

The ElementAnimations version also sets the mNeedsRefreshes member so at the
same time we move mNeedsRefreshes to CommonElementAnimationData. Furthermore,
since the ElementAnimations version which we have adopted returns early if
mNeedsRefreshes is false, this patch ensures that when we call
EnsureStyleRuleFor from ElementTransitions::WalkTransitionRule, we set
mNeedsRefreshes to true first.

Another difference to account for is that the ElementTransitions version of
EnsureStyleRuleFor *always* sets mStyleRule (even if it doesn't add anything to
it) where as the ElementAnimations version only creates the rule when necessary
so we need to add a check to ElementTransitions::WalkTransitionRule that
mStyleRule is actually set before using it.
2014-06-20 12:39:24 +09:00
Brian Birtles
55944f4c7c Bug 1025709 part 3 - Move delay calculation to GetComputedTimingAt; r=heycam
Now that an animation's delay is part of AnimationTiming--the struct we pass to
GetComputedTimingAt--it makes sense to act on it in GetComputedTimingAt.

This also happens to bring the procedures here closer to the algorithm
definitions in Web Animations.

As part of this refactoring, this patch converts ElementAnimation::IsRunningAt
to use GetComputedTiming since the previous approach no longer works now that
GetLocalTimeAt (nee ElapsedDurationAt) no longer handles delays. This also
removes duplicated logic.

Also, previously ElapsedDurationAt would assert if called on a finished
transition since TimeDuration's - operator wouldn't like the null mStartTime.
This patch adds an assertion for this case to GetLocalTimeAt to ease debugging.
2014-06-20 12:39:24 +09:00
Brian Birtles
5c00d7239f Bug 1025709 part 2 - Add IsFinished() to ElementAnimation; r=heycam
One of the main differences in handling a list of transitions vs a list of
regular animations is that when we are dealing with a list of transitions we
need to check for transitions that have finished and are about to be discarded
but need to be retained temporarily to provide correct triggering of subsequent
transitions. Such transitions are marked as "removed sentinels" and are ignored
for most operations.

This patch moves the methods for setting and checking such transitions to the
base class ElementAnimation so that we can treat animations and transitions
alike without having to downcast or do obscure checks for mStartTime.IsNull()
(which equates to checking if the animation is a "removed sentinel" but is not
particularly clear).

In the process, this patch renames said methods to Is/SetFinishedTransition
since hopefully that is a little easier to understand at a glance.
2014-06-20 12:39:24 +09:00
Brian Birtles
5bb2caab0a Bug 1025709 part 1 - Move mDelay to AnimationTiming; r=heycam
This patch is the first part in preparing the way to merge ElementTransitions
with CommonElementAnimationData (which we'll eventually rename to something
nicer).

Here we move mTiming from CommonElementAnimationData to the AnimationTiming
struct. While this is not strictly necessary in order to do the later
refactoring it makes it simpler since it:

- Divides time calculation into calculation based on dynamic play state (the
  responsibility of animation players in Web Animations terms) and static
  author-specified timing parameters (a property of animations in Web Animations
  terms).
- In future we will probably put animations on the compositor during their
  delay phase so we will want the delay to be present in the AnimationTiming
  struct then.
- Makes AnimationTiming line up with the dictionary of the same name in Web
  Animations.
2014-06-20 12:39:23 +09:00
Sotaro Ikeda
0555dff07f Bug 1027088 - Ensure fence delivery for TiledContentClient on gonk r=nical 2014-06-19 19:41:36 -07:00
Chris Cooper
ed828581ec Bug 920364 - Remove unused --enable-privilege from remotereftest invocations - r=gbrown 2014-06-19 22:29:33 -04:00
Daniel Holbert
240f4e7f0d Bug 1024328: Remove unnecessary #includes of nsFrameManager.h. r=jwatt 2014-06-19 22:07:46 -04:00
Kyle Huey
b1e3198eed Bug 737976: Remove nsINodeInfo. r=smaug
--HG--
rename : content/base/src/nsNodeInfo.cpp => dom/base/NodeInfo.cpp
rename : content/base/public/nsINodeInfo.h => dom/base/NodeInfo.h
rename : content/base/src/nsNodeInfo.h => dom/base/NodeInfoInlines.h
2014-06-19 19:01:40 -07:00
Dan Gohman
954885e61c Bug 1027842 - Make jit_test.py search in PATH to find the js shell command. r=terrence 2014-06-19 18:50:09 -07:00
Dan Gohman
9954937cf1 Bug 1027848 - SpiderMonkey: Delete obsolete command-line options r=h4writer 2014-06-19 18:50:06 -07:00
Wes Kocher
960e3291d5 Merge m-c to inbound despite the CLOSED TREE 2014-06-19 18:29:15 -07:00
Wes Kocher
af6ad08f86 Merge inbound to m-c a=merge 2014-06-19 18:07:43 -07:00
Wes Kocher
c640e2a966 Backed out 2 changesets (bug 1026008, bug 1025264) for debug crashtest leaks on a CLOSED TREE
Backed out changeset d7ab14487c62 (bug 1026008)
Backed out changeset 0b04aefdd3e3 (bug 1025264)
2014-06-19 17:13:12 -07:00
Eric Faust
7565fe4dbe Bug 1007334 - Followup: More test futzing for readability and Waldo-appeasement on a CLOSED TREE. (r=test-only) 2014-06-19 17:11:11 -07:00
Eric Faust
1300f98f3b Bug 1007334 - Followup: Fix bogus test for new behavior on a CLOSED TREE. (r=jwalden over IRC) 2014-06-19 16:41:46 -07:00
Wes Kocher
7fe3c4effc Merge fx-team to m-c a=merge 2014-06-19 16:14:35 -07:00
Neil Rashbrook
58426e8e0c Bug 1026008 Incorrect XBL behaviour with multiple insertion points r=mrbkap 2014-06-19 23:57:42 +01:00
Neil Rashbrook
c03ca2c745 Bug 1025264 Broken chrome: URLs should result in error pages r=bsmedberg 2014-06-19 23:56:02 +01:00
Benoit Girard
eb79d62834 Bug 1027794 - Don't copy the visible region when rendering. r=bjacob 2014-06-19 16:14:46 -04:00
B2G Bumper Bot
282b3eff80 Bumping manifests a=b2g-bump 2014-06-19 13:06:42 -07:00
B2G Bumper Bot
a423da5773 Bumping gaia.json for 4 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/dcb55fbcaa9b
Author: Jim Porter <jporter@mozilla.com>
Desc: Merge pull request #20642 from jimporter/ringtones-manage-activity

Bug 1024779 - [ringtones] edge gestures doesn't work

========

https://hg.mozilla.org/integration/gaia-central/rev/6360719e181d
Author: Jim Porter <jporter@mozilla.com>
Desc: Bug 1024779 - [ringtones] edge gestures doesn't work

========

https://hg.mozilla.org/integration/gaia-central/rev/5e2194fbe2c1
Author: Jared Hirsch <ohai@6a68.net>
Desc: Merge pull request #20762 from 6a68/bug-1027487-fmd-server-update

Bug 1027487 - Point FMD Client to New Stage Server URLs

========

https://hg.mozilla.org/integration/gaia-central/rev/e832d6a01c32
Author: Jared Hirsch <ohai@6a68.net>
Desc: Bug 1027487 - Point FMD Client to New Stage Server URLs
2014-06-19 13:00:50 -07:00
B2G Bumper Bot
44299fc442 Bumping manifests a=b2g-bump 2014-06-19 12:32:18 -07:00
B2G Bumper Bot
b8a21c4d46 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/207ea09faee3
Author: Miller Medeiros <miller@millermedeiros.com>
Desc: Merge pull request #20641 from millermedeiros/1023777-account-warning

Bug 1023777 - [B2G][Calendar] Account warning icon is bigger than it should r=gaye

========

https://hg.mozilla.org/integration/gaia-central/rev/745db4eb1bc3
Author: Miller Medeiros <miller@millermedeiros.com>
Desc: Bug 1023777 - [B2G][Calendar] Account warning icon is bigger than it should
2014-06-19 12:30:42 -07:00
B2G Bumper Bot
6e2e4fbc5d Bumping manifests a=b2g-bump 2014-06-19 12:06:33 -07:00
B2G Bumper Bot
05ee3781d0 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/bb7c89814cf0
Author: Miller Medeiros <miller@millermedeiros.com>
Desc: Merge pull request #20717 from millermedeiros/1023784-offline-calendar-master

Bug 1023784 - [7715][calendar] create/modify/view event L10n r=gaye

========

https://hg.mozilla.org/integration/gaia-central/rev/659422fec336
Author: Miller Medeiros <miller@millermedeiros.com>
Desc: Bug 1023784 - [7715][calendar] create/modify/view event L10n
2014-06-19 12:00:39 -07:00
B2G Bumper Bot
8cac950324 Bumping manifests a=b2g-bump 2014-06-19 11:56:14 -07:00
B2G Bumper Bot
e0c55cf67b Bumping gaia.json for 3 gaia revision(s) a=gaia-bump
========

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

Retry: Bug 1020158 - Send IAC message to start the population process

========

https://hg.mozilla.org/integration/gaia-central/rev/ffd672941b06
Author: Kevin Grandon <kevingrandon@yahoo.com>
Desc: Bug 1027708 - Disable test_cleanup_gaia for mac r=me

========

https://hg.mozilla.org/integration/gaia-central/rev/b5d950b2db23
Author: Carmen Jimenez Cabezas <cjc@tid.es>
Desc: Bug 1020158 - Send IAC message to start the population process
2014-06-19 11:50:54 -07:00
B2G Bumper Bot
d53e1f6ca8 Bumping manifests a=b2g-bump 2014-06-19 11:41:14 -07:00
B2G Bumper Bot
f7f10a8a9d Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/25c65e3bdbfb
Author: James Burke <jrburke@gmail.com>
Desc: Merge pull request #20727 from jrburke/bug1027185-email-certified

Bug 1027185 - [email] switch manifest type back to certified r=mcav

========

https://hg.mozilla.org/integration/gaia-central/rev/c27d7cf45074
Author: jrburke <jrburke@gmail.com>
Desc: Bug 1027185 - [email] switch manifest type back to certified
2014-06-19 11:35:56 -07:00
B2G Bumper Bot
eacae29165 Bumping manifests a=b2g-bump 2014-06-19 11:11:36 -07:00
B2G Bumper Bot
4788afe38b Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

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

Bug 1016226 - [Vertical] Homescreen Icon should update when Collection's data changes

========

https://hg.mozilla.org/integration/gaia-central/rev/e6f14387acfe
Author: Kevin Grandon <kevingrandon@yahoo.com>
Desc: Bug 1016226 - [Vertical] Homescreen Icon should update when Collection's data changes r=ranbena
2014-06-19 11:05:47 -07:00
Florian Quèze
8ab686ea99 Bug 1022640 - the Translation UI disappears when tearing off a tab, r=felipe. 2014-06-19 19:40:24 +02:00
B2G Bumper Bot
a6d107025a Bumping manifests a=b2g-bump 2014-06-19 10:22:14 -07:00
B2G Bumper Bot
ae69f4d51f Bumping manifests a=b2g-bump 2014-06-19 09:46:36 -07:00
B2G Bumper Bot
b5199d0feb Bumping gaia.json for 1 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/70117d0593f9
Author: Ed Morley <emorley@mozilla.com>
Desc: Revert "Bug 1012663 - [SMS] Remove inline style for CSP compliance. r=julienw" for intermittent failures in sms/test/unit/attachment_test.js

This reverts commit 1bce57578f6f7bf0a0f5d0c5129a1f4eda06ecc4.
2014-06-19 09:40:40 -07:00
B2G Bumper Bot
ae8f2f49dc Bumping manifests a=b2g-bump 2014-06-19 09:36:30 -07:00
B2G Bumper Bot
bf2c0b9dec Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

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

Bug 1026273 - [Vertical Homescreen] Smart collections are sometimes added in a random order

========

https://hg.mozilla.org/integration/gaia-central/rev/ff4439efa88a
Author: Kevin Grandon <kevingrandon@yahoo.com>
Desc: Bug 1026273 - [Vertical Homescreen] Smart collections are sometimes added in a random order
2014-06-19 09:26:17 -07:00
Ed Morley
798f1d2efc Merge mozilla-central and b2g-inbound 2014-06-19 17:20:14 +01:00
Ed Morley
901a1e2acc Merge mozilla-central and fx-team 2014-06-19 17:20:10 +01:00
B2G Bumper Bot
49789f424e Bumping manifests a=b2g-bump 2014-06-19 09:16:21 -07:00
B2G Bumper Bot
bb04ab6314 Bumping gaia.json for 3 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/a5c2e2bdbd7f
Author: Dale Harvey <dale@arandomurl.com>
Desc: Bug 1026269 - Encode search terms when constructing url. r=kgrandon

========

https://hg.mozilla.org/integration/gaia-central/rev/3cc54a218f60
Author: Timothy Guan-tin Chien <timdream@gmail.com>
Desc: Merge pull request #20728 from timdream/keyboard-update-l10nid

Bug 1025633 - Update l10n ID of keyboard aria labels, r=rudyl

========

https://hg.mozilla.org/integration/gaia-central/rev/b464e37056cf
Author: Timothy Guan-tin Chien <timdream@gmail.com>
Desc: Bug 1025633 - Update l10n ID of keyboard aria labels
2014-06-19 09:10:53 -07:00
B2G Bumper Bot
5f4390fc09 Bumping manifests a=b2g-bump 2014-06-19 08:51:36 -07:00
B2G Bumper Bot
a66674242a Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/97e61fd58989
Author: Guillaume C. Marty <edo999@gmail.com>
Desc: Merge pull request #20619 from gmarty/Bug-1007948-no-multiple-calls

Bug 1007948 - [SIM PIN] Error message disappears when receiving iccinfochange

========

https://hg.mozilla.org/integration/gaia-central/rev/9d58ba36a2f5
Author: Guillaume Marty <edo999@gmail.com>
Desc: Bug 1007948 - [SIM PIN] Error message disappears when receiving iccinfochange
2014-06-19 08:45:55 -07:00
Ed Morley
6703cfdbb0 Merge latest green fx-team changeset and mozilla-central; a=merge 2014-06-19 15:59:56 +01:00
B2G Bumper Bot
9d08a3440a Bumping manifests a=b2g-bump 2014-06-19 07:42:14 -07:00
Ed Morley
7b532947c7 Merge latest green inbound changeset and mozilla-central; a=merge 2014-06-19 15:34:42 +01:00
Brad Lassey
56e1db7e51 bug 1027634 - crash in java.net.MalformedURLException: Unknown protocol: textstyle at java.net.URL.<init>(URL.java) r=snorp 2014-06-19 10:33:24 -04:00
Mike de Boer
782d1b99f9 Bug 1022725: add a mock httpd.js Translation provider for tests. r=florian,felipe 2014-06-19 16:56:02 +02:00
Mike de Boer
a5ea2f48a7 Bug 1022725: Rename BingTranslation to BingTranslator and allow overriding URLs. r=florian 2014-06-19 16:56:00 +02:00
Dão Gottwald
db6d95fa32 Bug 637608 - Use custom arrow images for the tab strip scroll buttons since the native ones often don't work well e.g. on dark backgrounds. r=mdeboer 2014-06-19 16:36:08 +02:00