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

371447 Коммитов

Автор SHA1 Сообщение Дата
Brian Birtles 8a61f8ccfa Bug 1036287 part 3 - Make GetLocalTimeAt return a nullable time duration; r=dholbert
Once we support arbitrary timelines which can return null current time values,
the local time of an animation can also become null so this patch updates
ElementAnimation::GetLocalTimeAt to return a Nullable<TimeDuration>.
Doing this also allows us to pass the result of GetLocalTimeAt directly to
GetComputedTimingAt.
2014-07-16 09:02:32 +09:00
Brian Birtles a3a8900375 Bug 1036287 part 2 - Make GetComputedTimingAt take a nullable local time; r=dholbert
As part of supporting arbitrary timelines, we'd like to pass null times to the
function that calculates computed timing. Incidentally, this also provides
a means for evaluating calculating timing parameters that are independent of the
current time (currently only the active duration) without requiring a valid
time.

This patch updates the signature of ElementAnimation::GetComputedTimingAt to
take a nullable time duration.

We use the Nullable wrapper to represent null TimeDurations since, unlike,
TimeStamp, TimeDuration does not include a null state.
2014-07-16 09:02:32 +09:00
Brian Birtles 34ac24b42a Bug 1036287 part 1 - Add a null animation phase; r=dholbert
In order to support arbitrary timelines which may provide a "null" current time,
we need a suitable value to return from GetComputedTimingAt for the animation's
phase when the timeline time is null.

This patch introduces a null animation phase for this purpose.
2014-07-16 09:02:32 +09:00
Brian Birtles 15b2879205 Bug 1032573 part 7 - Add AnimationPlayer to test_interfaces.html; r=bz 2014-07-16 09:02:31 +09:00
Brian Birtles 9837c624e3 Bug 1032573 part 6 - Add tests for Element.getAnimationPlayers; r=dbaron 2014-07-16 09:02:31 +09:00
Brian Birtles 4a5b988a87 Bug 1032573 part 5 - Add GetAnimationPlayers to Element; r=bz
This patch adds the WebIDL definitions and implementation of
getAnimationPlayers on Element.

It does not include the full definition of AnimationPlayer but only readonly
versions of the currentTime and startTime attributes since these are easy
to implement and enable identifying the different animations that are returned
for the sake of testing.

Web Animations defines getAnimationPlayers as only returning the animations that
are either running or will run in the future (known as "current" animations).
This will likely change since it seems desirable to be able query animations
that have finished but are applying a forwards fill. For now, however, this
patch makes us only return animations that have not finished.

This patch also removes an assertion in ElementAnimation::GetLocalTime that
would fail if called on a finished transition. This assertion is no longer
necessary since an earlier patch in this series removed the overloading of
the animation start time that meant calling this on a finished transition
was unsafe. Furthermore, this assertion, if it were not removed, would fail
if script holds onto a transition and queries its start time after it
completed.
2014-07-16 09:02:31 +09:00
Brian Birtles 728dbd075d Bug 1032573 part 4 - Add AnimationTimeline::ToTimelineTime helper method; r=dbaron
This patch simply factors out the conversion from a TimeStamp value to
a nullable-double value relative to the start of the timeline. This is so that,
in a subsequent patch, this functionality can be reused by ElementAnimation
when it reports its start time (which is currently recorded as a TimeStamp).
2014-07-16 09:02:30 +09:00
Brian Birtles 7bb5ae0ed8 Bug 1032573 part 3 - Add AnimationTimeline::GetCurrentTimeStamp; r=dbaron
AnimationTimeline::GetCurrentTime returns the time value of the timeline as
a double. For internal calculations however it is more useful to get this as
a mozilla::TimeStamp.

This patch splits the calculation of the current time into two stages:
calculation as a timestamp then conversion to a double.
2014-07-16 09:02:30 +09:00
Brian Birtles 9454e09015 Bug 1032573 part 2 - Add a timeline member to ElementAnimations; r=dbaron
When we expose ElementAnimation objects to script they need to have a parent
object so they can be associated with a Window.

This patch adds a pointer from an ElementAnimation to its AnimationTimeline.
2014-07-16 09:02:30 +09:00
Brian Birtles 881f90e9a2 Bug 1032573 part 1 - Don't overload start time for marking finished transitions; r=dbaron
When transitions finish, we keep them around for one additional throttle-able
tick to provide correct behavior for subsequent transitions that may be
triggered. Prior to this patch we did this by overloading the start time of the
animation and setting it to null in this case.

However, if we begin returning ElementAnimation objects to script, script can
hold on to those objects and query their start time even after they are
finished. Therefore we need another means of marking finished transitions that
doesn't clobber the start time field.

This patch introduces a new boolean member for marking such transitions.

While we're touching IsFinishedTransition we also take the chance to tidy up one
of the call sites, namely IsCurrentAt, to make the logic a little easier to
follow.
2014-07-16 09:02:29 +09:00
Anthony Jones 5a491f61ff Bug 1038971 - Fix libav frame ordering; r=edwin 2014-07-16 11:54:26 +12:00
Andrew McCreight de19994a7f Bug 1038853 - Use nullptr instead of 0 in Shmem.h and Shmem.cpp. r=bent 2014-07-15 16:51:44 -07:00
Bobby Holley 52d26b4f2d Bug 1037264 - Add an 8-bit short-lived string cache. r=neil 2014-07-15 16:30:51 -07:00
Bobby Holley bad841d721 Bug 1037264 - Factor out short-lived string buffer into a templated helper class. r=neil 2014-07-15 16:30:50 -07:00
Wes Kocher a568f8dfc6 Backed out 1 changesets (bug 1005225) for Gu permared
Backed out changeset 452d8502bea1 (bug 1005225)
* * *
Backed out 2 changesets (bug 1005225, bug 1030936) for Gu permared

Backed out changeset 32a1fa1b28d5 (bug 1030936)
Backed out changeset 61d41b381f30 (bug 1005225)
2014-07-15 16:18:50 -07:00
Wes Kocher a5c126599f Backed out changeset f4592864c982 (bug 1037360) for b2g mochitest-9 failures 2014-07-15 15:45:38 -07:00
Ralph Giles 5b5a2045aa Bug 1037689 - Document MP4Sample timestamp units. r=ajones
These look to be returning values in microseconds, already
adjusted by the stream's internal timescale.
2014-07-14 14:19:00 -07:00
Bas Schouten 278bcc4c7d Bug 1036785: Use DIBs for drawing when not using opaque surfaces. r=nical 2014-07-10 23:29:40 +02:00
Bas Schouten 683ce47d7f Bug 1036785 - Tests: Fuzz some tests to mask subpixel-AA differences. r=jrmuizel 2014-07-15 23:40:32 +02:00
Nikhil Marathe ffd3a07c65 Bug 983497 - Patch 2: Fire updatefound on ServiceWorkerContainers. r=ehsan
--HG--
extra : transplant_source : %98%1B%D73y%CF%A9%3Fb%DAR%DC%25%A9S%15%22%CF%C4%1B
2014-07-11 16:00:52 -07:00
Nikhil Marathe 77a88e4eeb Bug 983497 - Patch 1: Infrastructure to fire events on ServiceWorkerContainers. r=ehsan,smaug
--HG--
extra : transplant_source : S1z%F3%86%E5%CF%D6%3BWW%8E%1A%90%A3%94%7E%FE%E3z
2014-07-14 14:15:23 -07:00
Andrew McCreight fa0eb3c609 Bug 1036629 - Take a deathgrip on the runnable passed to NS_DispatchToCurrentThread. r=bsmedberg
This will prevent a leak of the runnable if it is passed in with a refcount of zero and the dispatch fails.
2014-07-15 14:29:14 -07:00
Christoph Kerschbaumer 7aaf40067c Bug 1005225: Follow up, changed uuid in the wrong idl (r=ckerschb) 2014-07-15 13:59:59 -07:00
Terrence Cole b2b3afbf44 Bug 1030577 - Move some GC guards below the GC_BEGIN callback; r=jonco
--HG--
extra : rebase_source : 6c4b6576242047a07cbc2cf0ed018e48e523550d
2014-07-15 13:47:09 -07:00
Sid Stamm 621e5ad646 Bug 1030936 - Remove CSP fast path for certified apps (r=fabrice)
--HG--
extra : rebase_source : 29ded0fc7b6cd320b234e45571239961513bd9ff
2014-07-15 13:31:47 -07:00
Christoph Kerschbaumer 6fa8519ab9 Bug 1005225 - CSP in C++: SImplify shouldProcess for CSP (r=sstamm)
--HG--
extra : rebase_source : a0e2bacb5376afde0ccc0487da6e3ceb70bfb09c
2014-07-07 10:15:36 -07:00
Ehsan Akhgari 52b3213404 Bug 1038156 - Give GPUAdapterReporter a private destructor; r=bjacob 2014-07-15 16:41:50 -04:00
Ehsan Akhgari 5321aa5c87 Bug 1038190 - Give JumpListShortcut a private destructor; r=bjacob 2014-07-15 16:41:28 -04:00
Ehsan Akhgari 9bfa79023b Bug 1038158 - Give ReadbackResultWriter a private destructor; r=bjacob 2014-07-15 16:41:05 -04:00
Ehsan Akhgari 7d9f6d41ff Bug 1038166 - Give nsFilePicker a private destructor; r=bjacob 2014-07-15 16:40:41 -04:00
Ehsan Akhgari dccc763dca Bug 1038170 - Give GfxInfo a private destructor; r=bjacob 2014-07-15 16:40:08 -04:00
Ehsan Akhgari 510280e9c3 Bug 1038187 - Give JumpListSeparator a private destructor; r=bjacob 2014-07-15 16:39:45 -04:00
Ehsan Akhgari 3bda7f8003 Bug 1038189 - Give JumpListLink a private destructor; r=bjacob 2014-07-15 16:39:22 -04:00
Ehsan Akhgari bcc305978d Bug 1038193 - Give LSPAnnotationGatherer a private destructor; r=bjacob 2014-07-15 16:39:01 -04:00
Ehsan Akhgari ea0a69c899 Bug 1038196 - Give WinWakeLockListener a private destructor; r=bjacob 2014-07-15 16:38:31 -04:00
Ehsan Akhgari 9f8a55b140 Bug 1038200 - Fix the rest of the public refcounted destructors in widget/windows; r=bjacob 2014-07-15 16:37:58 -04:00
Ehsan Akhgari bf8a74902a Bug 1038202 - Give MSCOMInitThreadPoolListener a private destructor; r=bjacob 2014-07-15 16:37:33 -04:00
Sotaro Ikeda 11459c436e Bug 1037360 - Fix SharedBufferManagerParent's destruction r=jmuizelaar 2014-07-15 13:33:26 -07:00
Randell Jesup d344eea963 Bug 1038879: ensure odd widths/heights in getUserMedia are handled correctly r=rillian 2014-07-15 15:49:01 -04:00
Andrew McCreight 34feea774d Bug 1038523 - Make IPDL generate nullptr for ExprLiteral.NULL. r=bent 2014-07-15 12:46:52 -07:00
Jed Davis 2ff3fcad0d Bug 1038490 - Fix misuse of MOZ_WIDGET_GONK in Linux content process sandbox policy. r=kang
--HG--
extra : amend_source : 0a7fe8ca751b59102cbc23316b18982268306423
2014-07-14 18:35:56 -07:00
Jed Davis 79f8763545 Bug 1038486 - Fix Linux desktop seccomp sandbox build on 32-bit x86. r=kang
--HG--
extra : amend_source : 130d2cbd485734997739ea96ac5d83c01899d8b0
2014-07-09 16:52:56 -07:00
Ehsan Akhgari ec529155d9 Backed out changeset 32d47282044f (bug 1038411) because of build bustage on CLOSED TREE 2014-07-15 15:31:15 -04:00
Bobby Holley cdd8e663e7 Bug 987678 - Stop doing all the crazy stuff in xbl-marquee. r=bz 2014-07-15 12:23:43 -07:00
Ehsan Akhgari ecb4aeaf39 Bug 1038204 - Make two destructors in the Windows print GUI code private; r=bjacob 2014-07-15 15:00:15 -04:00
Ehsan Akhgari eb9b9958f1 Bug 1038212 - Give nsNativeAppSupportWin a private destructor; r=bjacob 2014-07-15 14:59:20 -04:00
Ehsan Akhgari b05f9ad91b Bug 1038213 - Give nsTestComFactory a private destructor; r=bjacob 2014-07-15 14:58:34 -04:00
Ehsan Akhgari b82d56b479 Bug 1038219 - Give nsHapticFeedback a private destructor; r=bjacob 2014-07-15 14:58:11 -04:00
Ehsan Akhgari 57896d7fc3 Bug 1038210 - Fix the public destructors for refcounted classes in Windows only code in accessible; r=bjacob 2014-07-15 14:57:48 -04:00
Ehsan Akhgari 76fdf3253c Bug 1038195 - Give some classes in the Windows taskbar code private destructors; r=bjacob 2014-07-15 14:57:14 -04:00