Commit Graph

22442 Commits

Author SHA1 Message Date
Jonathan Kew
fed2e80e73 bug 1048050 - additional reftests to cover cases with and without region subtag. r=smontagu
--HG--
rename : layout/reftests/text-transform/greek-uppercase-1.html => layout/reftests/text-transform/greek-uppercase-1a.html
rename : layout/reftests/text-transform/greek-uppercase-1.html => layout/reftests/text-transform/greek-uppercase-1b.html
rename : layout/reftests/text-transform/irish-lowercase-1.html => layout/reftests/text-transform/irish-lowercase-1a.html
rename : layout/reftests/text-transform/irish-lowercase-1.html => layout/reftests/text-transform/irish-lowercase-1b.html
2014-08-11 09:49:14 +01:00
Jonathan Kew
0297d08f5d bug 1048050 - ignore region (or other) subtags when checking for language-specific casing behavior. r=smontagu 2014-08-11 09:49:11 +01:00
John Daggett
746163730b Bug 1051668 - add testdata for font-variant-alternates. r=mkato 2014-08-11 17:05:01 +09:00
John Daggett
9ada664571 Bug 1051668 - revise gsubtest fonts to include ss22..ss99 feature tags. r=mkato 2014-08-11 17:05:01 +09:00
Timothy Nikkel
7b846aeaf5 Bug 1051097. Set the initial visible rect correctly on the wrap list item stored inside transform display items. r=roc 2014-08-10 21:59:02 -05:00
Brian Birtles
813855dd9b Bug 1040543 part 11 - Make ElementPropertyTransition inherit from Animation instead of AnimationPlayer; r=bz
This patch changes the inheritance of ElementPropertyTransition so that it is
a subclass of Animation not AnimationPlayer.

The only thing special about ElementPropertyTransition is it stores some extra
state for reversing transitions and an extra ValuePortionFor convenience method.
This reversing behavior is implemented by the transition manager by creating
a new AnimationPlayer (i.e. it is *not* a property of the AnimationPlayer). As
a result this extra state can be pushed down to Animation which simplifies the
code significantly.

In future if we implement KeyframeEffect as a separate object we may be able to
push transition-specific state down to KeyframeEffect instead.
2014-08-10 17:06:52 +10:00
Brian Birtles
435e24f424 Bug 1040543 part 10 - Move mIsLastNotification from AnimationPlayer to Animation; r=bz
In this fourth step of dividing functionality between AnimationPlayer and
Animation, we move the mIsLastNotification and related methods/enums from
AnimationPlayer to Animation.

It is somewhat unclear where this belongs. This member is used to determine
which event to send for CSS Animations. The thinking behind moving this to
Animation is that if an animation that has already dispatched its animationstart
event was transferred to a new animation player with a similar current time then
I think it is expected that such an animation would *not* dispatch another
animationstart event. That suggests that event-state is a property of the
Animation not the AnimationPlayer.

Obviously, this needs to be defined somewhere (namely, the CSS Animations <->
Web Animations integration spec likely to become "CSS Animations Level 4"). Once
that behavior is agreed upon, if AnimationPlayer proves to be the more suitable
home for this member then it should be relatively straightforward to move the
member back at that time.
2014-08-10 17:06:51 +10:00
Brian Birtles
7cc2fe6201 Bug 1040543 part 9 - Move IsFinishedTransition from AnimationPlayer to Animation; r=bz
As the third step in dividing functionality between AnimationPlayer and
Animation this patch moves the mIsFinishedTransition member and related methods
from AnimationPlayer to Animation.

At the same time we rename SetFinishedTransition to SetIsFinishedTransition.
2014-08-10 17:06:51 +10:00
Brian Birtles
eee37dc2bd Bug 1040543 part 8 - Move timing parameters from AnimationPlayer to Animation; r=bz
As the second step in dividing functionality between AnimationPlayer and
Animation, this patch moves the AnimationTiming member from AnimationPlayer to
Animation.

Most of this patch is simply moving code around. However, one significant
functional difference is that Animation::GetLocalTime() uses the mParentTime
member which is set when the Animation is updated by the player it is attached
to.

Other less significant differences are:

* AnimationPlayer::GetLocalTime is renamed to GetCurrentTimeDuration
  In Web Animations, animation players have a (writeable) "current time" and
  animations have a (read-only) "local time".
  We would call the method simply "GetCurrentTime" (instead of
  "GetCurrentTimeDuration") but GetCurrentTime is the name of the method used in
  the content-facing API where it returns a double.

* "IsCurrent" is defined on both AnimationPlayer and Animation with the version
  in AnimationPlayer serving mostly as a convenience shortcut to the version on
  Animation.

* Animation::GetComputedTiming (previously on AnimationPlayer) now makes the
  timing parameter optional since most of the time it is not needed.
2014-08-10 17:06:50 +10:00
Brian Birtles
a66a1ea7b5 Bug 1040543 part 7 - Move keyframe properties from AnimationPlayer to Animation; r=bz
As the first step in dividing the functionality currently contained in
AnimationPlayer between AnimationPlayer and Animation this patch moves the set
of keyframe properties to the Animation.

These properties are returned from the Animation by a couple of Properties()
methods that provide direct access to the member variable. In future it is
anticipated that the non-const version will be replaced with an appropriate
setter function. This will likely happen when we implement a separate
KeyframeEffect object as defined by the Web Animations API.

With regards to error checking, nsAnimationManager checks the result of
AnimationPlayer::GetSource() and handles the case where it is nullptr.
nsTransitionManager, however, simply asserts that GetSource() is never null much
like it also asserts that there is only one property with one segment in the
animation. Eventually this code should be made more generic which will probably
happen in bug 999927.
2014-08-10 17:06:49 +10:00
Brian Birtles
cbee07055c Bug 1040543 part 6 - Rename mAnimations to mPlayers and likewise for similar local variables; r=bz
Now that we have both AnimationPlayer and Animation in use we need to clarify
which object we are referring to. This patch renames a number of member and
local variables to better reflect whether they point to an AnimationPlayer or an
Animation.

This patch is mostly renaming only with one exception. Since we are touching
a number of local variables used in loops (for looping over the array of
animation players) we take the opportunity to replace a number of instances of
uint32_t with size_t since that is the preferred type for array indices now.
2014-08-10 17:06:48 +10:00
Brian Birtles
9403f55c91 Bug 1040543 part 5 - Pass down time from AnimationPlayer to Animation; r=bz
This patch makes AnimationPlayers pass their current time down to the Animation
they are playing.

Since all Animations need from their players is their time, this avoids adding
a pointer back to their AnimationPlayer.
2014-08-10 17:06:48 +10:00
Brian Birtles
fd89e49012 Bug 1040543 part 4 - Create Animation objects and set on AnimationPlayer; r=bz 2014-08-10 17:06:47 +10:00
Brian Birtles
f5e61ac556 Bug 1040543 part 2 - Rename ElementAnimationCollection to AnimationPlayerCollection; r=bz 2014-08-10 17:06:46 +10:00
Brian Birtles
b1759d304e Bug 1040543 part 1 - Move/Rename ElementAnimations to dom::AnimationPlayer; r=bz
This patch renames mozilla::ElementAnimations to mozilla::dom::AnimationPlayer
and moves the code from layout/style/AnimationCommon.cpp to
dom/animation/AnimationPlayer.cpp.

It also moves various helper classes needed by AnimationPlayer to
AnimationPlayer.cpp and moves them from the mozilla::css namespace to the
mozilla namespace.

Beyond that, there are no functional changes contained in this patch.

The renaming of various members and variables that used to refer to
ElementAnimation objects but now refer to AnimationPlayer objects--to give them
a more appropriate name--is performed in a subsequent patch.

--HG--
rename : layout/style/AnimationCommon.cpp => dom/animation/AnimationPlayer.cpp
rename : layout/style/AnimationCommon.h => dom/animation/AnimationPlayer.h
2014-08-10 17:06:44 +10:00
Sylvestre Ledru
ac9d156829 Bug 1050715 - Update the description of the various tests targed proposed by './mach help' r=jmaher
--HG--
extra : rebase_source : 29019a02711ffce5c148787517051855259b6446
2014-08-09 15:37:29 +02:00
Bob Owen
0d8747443f Bug 1047509 - Part 12: Remove nsCxPusher in nsTextBoxFrame::UpdateAccesskey. r=bholley 2014-08-07 19:46:36 +01:00
Bob Owen
550812d67f Bug 1047509 - Part 11: Remove nsCxPusher in nsPresContext::MediaFeatureValuesChanged. r=bholley 2014-08-07 19:44:03 +01:00
Ting-Yu Lin
37f09d40d3 Bug 1046732 - Part 2: Test touch caret will be hidden by wheel event. r=ehsan
This test logic is similar to
_test_touch_caret_timeout_by_dragging_it_to_top_left_corner_after_timout.
2014-08-07 01:33:00 -04:00
Ting-Yu Lin
3fb776e5cc Bug 1046732 - Part 1: Fix incorrect event message used in TouchCaret.cpp. r=ehsan
NS_WHEEL_EVENT_START isn't a specific event message for compairing in
the switch case. Since we would like to hide touch caret whenever
receving wheel events, all the wheel event types are added.
2014-08-07 01:26:00 -04:00
Ryan VanderMeulen
7cc7f6d261 Backed out changesets 6ee4b6cc240c, a818fd0874fe, and 70803a5f4683 (bug 1033442) for multiple crashtest oranges. 2014-08-08 21:54:58 -04:00
Georgios Kontaxis
2a0f090617 Bug 1044181: style loader now annotates classified tracking nodes r=dbaron 2014-08-08 15:16:34 -07:00
Ehsan Akhgari
fe63ad9049 Bug 1050845 - Add will-change: auto to full-screen-override.css; r=dbaron 2014-08-08 20:25:21 -04:00
Terrence Cole
303bb4d645 Bug 1033442 - Remove non-pod calloc from MallocProvider and AllocPolicy; r=jonco 2014-08-05 14:06:35 -07:00
Daniel Holbert
3cc5ee67f8 Bug 1049075: Remove unnecessary "virtual" keyword from ~nsGridCell (which nothing derives from & inherits from nothing). r=tn 2014-08-08 15:22:26 -07:00
Kartikaya Gupta
9380d25515 Bug 1046344 - Update some ifdefs to account for MOZ_ANDROID_APZ. r=snorp 2014-08-08 17:42:25 -04:00
Daniel Holbert
63967130cc Bug 1051020: Update URL of flexbox spec in flexbox reftests. (no review; test-metadata-only) 2014-08-08 14:40:03 -07:00
Ryan VanderMeulen
9380b64ae7 Backed out changeset 05e4c47f1e98 (bug 1036186) for Mulet mochitest bustage.
CLOSED TREE
2014-08-08 13:29:28 -04:00
Markus Stange
dba9e8b356 Backed out changeset 411a075b3624 (bug 987030) because it probably caused timeouts of browser_tabview_expander.js. CLOSED TREE 2014-08-08 18:05:40 +02:00
Morris Tseng
1c2fa9e9d0 Bug 1050095 - Prevent drag event when calling SelectionCarets::SelectWord(). r=roc 2014-08-06 23:08:00 -04:00
Birunthan Mohanathas
1309100133 Bug 1049997 - Separate statements declaring multiple pointers into separate statements. r=froydnj 2014-08-08 07:04:45 -07:00
Peter Van der Beken
0d58fd0aa8 Bug 1036186 - Reset Migration wizard no longer skips the first step to choose a browser. r=smaug.
--HG--
extra : rebase_source : ba21f0355293c08c8b97eec9082c1a77a90f5c30
2014-08-08 15:03:29 +02:00
Robert O'Callahan
ae64bac44a Bug 1050096. Clip scrollparts to the viewport for root scrollframes. r=tnikkel 2014-08-09 01:00:53 +12:00
Robert O'Callahan
28409a4a31 Bug 1043163. Avoid negative widths and heights due to overflow. r=mats
--HG--
extra : rebase_source : 62db3ad669f7a965672ea6bbab1b932c4a07040f
2014-08-06 17:19:23 +12:00
Markus Stange
63a86a5836 Bug 1050471 - Reset the valid region of a thebes layer if it gets optimized away to a ColorLayer or an ImageLayer. r=roc 2014-08-08 12:47:32 +02:00
Markus Stange
f425c9e3e7 Bug 987030 - Fix compressed paint timer scheduling. r=roc 2014-08-08 12:46:50 +02:00
Markus Stange
57f568303e Bug 1050229 - Use matchMedia when computing the value for the windowsDefaultTheme reftest variable. r=ehsan 2014-08-08 12:46:48 +02:00
Nicholas Nethercote
8c60d14a1a Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc.
* * *
imported patch rm-dummy-params

--HG--
extra : rebase_source : c25987eb11bae197218d5fc53b77def19afa36ac
2014-08-06 06:31:21 -07:00
Daniel Holbert
54bcb09759 Bug 1032922 part 2: Rename flex-basis's "auto" keyword to "main-size" (but retain "flex:auto" as shorthand for "1 1 main-size"). r=heycam 2014-08-07 22:11:48 -07:00
Daniel Holbert
ba4503e6e6 Bug 1032922 part 1: Give "flex-basis" its own keyword table, instead of having it co-opt kWidthKTable. r=heycam 2014-08-07 22:11:47 -07:00
Daniel Holbert
e2bfd48301 Bug 1050412 part 2: Assert about frame type before static_casting, and drop useless null-check. r=tn 2014-08-07 22:07:16 -07:00
Daniel Holbert
609c60e648 Bug 1050412 part 1: Use nsFrameList::Enumerator in nsSimplePageSequenceFrame to iterate over child frames. r=tn 2014-08-07 22:07:15 -07:00
Matt Woodrow
bf25797bb7 Bug 969222 - Don't find a new frame pointer unless the previous one was deleted. r=smaug 2014-08-08 16:38:17 +12:00
Matt Woodrow
84c916ae97 Bug 1048110 - Pad visible regions out by 1 pixel to avoid sampling from invalid content. r=Bas 2014-08-05 12:17:47 +12:00
Timothy Nikkel
017cd225f7 Bug 1042772. Update the reference frame and current frame offset when moving to outside a transform so that we can use the correct offset to compute the initial visible rect for wrap list display items. r=roc
* * *
The current reference frame is still the same as our reference frame because we set and restore it in nsFrame::BuildDisplayListForChild before this. So we need to actually compute it.
2014-08-07 11:33:18 -05:00
Timothy Nikkel
e2c436edd8 Bug 1042772. offsetToReferenceFrame is always zero when we use it. Remove it. r=mattwoodrow 2014-08-07 11:33:16 -05:00
Timothy Nikkel
9ac497988e Bug 1042772. Set the dirty rect relative to the current frame, not the reference frame. r=roc
The offsetToReferenceFrame is to the reference frame for this, since we are transformed we are the reference frame, so the offset was 0,0. So the computation still produced correct results.
2014-08-07 11:33:14 -05:00
Ehsan Akhgari
5a033b2b9f Bug 1048246 - Fix more bad implicit constructors in layout; r=roc
--HG--
extra : rebase_source : ed828993139bc70232508364a9f046e38b7d3e06
2014-08-07 19:48:38 -04:00
Botond Ballo
78a15f128f Bug 1040087 - For root scroll frames, use the canvas background color calculated by the pres shell when overscrolling. r=tn 2014-08-06 18:05:11 -04:00
Ryan VanderMeulen
d4a25b4a60 Merge fx-team to m-c. a=merge 2014-08-07 17:24:52 -04:00