Commit Graph

176559 Commits

Author SHA1 Message Date
Brian Birtles
917d2e24b6 Bug 880596 part 9 - Fix comment about mFlushCount; r=dbaron
Two comments in AnimationCommon.h refer to 'mFlushCount' which was presumably
the old name for mAnimationGeneration. Also, one comment says
nsCSSFrameConstructor tracks this. This patch adjusts the comments to refer
to mAnimationGeneration and RestyleManager.

(The reference to nsTransitionManager::UpdateAllThrottleStyles() is still valid
since there is useful documentation accompanying that method despite the fact
that the relevant code is mostly contained in AnimationCommon.h since bug
914847. Eventually we will unify the structures of transitions and
animations to the the point that we can replace the
IMPL_UPDATE_ALL_THROTTLED_STYLES_INTERNAL macro in AnimationCommon.h with an
actual method. At that point we can move the documentation accompanying
nsTransitionManager::UpdateAllThrottleStyles and its references to
AnimationCommon.)
2014-04-03 14:57:28 +09:00
Brian Birtles
ae6e60dda5 Bug 880596 part 8 - Rename ElementAnimation to StyleAnimation; r=dbaron
We need a basic representation of animations from which we can derive subclasses
to represent specific cases such as transitions. For now we will retrofit
ElementAnimation for that purpose hence renaming it to StyleAnimation.

This patch removes the "using namespace mozilla::layers" line from
AnimationCommon.cpp since the unified build system concatenates several files
together before compiling making using declarations like this leak into other
files potentially creating ambiguities. Previously, when we were calling
ElementAnimation, 'Animation', there were ambiguities between
mozilla::layers::Animation and this new 'Animation' class. In general, it is
probably a good idea to limit the scope of these using declarations so I've kept
that change.
2014-04-03 14:57:28 +09:00
Brian Birtles
095840cb6d Bug 880596 part 7 - Move ElementAnimation to AnimationCommon; r=dbaron
This patch relocates ElementAnimation from nsAnimationManager.{h,cpp} to
AnimationCommon.{h,cpp} and in the process moves it into the mozilla::css
namespace.
2014-04-03 14:57:28 +09:00
Brian Birtles
c4ffbc205d Bug 880596 part 6 - Factor out common method for adding animations and transitions to a layer; r=dbaron
The loops for adding animations and transitions to a layer in
nsDisplayList::AddAnimationsAndTransitionsToLayer are now identical and so can
be factored out into a common method.

Since it is not possible to implicitly convert from
nsTArray<ElementPropertyTransition> to nsTArray<ElementAnimation> despite
ElementPropertyTransition being a subclass of ElementAnimation a templated
method is used. In the future, as animations and transitions share more and more
code, we should be able to remove the need for templates.
2014-04-03 14:57:28 +09:00
Brian Birtles
e4bdcd3cfb Bug 880596 part 5 - Make ElementAnimation::HasAnimationOfProperty no longer virtual; r=dbaron
ElementAnimation::HasAnimationOfProperty doesn't seem to be overridden anywhere.
I suspect it was a copy-paste mistake because the methods of the same name on
ElementAnimations, ElementTransitions, and CommonElementAnimationData are
virtual.
2014-04-03 14:57:28 +09:00
Brian Birtles
217cb32ecc Bug 880596 part 4 - Reuse ElementAnimation::HasAnimationOfProperty; r=dbaron
Now that ElementTransitionProperty inherits from ElementAnimation,
ElementTransitions::HasAnimationOfProperty can re-use
ElementAnimation::HasAnimationOfProperty in its definition of
ElementTransitions::HasAnimationOfProperty.

Similarly, in nsDisplayList::AddAnimationsAndTransitionsToLayer we can use this
method rather than drilling down to the appropriate segment by hand.
2014-04-03 14:57:27 +09:00
Brian Birtles
e503422f93 Bug 880596 part 3 - Remove ElementPropertyTransition::IsRunningAt and mIsRunningOnCompositor; r=dbaron
Both ElementPropertyTransition and ElementAnimation specify an IsRunningAt
method which have the same purpose but with two subtle differences:

a) ElementPropertyTransition::IsRunningAt checks if the transition is a removed
sentinel and if so returns false. This patch adds a check for a null start time
to IsRunningAt since I think in future we will want to allow null times in
various places to represent, for example, animations that are not connected to
a timeline. (However, ultimately we will probably not allow start times on
*animations* to be null, only on their associated player.)

Should we later use a different mechanism for marking sentinel transitions (e.g.
a boolean flag) this method should still be correct as it checks if aTime is
inside the transition interval before returning true.

b) ElementPropertyTransition::IsRunningAt returns false if the transition is in
the delay phase, that is, waiting to start. This patch changes this behavior so
that transitions are considered running even if they are in the delay phase.
This brings their behavior into line with animations and removes the need for
the ElementPropertyTransition::mIsRunningOnCompositor since it is only used to
determine when a transition in the delay phase has begun.

ElementAnimation::IsRunningAt also handles pause state and iterations but this
logic should still be correct for transitions which, in this area, only use
a subset of the functionality of animations since their pause state is always
playing and their iteration count is 1.
2014-04-03 14:57:27 +09:00
Brian Birtles
5e2f8ede42 Bug 880596 part 2 - Make ElementPropertyTransition inherit from ElementAnimation; r=dbaron
As part of moving towards more shared data structures for animation, this patch
makes ElementPropertyTransition inherit from ElementAnimation. At the same time
we switch from storing the target property, start/end values, start time, delay,
and timing function on the transition to the corresponding location in
ElementAnimation.

Since nsDisplayList::AddAnimationsAndTransitionsToLayer was already doing this
conversion in order to create animations to pass to the compositor thread, we
can remove the conversion code from there and just use the ElementAnimation data
structures as-is.

A number of assertions are added to verify that transitions are set up as
expected (namely, they have only a single property-animation with a single
segment). As we move to more generic handling of animations and transitions
these assertions should disappear.
2014-04-03 14:57:27 +09:00
Brian Birtles
19e2304b94 Bug 880596 part 1 - Separate delay from start time for transitions; r=dbaron
As a first step towards making CSS animations and CSS transitions use the same
data structures, this patch aligns their behavior with regards to start time and
delay handling.

Previously, ElementAnimation objects maintained separate mStartTime and mDelay
members whilst ElementPropertyTransition objects maintained a single mStartTime
property that incorporated the delay. This patch adds an mDelay member to
ElementPropertyTransition and stores the delay and start time separately.
Calculations involving ElementPropertyTransition::mStartTime are adjusted to
incorporate mDelay.
2014-04-03 14:57:27 +09:00
L. David Baron
4d2197bf3c Bug 975397 - Call TrackImage when constructing a new nsStyleBorder. r=heycam
I confirmed that the crashtest crashes in the harness without the patch.

--HG--
rename : layout/reftests/backgrounds/blue-32x32.png => layout/style/crashtests/blue-32x32.png
2014-04-02 22:56:19 -07:00
Seth Fowler
c849c6ff88 Bug 967985 - Don't retarget OnDataAvailable when not storing source data. r=tn
--HG--
extra : rebase_source : d3048bf3d949650f01ae97786cb5ca2d54aa3087
2014-04-02 19:20:25 -07:00
Daniel Holbert
cb44c1df9a Bug 991407: Remove unused class gfxFontNameList. r=jdaggett 2014-04-02 21:37:37 -07:00
Masayuki Nakano
852403f45d Bug 990855 part.2 Remove dom/events from local includes of moz.build files r=smaug 2014-04-03 13:18:38 +09:00
Masayuki Nakano
b6e410dfc1 Bug 990855 part.1 Export TextComposition.h as mozilla/TextComposition.h r=smaug 2014-04-03 13:18:37 +09:00
Masayuki Nakano
e431113dee Bug 989214 Rename nsPaintRequest to mozilla::dom::PaintRequest r=smaug
--HG--
rename : dom/events/nsPaintRequest.cpp => dom/events/PaintRequest.cpp
rename : dom/events/nsPaintRequest.h => dom/events/PaintRequest.h
2014-04-03 13:18:37 +09:00
Masayuki Nakano
5c4524957a Bug 989212 Rename nsEventStates to mozilla::EventStates r=smaug
--HG--
rename : dom/events/nsEventStates.h => dom/events/EventStates.h
2014-04-03 13:18:36 +09:00
John Daggett
4c46bd8cd9 Bug 975460 - remove use of CGCopyFontTable in async font loader which didn't solve the crash problem on 10.6. r=smichaud,mkato 2014-04-03 13:13:14 +09:00
John Daggett
4aaab3c453 Bug 975460 - disable async font loader on OSX 10.6. r=smichaud,mkato 2014-04-03 13:13:11 +09:00
Wes Kocher
af719fd52b Merge m-c to inbound on a CLOSED TREE 2014-04-02 19:54:15 -07:00
Wes Kocher
ac5de79fba Merge b2g-inbound to m-c 2014-04-02 19:06:17 -07:00
Wes Kocher
6ea54b24b3 Merge inbound to m-c 2014-04-02 18:56:43 -07:00
Wes Kocher
b626270dcd Backed out 3 changesets (bug 977126) for b2g build bustage on a CLOSED TREE
Backed out changeset 88a167e0ca30 (bug 977126)
Backed out changeset a3df7451c35c (bug 977126)
Backed out changeset bab702b3df10 (bug 977126)
2014-04-02 18:34:20 -07:00
Ryan VanderMeulen
d57e3ee7c2 Backed out changeset 8b94363b10f1 (bug 984455) for debug OSX mochitest-bc failures. 2014-04-02 14:48:13 -04:00
B2G Bumper Bot
913fd17798 Bumping manifests a=b2g-bump 2014-04-02 11:47:54 -07:00
B2G Bumper Bot
0a80bc9f0b Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/f2784b078a4b
Author: Wilson Page <wilsonpage@me.com>
Desc: Merge pull request #17902 from wilsonpage/bug/988108

Bug 988108 - [camera][madai] capitalization corrections

========

https://hg.mozilla.org/integration/gaia-central/rev/14b0dd615333
Author: Wilson Page <wilsonpage@me.com>
Desc: Bug 988108 - [camera][madai] capitalization corrections
2014-04-02 11:46:16 -07:00
B2G Bumper Bot
ff27027b25 Bumping manifests a=b2g-bump 2014-04-02 11:11:18 -07:00
B2G Bumper Bot
d141252cf1 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/67a734858540
Author: Wilson Page <wilsonpage@me.com>
Desc: Merge pull request #17904 from wilsonpage/bug/990255

Bug 990255 - [Camera][Mozilla] 1.4 Zoom bar and indicators are too close...

========

https://hg.mozilla.org/integration/gaia-central/rev/374f95d4a049
Author: Wilson Page <wilsonpage@me.com>
Desc: Bug 990255 - [Camera][Mozilla] 1.4 Zoom bar and indicators are too close to each other when rotated 180
2014-04-02 11:06:11 -07:00
B2G Bumper Bot
50d8d3f523 Bumping manifests a=b2g-bump 2014-04-02 11:03:51 -07:00
B2G Bumper Bot
ae7d013397 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/d3d4d797d0c5
Author: ochameau <poirot.alex@gmail.com>
Desc: Merge pull request #17533 from jryans/devtools-server-tests

Bug 986223 - Test Dev Tools server toggling r=@ochameau

========

https://hg.mozilla.org/integration/gaia-central/rev/3a056e561b21
Author: J. Ryan Stinnett <jryans@gmail.com>
Desc: Bug 986223 - Test Dev Tools server toggling
2014-04-02 11:03:40 -07:00
Ed Morley
4c29691b1d Merge mozilla-central and b2g-inbound 2014-04-02 18:56:09 +01:00
B2G Bumper Bot
29889ce97d Bumping manifests a=b2g-bump 2014-04-02 10:22:37 -07:00
B2G Bumper Bot
5eb1258389 Bumping gaia.json for 4 gaia revision(s) a=gaia-bump
========

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

Bug 990496 - [Contacts] Error when user tries to cancel importing contacts

========

https://hg.mozilla.org/integration/gaia-central/rev/49f264631fcf
Author: Francisco Jordano <arcturus@ardeenelinfierno.com>
Desc: Bug 990496 - [Contacts] Error when user tries to cancel importing contacts

========

https://hg.mozilla.org/integration/gaia-central/rev/e9efe93a8c36
Author: Wilson Page <wilsonpage@me.com>
Desc: Merge pull request #17877 from verchaswa/Bug989023_Camera_MADAI_Mozilla_image_Preview_button_needs_highlight_state

[Bug 989023][Camera][Madai][Mozilla]Image Preview button needs highlight...

========

https://hg.mozilla.org/integration/gaia-central/rev/fc14d2e8deb5
Author: verchaswa.sharma <verchaswa.sharma@lge.com>
Desc: [Bug 989023][Camera][Madai][Mozilla]Image Preview button needs highlight state
2014-04-02 10:20:57 -07:00
B2G Bumper Bot
7fcbc71601 Bumping manifests a=b2g-bump 2014-04-02 09:26:22 -07:00
B2G Bumper Bot
d212365dd5 Bumping gaia.json for 5 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/b8eae9817bd2
Author: Gareth Aye <gaye@mozilla.com>
Desc: Merge pull request #17861 from gaye/bug-987350

Bug 987350 - Migrate alarm_test.js to use new view code r=millermedeiros

========

https://hg.mozilla.org/integration/gaia-central/rev/e00e22596b46
Author: Gareth Aye <gaye@mozilla.com>
Desc: Bug 987350 - Migrate alarm_test.js to use new view code

========

https://hg.mozilla.org/integration/gaia-central/rev/d75dc1c0083b
Author: Rudy Lu <me@rudy.lu>
Desc: Merge pull request #17893 from RudyLu/value_selector/remove-mozKeyboard

Bug 986992 - Remvoe navigator.mozKeyboard and use navigator.mozInputMethod
r=rudylu

========

https://hg.mozilla.org/integration/gaia-central/rev/63bd5af5a680
Author: Rudy Lu <me@rudy.lu>
Desc: Remove system app from mock keyboard app list.

========

https://hg.mozilla.org/integration/gaia-central/rev/d1a51a625bd9
Author: Yuan Xulei <xyuan@mozilla.com>
Desc: Bug 986992 - Remvoe navigator.mozKeyboard and use navigator.mozInputMethod instead.
2014-04-02 09:21:11 -07:00
B2G Bumper Bot
bd5c101dff Bumping manifests a=b2g-bump 2014-04-02 08:36:09 -07:00
B2G Bumper Bot
57952f612a Bumping gaia.json for 1 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/14aa592477c1
Author: Gareth Aye <gaye@mozilla.com>
Desc: Remove incorrect comment about calendar marionette tests
2014-04-02 08:31:01 -07:00
B2G Bumper Bot
1037c9cc3d Bumping manifests a=b2g-bump 2014-04-02 08:21:16 -07:00
B2G Bumper Bot
dca0d908ed Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/4b83b2738465
Author: Douglas Sherk <github@sherk.me>
Desc: Merge pull request #17665 from DouglasSherk/987211-clock-lock-call

Bug 987211 - [Dialer][Lockscreen] Fix clock being invisible when receiving a call while screen locked. r=rik

========

https://hg.mozilla.org/integration/gaia-central/rev/36047b2510e1
Author: DouglasSherk <github@sherk.me>
Desc: Bug 987211 - Make sure l10n_date is loaded before calling back in LazyL10n.get(). r=rik
2014-04-02 08:16:04 -07:00
B2G Bumper Bot
f1dcaa2b35 Bumping manifests a=b2g-bump 2014-04-02 07:58:00 -07:00
B2G Bumper Bot
fd172c5ca1 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/3d43c0bce3a9
Author: Florin Strugariu <bebef_1987@yahoo.com>
Desc: Merge pull request #17908 from AndreiH/bug991076

Bug 991076 - Xfail test_cost_control_data_alert_mobile failing because B...

========

https://hg.mozilla.org/integration/gaia-central/rev/fd0df9a1107e
Author: Andrei Hutusoru <andreihutusoru@P5069.(none)>
Desc: Bug 991076 - Xfail test_cost_control_data_alert_mobile failing because Bug 991067
2014-04-02 07:57:49 -07:00
Carsten "Tomcat" Book
a715b7c75b merge b2g-inbound to mozilla-central 2014-04-02 15:57:57 +02:00
Carsten "Tomcat" Book
4ec1d90211 merge fx-team to mozilla-central 2014-04-02 15:56:06 +02:00
Tim Taubert
020fe7a813 Bug 824021 - Use SessionSaver.run() to force disk writes r=yoric
From e47510ab938cba4f54d515c9e2397a08b0f4f87b Mon Sep 17 00:00:00 2001
2014-04-02 15:08:48 +02:00
Ed Morley
757c230f65 Merge mozilla-central and fx-team 2014-04-02 18:25:23 +01:00
Lucas Rocha
b28af7d94e Bug 991160 - Run GeckoSharedPrefs migrations in the current thread (r=rnewman) 2014-04-02 18:23:27 +01:00
Mike de Boer
e4f17131ce Bug 991072: fix zoom percentage label to be centered in any toolbar. r=mconley 2014-04-02 15:47:55 +02:00
Matthew Noorenberghe
87992336de Bug 990384 - Define tabToolbarNavbarOverlap to reduce magic numbers in CSS for the overlap between the tabs and nav-bar. r=mconley 2014-04-02 11:43:03 -04:00
David Rajchenbach-Teller
f950528bc4 Bug 961317 - Clean up OS.File shutdown race condition and rework OS.File reset/shutdown. r=froydnj 2014-04-02 11:42:51 -04:00
B2G Bumper Bot
ed72ba5576 Bumping manifests a=b2g-bump 2014-04-02 02:46:22 -07:00
B2G Bumper Bot
51b8a4f040 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/c23b496987e1
Author: gasolin <gasolin@gmail.com>
Desc: Merge pull request #17354 from gasolin/issue-973448-2

Bug 973448 - [settings] refactor Support panel with AMD pattern, r=arthur

========

https://hg.mozilla.org/integration/gaia-central/rev/f5624be4f1a2
Author: gasolin <gasolin@gmail.com>
Desc: Bug 973448 - [settings] refactor Support panel with AMD pattern
2014-04-02 02:41:12 -07:00