Commit Graph

41506 Commits

Author SHA1 Message Date
Mats Palmgren
32fe7d9bf6 Bug 767593 - Don't call SetUndisplayedContent() when aState.mCreatingExtraFrames is true because we should have already done that. r=bz 2014-07-16 14:10:48 +00:00
Mats Palmgren
ea16e6df0a Bug 1028462 - Increase the number of fuzz pixels for B2G slightly. r=me 2014-07-15 08:10:00 +02:00
L. David Baron
6b85a58773 Bug 1038488 patch 3 - Use AllocateByObjectID/FreeByObjectID for style structs. r=heycam 2014-07-15 22:27:13 -07:00
L. David Baron
a084fec891 Bug 1038488 patch 2 - Remove memset from the operator new of the 4 style structs that have it. r=heycam
This also moves those 4 operator new methods to be inline to match the
style of all of the others.

I audited that all the members of these structs are initialized by all
their constructors (see patch 1).
2014-07-15 22:27:12 -07:00
L. David Baron
8e7821b091 Bug 1038488 patch 1 - Explicitly initialize nsStyleMargin::mCachedMargin and nsStylePadding::mCachedPadding so that it is clear all members of nsStyleFont, nsStyleMargin, nsStylePadding, and nsStyleBorder are explicitly initialized. r=heycam
While nsMargin does 0-initialize, it's not necessarily obvious that it
does, and I think it's worth making explicit.
2014-07-15 22:27:12 -07:00
L. David Baron
76273a1316 Bug 1030604 - Use nsChangeHint_UpdateOverflow for clip-path and mask changes so we update the PreEffectsBBoxProperty and run the effect on the correct area. r=roc
The testcase is a slight simplification of dholbert's testcase 2
(attachment 8456312) in the bug.  It fails in the reftest harness
without the patch, and passes in the reftest harness with the patch.
2014-07-15 22:27:12 -07:00
Cameron McCormack
fbd6b8f0f4 Bug 1039151 - Replace space-wasting use of DebugOnly<> in CSSVariableResolver with #ifdef DEBUG. r=dbaron 2014-07-16 15:24:04 +10:00
Masayuki Nakano
05c7d9794b Bug 1038089 IMEStateManager should log its behavior r=smaug 2014-07-16 14:13:28 +09:00
Brian Birtles
59bf2039e1 Bug 1036300 - Expose AnimationPlayer.timeline; r=bz 2014-07-16 09:02:33 +09:00
Brian Birtles
a7a1177af7 Bug 1036287 part 6 - Add a GetComputedTiming shortcut that uses the current animation timeline time; r=dholbert
This patch introduces a method GetComputedTiming that calls GetComputedTimingAt
supplying the current time of the animation's timeline.

We still keep the GetComputedTimingAt static method since it is used for
off-main thread animation. Furthermore, we keep the second argument to
GetComputedTiming--the animation's timing properties--since on some occasions we
want to override those properties (ElementPropertyTransition::ValuePortionFor
does this). We could also add another overload that also supplies the
animation's timing properties but that can happen as a separate step.
2014-07-16 09:02:33 +09:00
Brian Birtles
7aff661646 Bug 1036287 part 5 - Drop aTime param from IsRunning(At) and IsCurrent(At), since they now use the current timeline time; r=dholbert 2014-07-16 09:02:33 +09:00
Brian Birtles
f7c2a452ed Bug 1036287 part 4 - Make GetLocalTime(At) get the current time automatically from the timeline; r=dholbert
This patch changes ElementAnimation::GetLocalTimeAt so that instead of taking
the current time as input, it uses the animation's mTimeline member to look up
the current time of the associated timeline. As a result of this, it is possible
to remove a few instances of querying the refresh driver for the current time.
Further instances are removed in subsequent patches.

Furthermore, in order to keep the use of time sources consistent, the mStartTime
of new transitions and animations is initialized with the current time from the
animation's timeline rather than with the latest refresh driver tick.
Since this time could, in future, be null, GetLocalTime(At) is updated to check
for a null start time.

GetLocalTimeAt is also renamed to GetLocalTime in the process.
2014-07-16 09:02:32 +09:00
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
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
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
Bas Schouten
683ce47d7f Bug 1036785 - Tests: Fuzz some tests to mask subpixel-AA differences. r=jrmuizel 2014-07-15 23:40:32 +02: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
Benoit Girard
1465e09a99 Bug 1037691 - Fix instances where refcounted classes expose a public destructor. r=ehsan,bent,mayhemer,jrmuizel 2014-07-15 11:37:45 -04:00
William Lachance
ba2b4b855e Bug 1036530 - Instantiate / initialize device root only when needed in mozdevice. r=bc 2014-07-11 15:29:30 -04:00
Ting-Yu Lin
3b1816e239 Bug 1021527 - Fix blurry carets by using svg image. r=roc
* Replace png images with svg images for touch caret and selection
  carets.
* Fix touch caret is enlarged on high resolution device due to
  background-size was not set.
2014-07-14 23:08:00 +02:00
Ting-Yu Lin
1c2a705229 Bug 1016184 - part 2 - Add debug logs to touch caret. r=ehsan 2014-07-13 21:29:00 +02:00
Ting-Yu Lin
9105af006a Bug 1016184 part 1 - Correct documentation in nsCaret.h. r=ehsan 2014-07-14 23:18:00 +02:00
Carsten "Tomcat" Book
e2fa0f3b8e Backed out changeset 6f857407b64e (bug 1022612) for bustage on a CLOSED TREE 2014-07-15 10:35:42 +02:00
Carsten "Tomcat" Book
b634b7bc83 Backed out changeset e5bacdd4594c (bug 1022612) for bustage on a CLOSED TREE 2014-07-15 10:31:12 +02:00
Carsten "Tomcat" Book
6132d68cb0 Backed out changeset 4e502d50b8e1 (bug 1022612) 2014-07-15 10:30:51 +02:00
Carsten "Tomcat" Book
9ee30b1afa Backed out changeset 18ffe0bb4d42 (bug 1022612) 2014-07-15 10:30:49 +02:00
Carsten "Tomcat" Book
3876ec672e Backed out changeset cdaa916f6851 (bug 1022612) 2014-07-15 10:30:47 +02:00
Carsten "Tomcat" Book
bc4347b118 Backed out changeset 6d2fc524e961 (bug 1022612) 2014-07-15 10:30:46 +02:00
Carsten "Tomcat" Book
44b787c2c2 Backed out changeset 1ad096055f1d (bug 1022612) 2014-07-15 10:30:44 +02:00
Carsten "Tomcat" Book
87631b62a6 Backed out changeset 5ebd2f6b65a6 (bug 1022612) 2014-07-15 10:30:41 +02:00
Carsten "Tomcat" Book
352da95c73 Backed out changeset e4e2a1dcadc8 (bug 1022612) 2014-07-15 10:30:39 +02:00
Carsten "Tomcat" Book
26a5361c4e Backed out changeset 3bf33a32bfe0 (bug 1022612) 2014-07-15 10:30:38 +02:00
Carsten "Tomcat" Book
6592473bee Backed out changeset 75fffcce9c4d (bug 1022612) 2014-07-15 10:30:36 +02:00
Carsten "Tomcat" Book
73afa0f4ec Backed out changeset cc140abf7b17 (bug 1022612) 2014-07-15 10:30:35 +02:00
Carsten "Tomcat" Book
5382bc5788 Backed out changeset 121bf69509b1 (bug 1022612) 2014-07-15 10:30:33 +02:00
Carsten "Tomcat" Book
01edcafbed Backed out changeset e95971991caa (bug 1022612) 2014-07-15 10:30:32 +02:00
Carsten "Tomcat" Book
ad58868a0e Backed out changeset c59ee68b1917 (bug 1022612) 2014-07-15 10:30:30 +02:00
Carsten "Tomcat" Book
f6066a44ab Backed out changeset 549e3cb9e111 (bug 1022612) 2014-07-15 10:30:27 +02:00
Carsten "Tomcat" Book
5ed54c9e2b Backed out changeset 376c45f4d905 (bug 1022612) 2014-07-15 10:30:26 +02:00
Carsten "Tomcat" Book
961e0d87fc Backed out changeset b4b6049145dc (bug 1022612) 2014-07-15 10:30:24 +02:00
Carsten "Tomcat" Book
a8721353c2 Backed out changeset 2f6cb0f412f7 (bug 1022612) 2014-07-15 10:30:23 +02:00
Carsten "Tomcat" Book
69f40e9ed0 Backed out changeset 032ba47c6684 (bug 1022612) 2014-07-15 10:30:21 +02:00
Carsten "Tomcat" Book
00bffdd365 Backed out changeset c081917e5626 (bug 1022612) 2014-07-15 10:30:19 +02:00
Carsten "Tomcat" Book
b004dd4d30 Backed out changeset f67228df9ae0 (bug 1022612) 2014-07-15 10:30:18 +02:00
Carsten "Tomcat" Book
4169dca7be Backed out changeset f5ec6bcf251f (bug 1022612) 2014-07-15 10:30:16 +02:00
Carsten "Tomcat" Book
291eab9669 Backed out changeset 79e0ce466219 (bug 1022612) 2014-07-15 10:30:14 +02:00
Carsten "Tomcat" Book
95251d074c Backed out changeset f89950384bf2 (bug 1022612) 2014-07-15 10:30:13 +02:00