Commit Graph
244 Commits
Author SHA1 Message Date
Boris Chiou 427e00a9b4 Bug 1214536 - Part 7: Rename AnimationTiming as TimingParams. r=birtles, r=smaug
1. struct AnimationTiming -> struct TimingParams
2. AnimationEffectReadOnly::TimingAsObject() -> AnimationEffectReadOnly::Timing()
3. KeyframeEffectReadOnly::Timing() -> KeyframeEffectReadOnly::SpecifiedTiming()
2016-01-13 18:41:00 +01:00
Boris Chiou 8d3197c34c Bug 1214536 - Part 4: Use OwingUnrestrictedDoubleOrString for duration. r=birtles
We store the original value of duration in AnimationTiming, and add
computed duration in ComputedTiming, so both the Timing model and
AnimationEffectTimingReadOnly can get what they want.

By the way, replace mIterationDuration with mDuration.
2016-01-13 18:36:00 +01:00
Boris Chiou 0f434dc51e Bug 1214536 - Part 3: Store the original value of fill. r=birtles
FillMode could be 'auto', and we should treat it as 'none' in the timing model.
However, AnimationEffectTimingReadOnly should get its original value.

By the way, replace mFillMode with mFill.
2016-01-13 18:36:00 +01:00
Boris Chiou e35945298c Bug 1214536 - Part 2: Replace mIterationCount in layers::Animation. r=birtles
Replace mIterationCount with mIterations.
2015-12-27 18:51:00 +01:00
Boris Chiou 388b167a82 Bug 1214536 - Part 1: Use unrestricted double for iterations. r=birtles
We want to store the original value from KeyframeEffectOptions whose
iterations is unrestricted double. Therefore, we can get the original value
of iterations by AnimationEffectTimingReadOnly.

By the way, replace mIterationCount with mIterations.
2016-01-10 18:41:00 +01:00
Botond Ballo 3aeef5636b Bug 1236750 - Use strongly-typed matrices to represent layer transforms in APZ code. r=kats 2016-01-04 20:07:54 -05:00
Botond Ballo 1c4faed6a9 Bug 1236750 - Rename ViewTransform to AsyncTransform. r=kats
It's only used to represent async transforms, and making this clear
allows us to replace (in a subsequent change) its conversion operator
to Matrix4x4 with a conversion operator to a specific typed matrix.
2015-12-30 18:24:26 -05:00
Kartikaya Gupta c8d763cff9 Bug 1234950 - When advancing APZ animations, use the next vsync timestamp instead of the current one, since that is what will be composited. r=mstange 2015-12-27 10:20:40 -05:00
Kartikaya Gupta 65d4edd840 Bug 1234950 - Advance APZ animations after updating the layer shadow transforms, rather than before. r=mstange 2015-12-27 10:20:40 -05:00
Botond Ballo 53231fb2d4 Bug 1147673 - Determine more accurately whether an async transform affects a layer's clip rect. r=kats 2015-10-02 18:35:21 -04:00
Markus Stange 477a877492 Bug 1147673 - Unadjust clip before intersecting it with the scroll clip. r=botond 2015-10-09 14:30:44 +02:00
Carsten "Tomcat" Book dbeeccbaab Backed out changeset 1cbfa21cf2b5 (bug 1147673) for mulet r5 test failures on a CLOSED TREE 2015-12-16 11:53:11 +01:00
Carsten "Tomcat" Book 68619d81cc Backed out changeset 9e1f2694536c (bug 1147673) 2015-12-16 11:52:41 +01:00
Botond Ballo db84eb8582 Bug 1147673 - Determine more accurately whether an async transform affects a layer's clip rect. r=kats 2015-10-02 18:35:21 -04:00
Markus Stange 4378527fad Bug 1147673 - Unadjust clip before intersecting it with the scroll clip. r=botond 2015-10-09 14:30:44 +02:00
Botond Ballo 6d77a56654 Bug 1069417 - Remove the explicit template argument of TransformTo() and related functions. r=kats
In this process, TransformTo() and UntransformTo() are renamed TransformedBy()
and UntransformBy() so calls to them continue to read sensibly.
2015-11-30 20:06:45 -05:00
Botond Ballo 85af71a0e4 Bug 1069417 - Modify TransformTo() and related functions to use typed matrices. r=kats
Call sites (all in APZ and related code) were modified accordingly. Some of
these modifications involved changing some matrices stored in APZ to be typed.
2015-11-30 20:14:31 -05:00
Matt Woodrow 4c612326aa Bug 1168263 - Add nsDisplayPerspective and build separate layers for perspective. r=roc 2015-11-26 22:32:36 +13:00
Matt Woodrow 2c7a419306 Bug 1168263 - Simplify GetResultingTransformMatrix calculations to avoid unnecessary origin changes. r=roc 2015-11-26 22:32:35 +13:00
Matt Woodrow 8a960d1c72 Bug 1168263 - Add a flags parameter to GetResultingTransformMatrix instead of using bools. r=roc 2015-11-26 22:32:35 +13:00
Botond Ballo bfb180e3d4 Bug 1168263 - Propagate the scroll-clip of a descendant of a layer with a perspective transform up to the layer itself. r=kats,mstange 2015-11-18 14:21:37 -05:00
Botond Ballo 85d6b0b6dd Bug 1168263 - Introduce a helper function IntersectMaybeRects(). r=kats 2015-11-19 13:09:16 -05:00
Boris Chiou e4c8b7d4fa Bug 1215406 - Part 3: Change the types of direction and fillmode in AnimationTiming. r=heycam
Use mozilla::dom::FillMode and mozilla::dom::PlaybackDirection
in AnimationTiming.
2015-11-20 06:12:00 +01:00
Kartikaya Gupta b246f7ba12 Bug 1221694 - Add a basic telemetry probe for checkerboarding. r=botond,vladan 2015-11-20 23:25:37 -05:00
Kartikaya Gupta 97e8080aed Bug 1223928 - Make the horizontal scrollbar on the root scrollable shift correctly with the dynamic toolbar. r=botond 2015-11-19 09:55:21 -05:00
Kartikaya Gupta 0e1f47f4ed Bug 1214267 - Send the side to which fixed-pos items are attached so that we can move them in the compositor more correctly when the viewport size is changing. r=mattwoodrow 2015-11-11 10:07:29 -05:00
Randall Barker 060e13bcfc Bug 1223436 - Fix AsyncCompositionManager so that mLayersUpdated is only set to false after SyncFrameMetrics has been called. r=kats 2015-11-10 12:01:35 -05:00
Boris Chiou 6ccef4f13e Bug 1108055 - Part 2: Refine ComputedTiming. r=birtles
Do some minor revisions in struct ComputedTiming.
1. Use Nullable<double> mProgress, so remove the static const kNullProgress.
   The generated ComputedTimingProperties dictionary uses "Nullable" variable,
   so we replace the origin type in ComputedTiming to make it more consistent
   with that in ComputedTimingProperties dictionary.
2. Use scoped enums for AnimationPhase.
2015-10-19 00:38:00 +02:00
Jim Mathies 9d436f7476 Bug 1213671 - CompositorParent::UpdatePluginWindowState should always return an accurate result indicating when an ipc request for plugin geometry updates was sent. r=roc 2015-10-21 17:27:48 -05:00
Botond Ballo aadac7fe9a Bug 1213762 - Clear AsyncCompositionManager::mIsFirstPaint on non-Android platforms, too. r=mstange 2015-10-16 18:33:35 -04:00
Jim Mathies e7f31f008a Bug 1137944 - Move plugin window metrics updates to a point during comososition where we know the remote layer tree is hooked up to the chrome layer tree. r=matt.woodrow 2015-10-06 14:23:24 -05:00
Jim Mathies da50b850c2 Bug 1196539 - Apply plugin config using AutoResolveRefLayers during composition. r=matt.woodrow 2015-10-06 14:23:24 -05:00
Botond Ballo c1f629ba7d Bug 1209964 - In AlignFixedAndStickyLayers(), properly handle the case where a fixed or sticky layer is its own subtree root and has a local transform. r=kats 2015-10-02 20:53:30 -04:00
Botond Ballo 2805c5717c Bug 1201889 - When adjusting fixed and sticky layers in AsyncCompsitionManager, unapply all async transforms on the path from the fixed layer to the layer it's fixed with respect to. r=kats 2015-09-28 20:35:13 -04:00
Botond Ballo b63049a482 Bug 1166301 - When applying an async adjustment to a fixed layer, only adjust its mask layer under the same circumstances as its clip rect. r=mattwoodrow 2015-08-28 13:57:00 -04:00
Botond Ballo 806fe91239 Bug 1166301 - Allow async scrolling to move the clip rects of fixed background layers. r=mattwoodrow 2015-09-04 19:23:19 -04:00
Botond Ballo 33771218f6 Bug 1166301 - Update an old comment in AsyncCompositionManager::AlignFixedAndStickyLayers. r=kats 2015-08-28 15:21:01 -04:00
Kartikaya Gupta fadc132229 Bug 1201581 - Hook up the syncFrameMetrics call to sync metrics info from the compositor to Java-land on each composite. r=rbarker 2015-09-11 21:58:16 -04:00
Kartikaya Gupta 66878e40f7 Bug 1201581 - Extract a helper method. r=rbarker 2015-09-11 21:58:16 -04:00
Kartikaya Gupta 525477b308 Bug 1201529 - Fall back to rootmost metrics if there is no root content document metrics. r=botond 2015-09-11 21:58:15 -04:00
Kartikaya Gupta 1611f233d3 Bug 1201625 - Special-case B2GDroid since it doesn't have a root content document. r=rbarker 2015-09-03 23:18:52 -04:00
Kartikaya Gupta ee0b25e833 Bug 1200399 - Only send the RCD's metrics to Java-land for fennec-apz. r=rbarker 2015-09-02 16:31:06 -04:00
Kevin Wern 811c195d21 Bug 1173521 - Properly handle unapplying 3D projective transforms to rectangles in APZ code. r=botond
The untransformation is done using the newly added UntransformTo() functions
which call Matrix4x4::ProjectRectBounds(), which returns an empty rectangle
if the result is not at least partially on the positive side of the w = 0 plane.

UntransformTo() returnis the transformed rectangle if it's not empty, and
Nothing() otherwise, making callers check for this case.

The patch also adds some assertions to places where we apply transforms we
know should be 2D (and thus didn't switch to use UntransformTo()), checking
that the transforms are in fact 2D.
2015-08-28 12:00:29 -04:00
William Chen ecf84fcf22 Bug 1131470 - Part 1: Rename existing use of ScreenOrientation to ScreenOrientationInternal. r=baku 2015-08-18 14:55:09 -07:00
Kartikaya Gupta f5ed3a019f Bug 1180295 - Implement seamless snapping to the stable state. r=rbarker 2015-08-18 14:27:20 -04:00
Kartikaya Gupta 3766fb3084 Bug 1180295 - Stop clipping the content while the toolbar is in the process of sliding off. r=rbarker 2015-08-18 14:27:19 -04:00
Kartikaya Gupta f8cac5f8c4 Bug 1180295 - Rip out the Fennec code to set the screen render offset. r=rbarker 2015-08-18 14:27:18 -04:00
Kartikaya Gupta d6bfe53b6e Bug 1180295 - Rip out call to setContentDocumentFixedPositionMargins. r=rbarker 2015-08-18 14:27:18 -04:00
Botond Ballo 01508d9a52 Bug 1187804 - When a layer is scrolled by multiple scroll frames, do an AlignFixedAndStickyLayers pass on its subtree for each of the scroll frames. r=kats 2015-08-14 20:26:59 -04:00
Botond Ballo 4e10db3172 Bug 1187804 - Un-adjust fixed layers by the async transform of the scroll frame that they're fixed with respect to, not of the nearest ancestor scroll frame. r=kats 2015-08-14 16:11:28 -04:00