Граф коммитов

1000 Коммитов

Автор SHA1 Сообщение Дата
Hiroyuki Ikezoe e0f666d6eb Bug 1303793 - Part 1: Use testharness.js instead of SimpleTest.js to run the test in an iframe easily. r=birtles
MozReview-Commit-ID: FlT34Npg8uH

--HG--
extra : rebase_source : 6046b27aeb51ca51a965dd5ca990079ab20208a2
2016-09-20 16:53:33 +09:00
Jan de Mooij a53986bf29 Bug 1302448 part 1 - Rename CycleCollectedJSRuntime to CycleCollectedJSContext. r=mccr8
--HG--
rename : xpcom/base/CycleCollectedJSRuntime.cpp => xpcom/base/CycleCollectedJSContext.cpp
rename : xpcom/base/CycleCollectedJSRuntime.h => xpcom/base/CycleCollectedJSContext.h
extra : rebase_source : 075214b5057f151520926715b6154e99ae80a0b3
2016-09-14 15:47:32 +02:00
Mantaroh Yoshinaga 02a6ea7d52 Bug 1298554 - Remove the animation.id mochitest. r=birtles
MozReview-Commit-ID: 8VTAl9WO7eF

--HG--
extra : rebase_source : b9f7f257a7509ad26d839644e77b2afc7877cd2f
2016-09-12 10:23:10 +09:00
Mantaroh Yoshinaga 01b448239f Bug 1302007 part 2 - Add the test of cancelling the transition when setting display='none'. r=birtles
MozReview-Commit-ID: B6avXxpEpDw

--HG--
extra : rebase_source : 5994b803e7d41e43f53cdc38a473f518ca528ca7
2016-09-13 16:59:52 +09:00
Mantaroh Yoshinaga 4bb206baf4 Bug 1302007 part 1 - Use the promise_test in transition cancel tests. r=birtles
MozReview-Commit-ID: 7cXfwkT7kaH

--HG--
extra : rebase_source : c19372eb265fbc9d0869ac8a9ae41e05f789d5ce
2016-09-12 12:11:15 +09:00
Hiroyuki Ikezoe 5f5f888c4b Bug 1216843 - Part 15: Update styles when current iteration changed. r=birtles
MozReview-Commit-ID: 33JtZplxiAz
2016-09-13 11:48:45 +09:00
Hiroyuki Ikezoe f98523cf02 Bug 1216843 - Part 2: Implement effect iteration composition. r=birtles, r=smaug
MozReview-Commit-ID: 6u7WtXwL3y3
2016-09-13 11:48:44 +09:00
Hiroyuki Ikezoe af7c75acf9 Bug 1300701 - Notify changedAnimations to mutation observer when priority of CSS animations on an element is changed. r=birtles
MozReview-Commit-ID: GXv4c2DiRij

--HG--
extra : rebase_source : 770933f3a0832dfb05417c39697716b30185adba
2016-09-12 15:04:33 +09:00
Mike de Boer 3e295e6280 Bug 1290914 - support Element.animate() on AnonymousContent nodes through the AnonymousContent.setAnimationForElement() method. r=bz
MozReview-Commit-ID: 39QPaCea7Dx
2016-09-08 22:38:53 +02:00
Michael Layzell c47fca1cd7 Bug 1018486 - Part 1: Changes in dom/, r=baku
MozReview-Commit-ID: 4tCUM4KRe81
2016-09-07 10:50:35 -04:00
Boris Chiou c15da6fa38 Bug 1274944 - Part 4: Implement mutation observer for setting spacing. r=birtles
MozReview-Commit-ID: LmCO9QyQbBU

--HG--
extra : rebase_source : f078d871b6c5fab565a3ab03fdbf4ac3452704e6
2016-09-05 12:00:12 +08:00
Boris Chiou 7d2125257c Bug 1274944 - Part 3: Test for setting spacing. r=birtles
MozReview-Commit-ID: 5pMhC00vNIh

--HG--
extra : rebase_source : 372babda4a85dea0ddb4a2e34058ee17650f2ee9
2016-09-01 16:51:39 +08:00
Boris Chiou f31b43fda5 Bug 1274944 - Part 2: Implement SetSpacing(). r=birtles
MozReview-Commit-ID: ASJHVK97gq6

--HG--
extra : rebase_source : 6cdd2118c9aeecd2feb41a794781d85b6ae7ac67
2016-08-31 17:31:10 +08:00
Boris Chiou adeea43b3b Bug 1274944 - Part 1: Add writable spacing attribute. r=smaug
Use [SetterThrows] for KeyframeEffect.spacing because it throws if the input
string is not conformed to the grammar.

MozReview-Commit-ID: CkAnPu8TnV

--HG--
extra : rebase_source : af0960391684323a25ac0b40da28dcbe5c3c2919
2016-08-31 16:58:57 +08:00
Hiroyuki Ikezoe b9c00b50bf Bug 1254881 - Part 3: Use a longer duration to avoid animation's end time gets too short. r=birtles
MozReview-Commit-ID: w212DglqK9

--HG--
extra : rebase_source : 8c1aaa57223d749a87043f98a671c3e52557d745
2016-09-05 18:50:30 +09:00
Hiroyuki Ikezoe 649709818f Bug 1254881 - Part 2: Introduce a new assertion to check a given animation is not running on the compositor. r=birtles
MozReview-Commit-ID: INmj4eEorIa

--HG--
extra : rebase_source : 9c395d6b7ed8c3da0b118fa3226f1b411c50efc8
2016-09-05 10:34:08 +09:00
Hiroyuki Ikezoe 607cd13827 Bug 1254881 - Part 1: Introdue a new assertion to check a given animation is running on the compositor and output animation current time to log when it's failed. r=birtles
%s/assert_equals(\(.*\).isRunningOnCompositor, omtaEnabled,/assert_animation_is_running_on_compositor(\1,/g

MozReview-Commit-ID: 8gAiTyRTAw2

--HG--
extra : rebase_source : b5c6d4b73c8655c5110a707932a51d5e8e80c0a3
2016-09-05 10:32:33 +09:00
Brian Birtles 48f29038db Bug 1300045 part 2 - Split KeyframeEffect.cpp into KeyframeEffect{ReadOnly}.cpp r=hiro,smaug
MozReview-Commit-ID: DdBEicunApv

--HG--
rename : dom/animation/KeyframeEffect.cpp => dom/animation/KeyframeEffectReadOnly.cpp
rename : dom/animation/KeyframeEffect.h => dom/animation/KeyframeEffectReadOnly.h
extra : rebase_source : 70063d8ba09c9c457f22771e9b514ddc9fee1612
2016-09-04 16:34:21 +09:00
Brian Birtles 732a6955f2 Bug 1300045 part 1 - Tidy up some missing includes r=hiro
I came across these while working on a different bug that changed the grouping
in the unified build. Adding these as a separate step will hopefully remove a
little noise from the next patch in the series.

MozReview-Commit-ID: Km7wTcVWG9n

--HG--
extra : rebase_source : 0610add67482c1a5aa7c4f576e151ed9437698c0
2016-09-04 16:33:38 +09:00
Brian Birtles dbdadee2fc Bug 1299695 - Rework animation phase and fill mode handling r=hiro
This reflects the following updates to the spec:

  9369384f6c

MozReview-Commit-ID: JYUOZcnPEJQ

--HG--
extra : rebase_source : 88e012f19b875d8e718770772189737e2c17ddaa
2016-09-01 10:57:55 +09:00
Boris Chiou 6e4b0037dd Bug 1298742 - Part 3: Avoid to request a restyle in SetAnimation(). r=birtles
After updating a new animation, I think we don't need to request a restyle for
the new animation because:
1. CSS Animation & CSS Transition: we don't need to request a restyle.
2. Animation constructor: we don't need to request a restyle.
2. Animation.effect: we call PostUpdate() after SetEffectNoUpdate() already.

MozReview-Commit-ID: HrUGBrbt7xi

--HG--
extra : rebase_source : 0c2574be26bade3b17a31da361d24333f6409689
2016-08-30 17:56:21 +08:00
Boris Chiou f736a7f384 Bug 1298742 - Part 2: Make sure UpdateRelevance() is called before NotifyAnimationTimingUpdated. r=hiro
MozReview-Commit-ID: Ki0Aqhgl1dO

--HG--
extra : rebase_source : 5dbfa13c63390364d581b649b18e25ceea8e7a15
2016-08-29 16:22:46 +08:00
Boris Chiou 8bb94c4499 Bug 1298742 - Part 1: Factor out MarkCascadeUpdate(). r=hiro
We mark the cascade update many times, so it's better to factor it out.

MozReview-Commit-ID: HbE980gOJ9M

--HG--
extra : rebase_source : a76dfc489f378c5bd7e711f296d0599ecf2322c5
2016-08-29 18:46:07 +08:00
Ryan VanderMeulen 8880c22504 Merge m-c to autoland. a=merge 2016-08-31 09:55:10 -04:00
Nicholas Nethercote fb96bf1f91 Bug 1298722 - Use MOZ_MUST_USE in StyleAnimationValue. r=birtles.
--HG--
extra : rebase_source : c5b8cca624b9ffa7b3263b1aa7ce4f64dd80f13b
2016-08-30 16:10:59 +10:00
Hiroyuki Ikezoe e1bd66d4f8 Bug 1298755 - Part 2: Drop ResetWinsInCascade in KeyframeEffect::SetTarget() since it has no effect. r=birtles
The purpose of ResetWinsInCascade() in SetTarget() ensures that
RequestRestyle(Layer) is invoked for the new target in the case when
composite order or CSS cascading or order is changed due to chaging target
element, but RequestRestyle(Layer) will be called right after setting
the new target in SetTarget() explicitly.

MozReview-Commit-ID: 1cFJCAEEroP

--HG--
extra : rebase_source : c3008ef15d0328466f77015020c5148ef2ad07c6
2016-08-31 13:58:05 +09:00
Hiroyuki Ikezoe 5de380d415 Bug 1298755 - Part 1: Automation tests to check results after changing composite order caused by changing target element. r=birtles
MozReview-Commit-ID: 9sTA8uOZRZW

--HG--
extra : rebase_source : ff547437797581e17459bca63856139dd83db63c
2016-08-31 13:58:00 +09:00
Satoshi Kojima a779decd56 Bug 1298571 - Add test cases for bug 1293806 r=hiro
MozReview-Commit-ID: 7pqjv3w1pbM

--HG--
extra : rebase_source : 82438ade0722d881a5d716eecf822f69388f6984
2016-08-29 17:40:42 +09:00
Ryan VanderMeulen 416afe2f23 Merge inbound to m-c. a=merge 2016-08-29 12:48:10 -04:00
Takashi Kawanaka 491499da43 Bug 1291061 - Pass const StyleAnimationValue& to CreateStyleContextForAnimationValue r=birtles
MozReview-Commit-ID: 6PJzBBWSgwQ
2016-08-27 15:27:38 +09:00
Yusuke Endho 0f4c1508cb Bug 1297000 - Modify comparison of zero TimeDuration to use TimeDuration object rather than converting to milliseconds; r=birtles
MozReview-Commit-ID: DIccqtDb91u
2016-08-27 16:53:33 +09:00
Satoshi Kojima 404d9a3eee Bug 1295866 : remove special handling for easing "function (a){return a}" r=birtles
MozReview-Commit-ID: GKUkslGGcDl

--HG--
extra : rebase_source : 3aa1603dbe33bad5678568c59f6e9ae4dfc3e6c6
2016-08-27 12:01:16 +09:00
shundroid 681ce6a486 Bug 1289928 - Drop nsStyleContext* argument from BuildSegmentsFromValueEntries r=hiro
MozReview-Commit-ID: KxyTVGaePjT

--HG--
extra : rebase_source : 23ba662f141c6e5b3fdeeaab1745eae49e4dea3a
2016-08-27 12:41:02 +09:00
Boris Chiou 464991d55e Bug 1049975 - Part 12: Test for running on the compositor when effects are changed. r=hiro
MozReview-Commit-ID: H4WoIdn1nNL

--HG--
extra : rebase_source : 219267dc6408adac4249b9387c5617bdb99a4c84
2016-07-18 16:38:43 +08:00
Boris Chiou 9ca8c808df Bug 1049975 - Part 11: Fix mutation observer when setting effects. r=birtles
MozReview-Commit-ID: 3td2343LFxX

--HG--
extra : rebase_source : 5bef088200975a09663803d2616adb7bd3fe2e2b
2016-08-16 20:00:35 +08:00
Boris Chiou 92bf15ed7b Bug 1049975 - Part 10: Test for writable effect. r=birtles
MozReview-Commit-ID: 2hMY2barRb9

--HG--
extra : rebase_source : 87756ac3bcbbd604a50c280f33b3e3b8169b285d
2016-07-14 17:16:18 +08:00
Boris Chiou 7b026ef179 Bug 1049975 - Part 9: Implement writable Animation effect. r=birtles
MozReview-Commit-ID: 1dwHpcYJto3

--HG--
extra : rebase_source : 0dba49f8e12c5ed9d3214744a186b8fe6923f48e
2016-07-13 18:44:19 +08:00
Boris Chiou 4ce153a3de Bug 1049975 - Part 8: Use AnimationEffectReadOnly as the argument type of Animation constructor. r=birtles,smaug
MozReview-Commit-ID: 2qoZQuQAweF

--HG--
extra : rebase_source : d6b925bc0ccb93ff7e342ce10627368f8def3d88
2016-08-16 16:48:55 +08:00
Boris Chiou 36ebd2df08 Bug 1049975 - Part 7: Add SetEffectNoUpdate. r=birtles
Use SetEffectNoUpdate() for the procedure of setting effect, and let SetEffect()
also calls PostUpdate(), so we can use SetEffectNoUpdate() if we don't want to
call RequestRestyle(RestyleType::layer).

MozReview-Commit-ID: CaWA34UebpH

--HG--
extra : rebase_source : d29f5ddc0b8e069293a4a69f0e821786a2c5a84a
2016-08-24 14:36:14 +08:00
Boris Chiou 89374c49c6 Bug 1049975 - Part 6: Factor out the procedure of resetting an animation's pending tasks. r=birtles
Both Cancel() and SetEffect() need the procedure of "Reset an animation's
pending tasks", so factor it out and then we can reuse it.

MozReview-Commit-ID: C7Q5kF9aPrV

--HG--
extra : rebase_source : b3d98a739d51db91f8c45139e9add651af4adeae
2016-07-15 17:17:25 +08:00
Boris Chiou 302c927139 Bug 1049975 - Part 5: Move timing related code into AnimationEffectReadOnly. r=birtles
Move the mTiming, mAnimation, and the implementaion of timing into
AnimationEffectReadOnly.

MozReview-Commit-ID: EZhlbphVvCo

--HG--
extra : rebase_source : 4aa4821304671a8dfc6feb047ab20b26ef2d6b11
2016-07-25 18:27:33 +08:00
Boris Chiou 623caf07af Bug 1049975 - Part 4: Merge two Animation::SetEffect()s. r=birtles
This is a pre-patch for part 5, which is trying to make our code closer to the
spec. Some methods in KeyframeEffectReadOnly belong to AnimationEffectReadOnly,
so first, use AsKeyframeEffect() to access those keyframe-related methods, and
then add virtual methods for timing-related methods to AnimationEffectReadOnly.

MozReview-Commit-ID: 1srA1f8JYeN

--HG--
extra : rebase_source : 99a06e20a63b9c8b179fa8501690abf01271aaf4
2016-07-25 16:56:34 +08:00
Boris Chiou f4a21de35a Bug 1049975 - Part 3: Handle removed/replaced effect for CSS Transition. r=birtles
Add mTransitionProperty and mTransitionToValue into CSSTransition, so we can
retrieve the original property and ToValue after setting a different effect.

MozReview-Commit-ID: 6sBGHkPAhGX

--HG--
extra : rebase_source : 2b209bb5cd5513899774025e18fc39d5b8268846
2016-07-28 11:20:13 +08:00
Boris Chiou 3b4aa2e726 Bug 1049975 - Part 2: Make effect writable in Animation.webidl. r=smaug
MozReview-Commit-ID: HB4iWPXGkou

--HG--
extra : rebase_source : a2c5053aeb25872af66ea9b609b0ac05cdf96c85
2016-07-12 18:05:48 +08:00
Boris Chiou 238f6f1f58 Bug 1049975 - Part 1: Support null effect. r=birtles
MozReview-Commit-ID: 7ougqvbIVuD

--HG--
extra : rebase_source : 92f4095c7fb5ebcd555a2c2305a7db06024e2984
2016-07-12 11:42:49 +08:00
Boris Chiou 1c36938ba6 Bug 1290535 - Part 2: Add test. r=hiro
MozReview-Commit-ID: 8qDnF8RdXFF

--HG--
extra : rebase_source : 7322910400b38120a1ff0dde8bb95cb01affde13
2016-08-19 14:13:00 +08:00
Boris Chiou 3564271f97 Bug 1290535 - Part 1: Sort paced subproperties before calculation. r=hiro
MozReview-Commit-ID: 9sEghbxLlzO

--HG--
extra : rebase_source : 25d738af1bf76f424d83af1ee988cf07c43c41f8
2016-08-19 12:21:22 +08:00
Brian Birtles 335980d902 Bug 1295842 part 2 - Don't overwrite the hold time when the previous current time is less than zero; r=hiro
This implements the spec change here: ee1577c959

MozReview-Commit-ID: 8XKaocLbrmL

--HG--
extra : rebase_source : 18c402b0af7c21b8721ca796c054a3f58eb21a72
2016-08-19 11:35:16 +09:00
Brian Birtles 4bf632c00c Bug 1286476 part 2 - Respect the playback rate when calculating phase boundaries; r=hiro
This implements the spec change in 21de090dac

The spec change refers to a binary 'animation direction' flag. Instead of that,
however, we just pass the playback rate along and use it inside
GetComputedTimingAt since this seems simpler.

Also, this patch moves the implementation of
KeyframeEffectReadOnly::GetComputedTiming from the header file into the .cpp
file. This is because with this change, GetComputedTiming needs to call
mAnimation->PlaybackRate() and so mozilla::dom::Animation needs to be a complete
type. However, simply including Animation.h doesn't work because of a cyclic
dependency between KeyframeEffect.h and Animation.h. We might be able to fix
this later but since yet-to-land bug 1049975 moves this code around a lot, I'd
rather not touch it too much just now.

MozReview-Commit-ID: 1h6XRh4xmfI
2016-08-17 08:28:41 +09:00
Wes Kocher b7ea1393f2 Backed out 3 changesets (bug 1286476) for frequent windows wpt failures in phases-and-states.html CLOSED TREE
Backed out changeset 53bbfa02d45d (bug 1286476)
Backed out changeset 3947ab570883 (bug 1286476)
Backed out changeset ffd8c37eb695 (bug 1286476)
2016-08-17 10:41:46 -07:00
Wes Kocher c84ec3b3f3 Merge m-c to inbound, a=merge 2016-08-16 22:06:58 -07:00
Jonathan Chan b35975ec17 Bug 1293739 - Part 2: Rename nsCSSPropertySet to nsCSSPropertyIDSet. r=dholbert
The previous patch in this series renamed nsCSSProperty to nsCSSPropertyID.
This patch renames nsCSSPropertySet to nsCSSPropertyIDSet accordingly.

This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSPropertySet\b/nsCSSPropertyIDSet/g' -i''

Then:

  hg mv layout/style/nsCSSPropertySet.h layout/style/nsCSSPropertyIDSet.h

... and finally, manually renaming nsCSSPropertySet in the include guard in
nsCSSPropertyIDSet.h.

(NOTE: Re-landing this patch on a CLOSED TREE to correctly-address the merge bustage that closed the tree.)

MozReview-Commit-ID: ASUNs7FWbKP

--HG--
rename : layout/style/nsCSSPropertySet.h => layout/style/nsCSSPropertyIDSet.h
2016-08-16 18:46:58 -07:00
Jonathan Chan 4b87f11bd9 Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA

--HG--
rename : layout/style/nsCSSProperty.h => layout/style/nsCSSPropertyID.h
2016-08-16 18:37:48 -07:00
Gregory Szorc 1794619188 Backed out changesets dcdb85fc5517, 702bca0deee2, 9cKX8gC1ATA (bug 1293739) for build bustage; a=bustage
The merge from inbound to central conflicted with the merge from
autoland to central, it appears. Per tree rules, the commit from the
autoland repo wins and the inbound commit gets backed out.

CLOSED TREE

--HG--
extra : amend_source : 927e1cdfa8e55ccbd873d404d905caf6871c8c4f
extra : histedit_source : 07095868c3f767258e1d7d2645193bf4811b13bb%2Ca49ae5a28bf6e67298b6208ee9254c25a2539712
2016-08-16 17:50:40 -07:00
Wes Kocher 48b8d407c8 Merge inbound to central, a=merge
a=release to get around the webidl hook for a comment-only change

--HG--
extra : amend_source : f7e57101e1a25d3cf3536a256898ec2a21c54b38
2016-08-16 17:05:30 -07:00
Daisuke Akatsuka b179aa1d62 Bug 1277433 - Part 4: Add CSS Animation tests. r=birtles
MozReview-Commit-ID: 12CdohazBTS

--HG--
extra : rebase_source : 87a6e17b33241d3db230137f4478357df5a8d4f0
2016-08-16 14:30:15 +09:00
Daisuke Akatsuka 095d7039ae Bug 1277433 - Part 1: Use discrete animation for appropriate CSS Alignment properties. r=dholbert,heycam
MozReview-Commit-ID: BHtzuwJOuB5

--HG--
extra : rebase_source : 975720e6ce68743ab8915a62f8f8cda48ee69340
2016-08-16 14:29:21 +09:00
Boris Chiou 2721920a34 Bug 1293106 - Ignore 'spacing' if dom.animations-api.core.enabled is false. r=birtles
MozReview-Commit-ID: K7hbCjLP6vB

--HG--
extra : rebase_source : 0e774faec05527c2267ae1df48db55856b6b6c75
2016-08-10 17:58:49 +08:00
Jonathan Chan 4ffd49c097 Bug 1293739 - Part 2: Rename nsCSSPropertySet to nsCSSPropertyIDSet. r=dholbert
The previous patch in this series renamed nsCSSProperty to nsCSSPropertyID.
This patch renames nsCSSPropertySet to nsCSSPropertyIDSet accordingly.

This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSPropertySet\b/nsCSSPropertyIDSet/g' -i''

Then:

  hg mv layout/style/nsCSSPropertySet.h layout/style/nsCSSPropertyIDSet.h

... and finally, manually renaming nsCSSPropertySet in the include guard in
nsCSSPropertyIDSet.h.

MozReview-Commit-ID: ASUNs7FWbKP

--HG--
rename : layout/style/nsCSSPropertySet.h => layout/style/nsCSSPropertyIDSet.h
2016-08-09 16:28:21 -07:00
Jonathan Chan 9c62a2c11c Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA

--HG--
rename : layout/style/nsCSSProperty.h => layout/style/nsCSSPropertyID.h
2016-08-09 16:28:19 -07:00
Brian Birtles eac25e3163 Bug 1286476 part 2 - Respect the playback rate when calculating phase boundaries; r=hiro
This implements the spec change in 21de090dac

The spec change refers to a binary 'animation direction' flag. Instead of that,
however, we just pass the playback rate along and use it inside
GetComputedTimingAt since this seems simpler.

Also, this patch moves the implementation of
KeyframeEffectReadOnly::GetComputedTiming from the header file into the .cpp
file. This is because with this change, GetComputedTiming needs to call
mAnimation->PlaybackRate() and so mozilla::dom::Animation needs to be a complete
type. However, simply including Animation.h doesn't work because of a cyclic
dependency between KeyframeEffect.h and Animation.h. We might be able to fix
this later but since yet-to-land bug 1049975 moves this code around a lot, I'd
rather not touch it too much just now.

MozReview-Commit-ID: 1h6XRh4xmfI
2016-08-17 08:28:41 +09:00
Brian Birtles 0d8b0d4fda Bug 1291665 - Unregister from refresh driver in DocumentTimeline::Unlink; r=hiro 2016-08-17 09:53:22 +09:00
Cameron McCormack 4a1bd90eff Comment grammar fix; no bug (DONTBUILD). r=sbaratheon
MozReview-Commit-ID: 2pNBAS1oeSN
2016-08-09 15:10:57 +08:00
Matt Woodrow b18018a706 Bug 1282312 - Part 3: Add test for disabling of async animations with rendering observers. r=hiro 2016-07-29 17:59:02 +12:00
Matt Woodrow 0a403df2cb Bug 1282312 - Part 2: Disable async animations when we have rendering observers. r=bbirtles 2016-07-29 17:58:32 +12:00
Daisuke Akatsuka 4f153efd27 Bug 1264865 - Part 3: Remove codes that are no longer in use. r=birtles
MozReview-Commit-ID: Dhrco8madlz

--HG--
extra : rebase_source : b26d9d25c2dd54f7ec0e12dd51127229cb085346
2016-07-27 10:13:17 +09:00
Daisuke Akatsuka 92b6c55c8d Bug 1264865 - Part 1: steps(3, end) should serialize using the shorter steps(3) syntax. r=birtles
MozReview-Commit-ID: HBukw3qjyrr

--HG--
extra : rebase_source : 53bdcefc66cffa92c438bb3be794e6537533461c
2016-07-27 10:12:43 +09:00
Hiroyuki Ikezoe 9c3e690c9a Bug 1287725 - Drop KeyframeEffectReadOnly::HasAnimationOfProperties and nsLayoutUtils::HasCurrentAnimationsForProperties. r=birtles
MozReview-Commit-ID: K33ga7KpLIo

--HG--
extra : rebase_source : 57bc8f2edffb7e89ea790f5cc0fa6848770d1873
2016-07-26 06:44:11 +09:00
Boris Chiou a8ff634f84 Bug 1272475 - Part 2: Add crashtests and mochitests. r=heycam
MozReview-Commit-ID: A8CpiMLfa7Q

--HG--
extra : rebase_source : 5a9b2911c41e4c08249a9d85e95a8bb2fa906493
2016-07-20 16:00:36 +08:00
Carsten "Tomcat" Book 336105a0de merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Hiroyuki Ikezoe f8455c2c9a Bug 1288586 - Don't calculate style difference if there are no properties change. r=birtles
We don't actually need to re-calculate if the updated properties are the
same as the old one. This change avoids problematic nested calls of
nsStyleSet::GetContext() in particular cases.

MozReview-Commit-ID: JksiTGX57Fy
2016-07-22 15:17:37 +09:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Brian Birtles b3d639f650 Bug 1277456 part 6 - Use the composed document of the target effect (if any) when computing keyframe values; r=hiro
Previously, when fetching an nsPresShell, we would look up the current realm
document and get the pres shell for it. This patch makes us call GetPresShell()
which uses GetRenderedDocument() which corresponds to the composed document of
the target effect which seems more consistent since it is the target effect we
will use as context for computing CSS values (as required by [1]).

[1] https://w3c.github.io/web-animations/#calculating-computed-keyframes

MozReview-Commit-ID: 9S55041rfTp

--HG--
extra : rebase_source : c52d4c366d0a2891958c8f7378614a8feb5e7c70
2016-07-13 13:22:25 +09:00
Brian Birtles 7d054e7e89 Bug 1277456 part 5 - Pass the document associated with an AnimationEffectTiming/KeyframeEffect object to KeyframeUtils as the context to use when parsing CSS properties; r=hiro
Note that when we actually compute values, we will use the composed document of
the target element (see the next patch in this series).

MozReview-Commit-ID: 8Pp3y19pltP

--HG--
extra : rebase_source : bb1c21f3fdcf2e831213d2f278d70e4ca2637028
2016-07-13 13:22:25 +09:00
Brian Birtles dca0a51347 Bug 1277456 part 4 - Use the document associated with an AnimationEffectTiming object as the context for parsing easing rather than the current realm document; r=bz
MozReview-Commit-ID: 4LhbIUIz6Vd

--HG--
extra : rebase_source : 817d59a42876d2c28455fece896e0648fbff551e
2016-07-13 13:22:13 +09:00
Brian Birtles f0043df530 Bug 1277456 part 3 - Move set easing test to mozilla folder; r=hiro
There doesn't seem to be a need to have a separate 'sandbox' folder just for
this test. It's a Gecko-specific test so it can go in the 'mozilla' folder.

MozReview-Commit-ID: 340knfWtcD7

--HG--
rename : dom/animation/test/sandbox/test_set-easing.html => dom/animation/test/mozilla/test_set-easing.html
extra : rebase_source : 44a03425bbfee97a06d498224dcaa76b51c3b317
2016-07-13 13:02:28 +09:00
Brian Birtles 5998713466 Bug 1277456 part 2 - Store the parent document object of AnimationEffectTiming(ReadOnly) as nsIDocument instead of nsISupports; r=hiro
MozReview-Commit-ID: HOgkXaDVuH5

--HG--
extra : rebase_source : 7fa63e9ef0003f2dc22eb562dde99e0e927ed32c
2016-07-13 11:32:05 +09:00
Brian Birtles e58dbec808 Bug 1277456 part 1 - Store the parent document object of AnimationEffectReadOnly as an nsIDocument rather than nsISupports; r=hiro
MozReview-Commit-ID: 2GQvDB1rhoA

--HG--
extra : rebase_source : da96deb6fa82a84e3b4b3761bcebec3a65801ff4
2016-07-13 11:32:01 +09:00
Boris Chiou c16e36114d Bug 1286196 - Use the new constructor of Range<T> in KeyframeUtils. r=birtles
MozReview-Commit-ID: SRJFZfu7ps

--HG--
extra : rebase_source : 45c30649b575b313a3e1b3de87b483deccb4bcdf
2016-07-13 11:00:43 +08:00
Hiroyuki Ikezoe cf5206ec40 Bug 1278485 - Part 2: ComputedTimingFunction::GetValue ensures 0 or 1 on both edges. r=birtles
MozReview-Commit-ID: ABkcUhhZdbZ

--HG--
extra : rebase_source : fa55b85515abe54d8ac4387e606039d88d4dbce0
2016-07-12 16:33:45 +09:00
Hiroyuki Ikezoe 123f9c80bd Bug 1278485 - Part 1: Limit y1 and y2 control points for cubic-bezier to avoid overflows. r=birtles
MozReview-Commit-ID: Bls260r7Sqn

--HG--
extra : rebase_source : bd836b8bd0666ce5c387aeb91149587d93db386d
2016-07-12 16:24:42 +09:00
Hiroyuki Ikezoe 044369121c Bug 1285407 - Part 4: Drop EffectCompositor::MaybeUpdateCascadeResults(Element*, CSSPseudoElementType) because it's essentially the same as another one. r=birtles
MozReview-Commit-ID: 2Locox5zmP4

--HG--
extra : rebase_source : 8970da8d3081e959a6ceef84ae6dcaf65718f93e
2016-07-11 17:28:19 +09:00
Hiroyuki Ikezoe 770052aeaa Bug 1285407 - Part 2: We need to call MarkCascadeNeedsUpdate() when the style context is changed. r=birtles
MozReview-Commit-ID: 2z2HgSDzhLd

--HG--
extra : rebase_source : d16e7db0a79d393de63b11927a2bd5c8c97fa19c
2016-07-11 17:28:15 +09:00
Hiroyuki Ikezoe 495f6aae06 Bug 1285407 - Part 1: Pass a newly created nsStyleContext to GetAnimationRule and MaybeUpdateAnimationRule. r=birtles
While resolving style context, the primary frame of the target element
has previous style context so if we don't pass the newly created nsStyleContext,
UpdateCascadeResults uses the previous style to get overridden properties, it
will result unexpected cascading results.

MozReview-Commit-ID: osqXQlP43X

--HG--
extra : rebase_source : 1b34f9245367c2613807156559f09f5f2943458c
2016-07-11 17:28:14 +09:00
Hiroyuki Ikezoe d20c596b42 Bug 1279403 - Part 2: Set NS_FRAME_MAY_BE_TRANSFORMED bit if the target nsIFrame has transform when setting target or keyframes. r=birtles
MozReview-Commit-ID: InQyXpENsSY

--HG--
extra : rebase_source : f8eb4c9ea0495d60c92a214ab692df79cf428e85
2016-07-11 08:29:14 +09:00
Hiroyuki Ikezoe 685a35fbc5 Bug 1279403 - Part 1: Force to apply corresponding change hint if there is no corresponding layer to generate display item even if animation's segment is transform:none or 100% opacity. r=birtles
To create a stacking context for animations on transform:none segment,
we need to set NS_FRAME_MAY_BE_TRANSFORMED.  The fix is comming in part 2.

Note that in case of animations which has properties preventing running on
the compositor, e.g., width or height, corresponding layer is not created
at all, but even in such cases, we normally set valid change hint for such
animations in each tick, i.e. restyles in each tick. For example:

div.animate([{ opacity: 1, width: '100px' }, { opacity: 0, width: '200px' }], 1000);

This animation causes restyles in every ticks without this patch, this patch
does not affect such animations at all. The only animations which will be
affected by this patch are animations which has opacity/transform but
did not have those properies. e.g,  setting transform by setKeyframes or
changing target element from other target which prevents running on the
compositor, etc.

MozReview-Commit-ID: 78fYqyX8uDX

--HG--
extra : rebase_source : c4a6ef244f26f3d808fd2c6a5f80c1a15478ae31
2016-07-11 08:27:02 +09:00
Chris Peterson 43c2748f66 Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
Hiroyuki Ikezoe e5daa34c2a Bug 1278136 - Part 3: Test that animations with fill:backwards consumes the main-thread while it's in delay phase. r=birtles
MozReview-Commit-ID: 3dDGPfgOvJl

--HG--
extra : rebase_source : 2b3edce74e3a1b60598752c3a1727d77e55b7c8e
2016-07-08 13:02:44 +09:00
Hiroyuki Ikezoe 7cc7e32a9b Bug 1278136 - Part 0: Clean up frame->StyleDisplay()->BackfaceIsHidden() usage. r=mattwoodrow
We already have a wrapper named nsIFrame::BackfaceIsHidden().

MozReview-Commit-ID: 5L49W6wtXs1

--HG--
extra : rebase_source : d3be8d028453e63fb2d3d96b5956262d352385ef
2016-07-08 13:01:31 +09:00
Gregory Szorc f21ec324a6 Merge mozilla-central to mozilla-inbound 2016-07-06 18:30:58 -07:00
Brian Birtles e1cbd45efd Bug 1279819 - Copy keyframes array before iterating over it; r=hiro
MozReview-Commit-ID: KMacnQcFx9f
2016-07-06 13:55:30 +09:00
Boris Chiou ac7404da73 Bug 1283625 - Unlink timing object before nullifying it. r=birtles
MozReview-Commit-ID: 3eIAL77aDLV
2016-07-06 10:57:26 +08:00
Wes Kocher 057b582fd1 Merge inbound to central, a=merge 2016-07-05 17:04:04 -07:00
Hiroyuki Ikezoe 3dfafb3211 Bug 1264107 - Use shorter duration to avoid possibilities of overflow on TimeStamp calculations. r=birtles
If there is a possibility that long duration property causes overflow on
TimeStamp calculations, we should use shorter duration in our tests.

MozReview-Commit-ID: HJThoX80W4Y

--HG--
extra : rebase_source : 8986afa9a58d832e15194b8ea9533af380a127a4
2016-07-05 19:27:20 +09:00
Nathan Froyd 2c2b9296bc Bug 1283616 - part 2 - micro-optimize inserting microtask runnables into the queue; r=khuey
We can save an AddRef/Release pair by passing in the reference to the queue.
2016-07-05 18:49:06 -04:00
Carsten "Tomcat" Book fcff88e7a8 Merge mozilla-central to autoland 2016-07-01 11:20:25 +02:00
Mantaroh Yoshinaga cb3e27e060 Bug 1277272 - Add crashtests in dom/animation/tests/crash. r=birtles
MozReview-Commit-ID: 7Eqbt4qxYQe

--HG--
extra : rebase_source : 0803c934eaa264b4d34ceceb62822aa8281a77ae
2016-07-01 11:17:43 +09:00
Brian Birtles c42c3acc9a Bug 1283387 part 2 - Implement updated calculation of active time in after phase with negative end delay r=hiro
This implements the changes to the specified behavior from the following
changeset:

  a9ba51338e

It also updates test expectations based on the tests updated in part 1 of this
patch series.

MozReview-Commit-ID: HyJC8tHXLYc

--HG--
extra : rebase_source : 6d0f5eb03a2bb4c3938d79dfae7ee433d33fd2b1
2016-07-01 09:31:02 +09:00
Mantaroh Yoshinaga e17ee8c69e Bug 1284396 - Change GetParentObject return value. r=birtles
MozReview-Commit-ID: Rw0i2y4cc

--HG--
extra : rebase_source : 384a298b387f568a6854223c0d4fa24fca7ae32d
2016-07-06 09:20:29 +09:00
Mantaroh Yoshinaga e5f9ec2f98 Bug 1267510 part 6 - Add animation test of gecko dependent. r=birtles
MozReview-Commit-ID: 1ZnXUCECMiH

--HG--
extra : rebase_source : 0ba0ffd392da1eadcf10e22c55dcbf286b218508
2016-06-29 11:14:12 +09:00
Mantaroh Yoshinaga 8bc07a20e3 Bug 1267510 part 3 - Add DocumentTimeline constructor. r=birtles
MozReview-Commit-ID: CqqDlHQsm0p

--HG--
extra : rebase_source : 4495e289009af105b61413526ffd03200b5bee6b
2016-06-29 11:13:45 +09:00
Mantaroh Yoshinaga 943f1fd84b Bug 1267510 part 2 - Add origin time invariant to DocumentTimeline. r=birtles
MozReview-Commit-ID: Kf7PzzAH9Tj

--HG--
extra : rebase_source : 29f8eb0a6f3a624ff9c5af07f558bd5522847844
2016-06-29 10:59:35 +09:00
Boris Chiou 2768dbb547 Bug 1244590 - Part 9: Update spacing in SetTarget. r=birtles
Handle these cases:
1. When creating null-target effect whose spacing mode is "paced":
 - Fall back to distribute spacing. This case is already included by previous
   patches.

2. When setting a target to null:
 - Apply distribute spacing.

3. When style context is null.
 - Fall back to distribute spacing.

4. When setting a new valid target:
 - Use this new target as the context element and re-calculate the computed
   offsets. This case is already included by previous patches.

MozReview-Commit-ID: 1zhSOAylnZb

--HG--
extra : rebase_source : e2988f433f395a398090dc08f262b0154de3dc50
2016-05-11 15:34:58 +08:00
Boris Chiou 0a3a365c73 Bug 1244590 - Part 8: Rewrite GetStyleContext code. r=birtles
Do a simple refactor, so we can reuse the getter of nsStyleContext.

MozReview-Commit-ID: 4BQ7f8HuFns

--HG--
extra : rebase_source : 37bbf6af795484c5d80d308683e4fcdfe23c7a1a
2016-05-11 11:41:20 +08:00
Boris Chiou 34e916b2cb Bug 1244590 - Part 7: Calculate paced spacing. r=birtles
Calculate the paced spacing for each Keyframes by the context element. Use the
algorithm in the spec.

MozReview-Commit-ID: HFWQwoKhKWt

--HG--
extra : rebase_source : 40112eb1f722179cfc0a4ccbd188e22bc7af9b9b
2016-05-27 18:09:06 +08:00
Boris Chiou 95267f5a26 Bug 1244590 - Part 6: Refactor the calculation of StyleAnimationValue. r=birtles
We want to reuse the StyleAnimationValues of properties of each keyframe when
applying spacing and building animation property segments, so refactor this
part.

MozReview-Commit-ID: 8G56C3BU3FR

--HG--
extra : rebase_source : 73b6d374ac8bd25645d1b1b2f15f4e778b3ec949
2016-05-25 17:10:53 +08:00
Boris Chiou 10a18165f4 Bug 1244590 - Part 5: Make the default value of computed offsets be -1. r=birtles
When we apply paced spacing, we have to check if there are still null computed
offsets after applying paced spacing to paceable Keyframes because the
calculation of distance may be failed or some Keyframes are not paceable in
the specific range. Therefore, using -1 would be easier to check it.
Also, add a const, kComputedOffsetNotSet, to represent this invalid value.

MozReview-Commit-ID: GPhj7cdiX2W

--HG--
extra : rebase_source : 8c4e7769c454fe50eb1cc08db63866dcc4ed62e5
2016-05-12 16:00:47 +08:00
Boris Chiou 8c0079ef08 Bug 1244590 - Part 4: Rewrite ApplyDistributeSpacing. r=birtles
Rename it to ApplySpacing, and let it handle both distribute and paced mode.

MozReview-Commit-ID: 2kGA6LMHUsz

--HG--
extra : rebase_source : ebd5566392b1ea6a4a445ff7c3ed81cdc94bdded
2016-05-10 17:40:53 +08:00
Boris Chiou 03d90dd78b Bug 1244590 - Part 3: Parse spacing. r=birtles
We only support spacing mode from Web Animations API, so add a simple parser and
use it only from the API. In this patch, parse spacing mode from the constructor
and throw TypeError if we have any parse error.

MozReview-Commit-ID: 9H7g80IcZfZ

--HG--
extra : rebase_source : e1bc781ff0f20a1a38c04e672832ec013edc549d
2016-05-13 16:38:25 +08:00
Boris Chiou 09edce9d1d Bug 1244590 - Part 2: Retrieve KeyframeEffectOptions from constructor. r=birtles
MozReview-Commit-ID: DtkJ6eLj4tl

--HG--
extra : rebase_source : 77d4fc6a22d2504191c81bba0bbc72387e65ba2a
2016-05-05 18:50:16 +08:00
Boris Chiou c55ea50fab Bug 1244590 - Part 1: Introduce KeyframeEffectParams. r=birtles
Add a new file, KeyframeEffectParams.h, and define the basic data
members nsString for the spacing mode.
Also, add one more argument, const KeyframeEffectParams&, to the
constructors of KeyframeEffect(ReadOnly).

MozReview-Commit-ID: I7LYlnv6LLb

--HG--
extra : rebase_source : 9aebb7b9659588674c2a954eb2ce62c827bc9830
2016-05-05 15:41:03 +08:00
Brian Birtles 7dbb4e5cf3 Bug 1276688 part 2 - Add tests for entries array handling when ComputeValues fails; r=heycam, r=smaug
MozReview-Commit-ID: DIQyt7f91an
2016-06-28 16:10:10 +09:00
Wes Kocher cd463132d8 Backed out 8 changesets (bug 1267510) for causing unacceptably frequent failures in animation mochitests a=backout
Backed out changeset 2a2c42608ff0 (bug 1267510)
Backed out changeset 4cdb7f5b6f7c (bug 1267510)
Backed out changeset e89ec30077a0 (bug 1267510)
Backed out changeset 884243ce4287 (bug 1267510)
Backed out changeset 130a231c5acc (bug 1267510)
Backed out changeset 1ace442f6123 (bug 1267510)
Backed out changeset 058ad3199edb (bug 1267510)
Backed out changeset a7d18185f28d (bug 1267510)

--HG--
rename : testing/web-platform/tests/web-animations/timing-model/timelines/default-document-timeline.html => testing/web-platform/tests/web-animations/interfaces/AnimationTimeline/document-timeline.html
rename : testing/web-platform/tests/web-animations/interfaces/DocumentTimeline/idlharness.html => testing/web-platform/tests/web-animations/interfaces/AnimationTimeline/idlharness.html
2016-06-27 11:49:06 -07:00
Mantaroh Yoshinaga 34329c9de8 Bug 1267510 part 6 - Add animation test of gecko dependent. r=birtles
MozReview-Commit-ID: 1ZnXUCECMiH

--HG--
extra : rebase_source : 8614f8416b005e9a8157427e6d31427461e4431f
2016-06-27 08:09:32 +09:00
Mantaroh Yoshinaga 5b4de2dcff Bug 1267510 part 3 - Add DocumentTimeline constructor. r=birtles
MozReview-Commit-ID: CqqDlHQsm0p

--HG--
extra : rebase_source : 6f6f4583ffa57a4375af62c64a76081902b1f361
2016-06-27 08:09:32 +09:00
Mantaroh Yoshinaga a9ead4dd43 Bug 1267510 part 2 - Add origin time invariant to DocumentTimeline. r=birtles
MozReview-Commit-ID: Kf7PzzAH9Tj

--HG--
extra : rebase_source : 1cb1ff9f06c778d55f8a4a6beedccba946a31fbc
2016-06-27 08:09:31 +09:00
Mantaroh Yoshinaga 6ef497660b Bug 1277272 - Remove RefreshObserver when removing animation from timeline. r=birtles
MozReview-Commit-ID: DGSHye0lmdm
2016-06-23 13:09:03 +09:00
Jonathan Watt b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Brian Birtles 5aaca3d44e Bug 1276688 part 1 - Handle entries arrays where we don't have a property value at the 0.0/1.0 offset; r=heycam
MozReview-Commit-ID: GCCF4taOC6z

--HG--
extra : rebase_source : b2238ce7aa1fde865810ca70774d51cd1f5b7c8b
2016-06-09 08:12:52 +09:00
Daisuke Akatsuka 0a07587d3c Bug 1275449 - Part 2: Add a test. r=hiro
MozReview-Commit-ID: 2Cv806FSBU6

--HG--
extra : transplant_source : 0%1C%DFd%D1%7C%EC%15%89h%87j%FE%06%83o%05l%5E%C5
2016-06-01 17:49:01 +09:00
Daisuke Akatsuka 4471abc361 Bug 1275449 - Part 1: AnimationEffectTiming::SetEasing crash in page-mode addon context. r=hiro
MozReview-Commit-ID: DeyC4BiXJNo

--HG--
extra : transplant_source : %AE6%85a_%96%F6%A0%E3%3B%20g%07%14%CF%8F%F2%CA%D7o
2016-06-01 17:40:11 +09:00
Hiroyuki Ikezoe 9e39dd8938 Bug 1273042 - Part 1: Use StyleContext()->GetPseudoType() to obtain CSSPseudoElementType for the nsIFrame. r=birtles
Before this patch, we could't use EffectSet::GetEffectSet(nsIFrame*) until
the target content associated with the nsIFrame has a primary frame since
nsLayoutUtils::GetStyleFrame(nsIContent*) needs the primary frame.

In this patch, StyleContext()->GetPseudoType() is used for obtaining
CSSPseudoElementType instread of content->NodeInfo()->NameAtom().
As a result, we don't need to care about whether the content has a
primary frame or not.
2016-06-01 16:24:34 +09:00
Mantaroh Yoshinaga 714d7d715a Bug 1178662 part 7 - Remove relationship of timeline and animation when setting new timeline. r=birtles
If we run following code, content process will crash.
------
anim1.timeline = timeline;
anim2.timeline = document.timeline;
anim2.timeline = timeline;
------

The AnimationTimeline has LinkedList variant. (called mAnimationOrder) And Animation is sub-class of LinkedListElement.
We will create the relationship of AnimationTimeline and Animation when calling the AnimationTimeline::NotifyAnimationUpdated. However we didn't remove these relation ship when setting new timeline.
So we should remove these relationship when setting new timeline object.

MozReview-Commit-ID: RDyranduTA

--HG--
extra : rebase_source : 1f080ad80f258162e94f80470a7464e2a9bb033b
2016-05-31 09:42:38 +09:00
Mantaroh Yoshinaga 1ef08e6b64 Bug 1178662 part 4 - Implement the setting timeline procedure. r=birtles
This is implementation of 'Setting the timeline of an animation'.[1]

[1] https://w3c.github.io/web-animations/#setting-the-timeline

MozReview-Commit-ID: A5YMXhkxHjr

--HG--
extra : rebase_source : 73e4fdc9ee98bf756267a05a2336a2c51517cf34
2016-05-31 09:42:37 +09:00
Mantaroh Yoshinaga dc5df46a62 Bug 1178662 part 3 - Separate SetTimeline function in order to call from style. r=birtles
MozReview-Commit-ID: 9KbsbPuAMW7

--HG--
extra : rebase_source : 873b35cf4dccc4d7fd604894dd2b97ad40b8a1fa
2016-05-31 09:42:37 +09:00
Mantaroh Yoshinaga 9bd12e4b64 Bug 1178662 part 2 - Rename *NoUpdate function in Animation. r=birtles
MozReview-Commit-ID: 6P8pze62IYq

--HG--
extra : rebase_source : 16c1e3cf0fcbf93a46b05ea83ad7af40bdcf5741
2016-05-31 09:42:37 +09:00
Daisuke Akatsuka 4f6eba3af3 Bug 1272211 - Part 1: Make timeline argument of Animation constructor default to the document timeline of the active document. r=birtles, r=smaug
MozReview-Commit-ID: KUsQF5bryg8

--HG--
extra : rebase_source : 5adf35011db8a64a30fc782ef29707f7070f207e
2016-05-30 09:01:11 +09:00
Chris Peterson 8021dc9a73 Bug 1275475 - Fix -Wlogical-op warning in dom/animation/ComputedTimingFunction.cpp. r=daisuke
dom/animation/ComputedTimingFunction.cpp:33:114 [-Wlogical-op] logical 'or' of collectively exhaustive tests is always true

--HG--
extra : rebase_source : eaafc588d999c8653cbe8632f1e6ee232f34ae10
2016-05-22 21:02:12 -07:00
Hiroyuki Ikezoe fc371e8226 Bug 1166500 - Part 11: Add a preference for offscreen throttling. r=dbaron
MozReview-Commit-ID: AD34RTVZcxy
2016-05-24 12:57:43 +09:00
Hiroyuki Ikezoe f2c5a700c9 Bug 1166500 - Part 10: Test throttling and unthrottling of paint-only animations on elements that are scrolled out of view. r=dbaron 2016-05-24 12:57:43 +09:00
Hiroyuki Ikezoe 8a1eb78fd4 Bug 1166500 - Part 9: onFrame process should be called even if frameCount is 1. r=birtles 2016-05-24 12:57:43 +09:00
Hiroyuki Ikezoe dafe11f343 Bug 1166500 - Part 8: Now automation tests for bug 1166500 can pass expect on Android. r=birtles 2016-05-24 12:57:43 +09:00
Hiroyuki Ikezoe b2888c83cd Bug 1166500 - Part 7: Throttle paint-only animations if the presShell is not active. r=dbaron 2016-05-24 12:57:43 +09:00
Hiroyuki Ikezoe f4e8a9f94a Bug 1166500 - Part 6: Throttle paint-only animations on element which is out of view. r=dbaron 2016-05-24 12:57:43 +09:00
Hiroyuki Ikezoe eec4931934 Bug 1166500 - Part 3: Add KeyframeEffectReadOnly::CanIgnoreIfNotVisible(). r=dbaron 2016-05-24 12:57:42 +09:00
Hiroyuki Ikezoe caa5bb7b54 Bug 1166500 - Part 2: Calculate cumulative change hint. r=dbaron
In order to raise an assertion in CanIgnoreIfNotVisible() which will be
introduced in part 3 when the cumulative hint is not properly, we should skip
the calculation when mProperties is empty.
2016-05-24 12:57:42 +09:00
Hiroyuki Ikezoe ad26dd6ea3 Bug 1166500 - Part 1: Store change hints between from and to for each animation segment. r=dbaron
BuildSegmentsFromValueEntries now needs base nsStyleContext to calculate
the change hints.
If the change hint is not set correctly, we will check it in
CanIgnoreIfNotVisible() introduced in a subsequent patch (part 3).
2016-05-24 12:57:42 +09:00
Hiroyuki Ikezoe 570b519733 Bug 1247800 - Run restyle test for opacity animations in visbility:hidden elements on Android. r=birtles
MozReview-Commit-ID: 5BFWiWelgx1

--HG--
extra : rebase_source : 8f3abba674ec176e71fe8d974a16d18755b18742
2016-05-23 14:57:26 +09:00
Mantaroh Yoshinaga 15ce3c0751 Bug 1096776 part 2 - Modify animation in order to support null timeline. r=birtles
MozReview-Commit-ID: 5iKUtNuqKeX

--HG--
extra : rebase_source : 1c228c136140e1b08355a467578ba6d2ea9c850e
2016-05-23 08:23:14 +09:00
Hiroyuki Ikezoe f2fedee579 Bug 1267251 - Change message IDs for animation warnings. r=birtles,pbro
MozReview-Commit-ID: Fb93m5xt1Ey

--HG--
extra : rebase_source : 4c345a6ec8003df4665fe1318695e4ed820bba31
2016-05-19 13:06:27 +09:00
Ryo Kato 34b9895d54 Bug 1272204 - Rewrite tests in test_animation_performance_warning.html to use setKeyframes r=hiro
* Some tests in gAnimationsTests are moved to gAnimationWithGeometricKeyframeTests.
* `expected.withoutGeometric` represents expected values where 'width' is *not* applied.
* `expected.withGeometric` represents exptected values where 'width' is applied.

MozReview-Commit-ID: 6PJttztMGxI

--HG--
extra : amend_source : 5592317764ff5a9a3db44e7be9073ff426370224
2016-05-17 15:08:29 +09:00
Mantaroh Yoshinaga 340fd8c155 Bug 1134163 - Part4. Add tests of getComputedStyle with seeking. r=birtles
MozReview-Commit-ID: 364RmM8QNWQ
2016-05-18 14:14:15 +09:00
Brian Birtles 5d0853aef8 Backed out changeset 551e75373ed1 (Bug 1134163) for introducing a new intermittent failure on a CLOSED TREE
--HG--
extra : amend_source : d2df25809dafadf63769bb904939d31c03afa0bb
2016-05-18 12:53:26 +09:00
Mantaroh Yoshinaga a98b4f8acf Bug 1134163 - Part4. Add tests of getComputedStyle with seeking. r=birtles
MozReview-Commit-ID: 6JcjLnjJkOI

--HG--
extra : rebase_source : 21c935f55d85a468787769dfe2b83cff320d22ce
2016-05-16 15:29:09 +09:00
Mantaroh Yoshinaga 6e75ea71ce Bug 1134163 - Part3. Modify the currentTime and startTime tests. r=birtles
I modified several tests which related animationstart event delay.

animation-starttime and animation-currenttime tests:
 - Moved the getComputedStyle tests to test/style.
 - Removed the animation.playState tests. This tests contained by playState tests of web-platform-tests.
 - Lining common function. (e.g. calculating current/start time. etc)

MozReview-Commit-ID: 9kD9ZR1KxGv

--HG--
extra : rebase_source : 26e37568769fd4e939ebbde36d8b4af5ad4d2658
2016-05-16 15:29:09 +09:00
Brian Birtles b7858fac74 Bug 1264822 part 4 - Ignore shorthand properties when all their subproperties are not-animatable; r=hiro
This patch also includes a tweak to not-animatable.html to match the order in
which properties are enumerated on the object. This test was always in error but
we never noticed since the test failed before reaching the test in question.

Making the test dependent on the order in which object properties is enumerated
is not good but we will remove this test in the next patch. In this patch we
just make sure it passes.

MozReview-Commit-ID: AKXdHj4nUMv

--HG--
extra : rebase_source : 64270ae9d9cf68cdf534baaf198583fb1974025c
2016-05-17 14:09:11 +09:00
Hiroyuki Ikezoe 00e2f46aeb Bug 1268385 - Clear isRunningOnCompositor for script animations if associated nsIFrame is destroyed. r=birtles
MozReview-Commit-ID: 3tTkDtxkHcT

--HG--
extra : rebase_source : 388f548cb30f5384cceb620a595dd10b5fd22e4e
2016-05-16 16:25:46 +09:00
Chris Peterson 8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Brian Birtles e05007f59e Bug 1268858 part 5 - Add tests that getProperties() returns the correct result for CSS variables; r=heycam
MozReview-Commit-ID: D0t1CFaa7DZ
2016-05-13 11:56:10 +09:00
Brian Birtles f85abe7efb Bug 1268858 part 4 - Add tests that getKeyframes() returns the correct result when CSS variables are used; r=heycam
MozReview-Commit-ID: BZrd3FAhrrf
2016-05-13 11:56:10 +09:00