Commit Graph

21190 Commits

Author SHA1 Message Date
Brian Birtles
c9cad0a5c8 Bug 1004871 part 5 - Add ComputedTiming data structure; r=dholbert
This patch adds a ComputedTiming struct for storing the results of calculating
the timing properties of an animation at a given sample time.
2014-05-28 16:51:49 +09:00
Brian Birtles
b0f0bab622 Bug 1004871 part 4 - Move FillsForwards/FillsBackwards to AnimationTiming; r=dholbert
This patch moves the FillsForwards/FillsBackwards methods previously defined on
ElementAnimations to the structure contain the fill mode: AnimationTiming. It
also changes GetPositionInIteration to use these methods.
2014-05-28 16:51:49 +09:00
Brian Birtles
9f3b8d91b0 Bug 1004871 part 3 - Replace parameters to GetPositionInIteration with an AnimationTiming object; r=dholbert
This patch makes use of the AnimationTiming struct introduced in the previous
patch to simplify calls to ElementAnimations::GetPositionInIteration.
2014-05-28 16:51:49 +09:00
Brian Birtles
1fa5b12248 Bug 1004871 part 2 - Add AnimationTiming struct, to encapsulate animation timing parameters; r=dholbert
Introduces a struct to store timing parameters for passing to
GetPositionInIteration. In future this struct is expected to be expanded to
include other timing parameters as well (based roughly on Web Animations'
"Timing" interface, hence the name AnimationTiming).
2014-05-28 16:51:49 +09:00
Brian Birtles
f06a971a86 Bug 1004871 part 1 - Factor event queuing out of EnsureStyleRuleFor; r=dholbert
This patch moves event queuing out of EnsureStyleRuleFor into a separate method.
This is a preparatory step towards making GetPositionInIteration into a more
generic method for calculating the current time fraction.

In order to achieve this, GetPositionInIteration needs to be able to calculate
the correct time portion for times outside the range [0, 1] even when it is not
passed a ElementAnimation object. Specifically, it needs the fill mode of the
animation to be passed in.

(Rather than using FillForwards/FillBackwards this patch just compares the
NS_STYLE_ANIMATION_FILL_MODE_* values directly but FillForwards/FillBackwards
are restored in a subsequent patch when they are added to the struct used to
lump the timing parameters together.)

There are a number of places where positionInIteration is used to determine if
the current sample occurs in the active phase or after. This is sub-optimal but
is fixed in a subsequent patch in this series.

The actual work of removing event queuing from GetPositionInIteration is
deferred to a subsequent patch in order to keep the changes as small as
possible. This patch simply makes separate calls to GetPositionInIteration for
interpolating and for event queuing.
2014-05-28 16:51:48 +09:00
Robert O'Callahan
2124e37b3a Bug 1014252. Optimize clearing of textruns via RemoveInFlows. r=matspal
We're keeping the core idea that, before we remove the frames-to-be-destroyed
from the continuation chain, their textruns need to be disconnected/destroyed.
However, nsContinuingTextFrame::DestroyFrom tries to optimize when the
destroying frames that aren't mentioned in the userdata for the textrun, and
certain other conditions are met; we need a similar optimization here. It's
simpler here because the other conditions are definitely met, since all the
text for the frames being deleted has already been consumed and reflowed by
previous frames.

We don't need the TEXT_STYLE_MATCHES_PREV_CONTINUATION state bit anymore
because nsContinuingTextFrame::DestroyFrom will never see any textruns when
called via RemoveEmptyInFlows.

--HG--
extra : rebase_source : 6544f923499ef604d48ec15961716549dd25d279
2014-05-28 15:39:25 +12:00
Ryan VanderMeulen
466e829323 Merge inbound to m-c on a CLOSED TREE. 2014-05-27 16:23:41 -04:00
Kershaw Chang
ad73b6d2a0 Bug 1013094 - Rename browser.manifestURL and browser.homescreenURL, r=fabrice 2014-05-27 18:01:01 +08:00
Phil Ringnalda
895505330a Bug 981477 followup, skip one more newly-added XUL reftest on OOP b2g
CLOSED TREE
2014-05-26 23:20:30 -07:00
Carsten "Tomcat" Book
47658629d0 merge b2g-inbound to mozilla-central 2014-05-26 15:26:11 +02:00
Carsten "Tomcat" Book
1fcce63254 merge fx-team to mozilla-central 2014-05-26 14:59:21 +02:00
Phil Ringnalda
4281499af6 Bug 981477 followup, revert marking invalidation/transform-floating-point-invalidation.html?reverse as failing on OOP b2g since it passes 2014-05-24 13:54:28 -07:00
Wes Kocher
ba20852950 Merge m-c to b2g-inbound 2014-05-23 17:39:48 -07:00
Vincent Chen
4f8581f3b6 Bug 981477 - Disable B2G emulator reftests that fail oop, r=ahal 2014-05-23 15:56:15 -04:00
Andrew Halberstadt
51d8d929fc Bug 922680 - Enable out of process b2g emulator reftests, r=jgriffin 2014-05-23 15:55:54 -04:00
Mike Conley
6f1e8b32fb Bug 978913 - Dragging e10s window between HiDPI and non-HiDPI displays causes text to be scaled incorrectly. r=smaug. 2014-05-23 10:36:50 -04:00
Andrew Halberstadt
128c51e5c2 Bug 1009730 - Stop using /data/local/user.js in b2g unittests, r=jgriffin 2014-05-22 15:47:52 -04:00
Andrew Halberstadt
9b0b8e8fab Bug 1014192 - Add command line option to toggle b2g reftests running oop, r=jgriffin 2014-05-22 14:43:51 -04:00
Frédéric Wang
9fcaf70d77 Bug 1014601 - Add some OpenType MATH fonts into mathml.css. r=karl 2014-05-23 08:51:00 +02:00
Matt Woodrow
ca8a3778af Bug 1013771 - Dump nsDisplayTransform transforms during display list dumping. r=roc 2014-05-22 14:36:26 +12:00
Boris Zbarsky
834808ffd3 Bug 999456. Page load events should not be cancelable. r=smaug 2014-05-22 00:23:51 -04:00
Timothy Nikkel
074465432f Bug 1013780. Silly bustage fixup. 2014-05-21 23:17:56 -05:00
Timothy Nikkel
94569d08b7 Bug 1013780. Only create displayports during display list building if the display list is for painting to the screen. r=botond 2014-05-21 23:14:49 -05:00
Masayuki Nakano
f645b23ffb Bug 1009388 part.4 nsMenuFrame should use WidgetEvent::AccelModifier() for consistency with other modules r=smaug+enndeakin 2014-05-22 13:06:06 +09:00
Birunthan Mohanathas
849371302f Bug 869836 - Part 9: Use AssignLiteral instead of Assign(NS_LITERAL_STRING(...)). r=ehsan 2014-05-22 06:48:52 +03:00
Birunthan Mohanathas
f59f0e1fd0 Bug 869836 - Part 8: Use Append('c') instead of Append("c"). r=ehsan 2014-05-22 06:48:52 +03:00
Birunthan Mohanathas
c6f127456b Bug 869836 - Part 7: Use AppendLiteral instead of Append where possible. r=ehsan 2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
fa0eb27120 Bug 869836 - Part 6: Use EqualsLiteral instead of Equals where possible. r=ehsan 2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
53a11ecbdf Bug 869836 - Part 4: Use EqualsLiteral instead of Equals(NS_LITERAL_STRING(...)). r=ehsan 2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
016d46e5f3 Bug 869836 - Part 3: Use Append('c') instead of AppendLiteral("c"). r=ehsan 2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
41bdca1ff6 Bug 869836 - Part 2: Use AppendLiteral instead of Append(NS_LITERAL_STRING(...)). r=ehsan 2014-05-22 06:48:50 +03:00
Birunthan Mohanathas
34c5fc5a49 Bug 869836 - Part 1: Use EqualsLiteral instead of == NS_LITERAL_STRING(...). r=ehsan 2014-05-22 06:48:50 +03:00
Wes Kocher
4fd3e47dc9 Backed out changeset 91d280c835b2 (bug 1013771) for b2g osx build bustage 2014-05-21 20:00:33 -07:00
Matt Woodrow
e43dbfd110 Bug 1013771 - Dump nsDisplayTransform transforms during display list dumping. r=roc 2014-05-22 14:36:26 +12:00
Matt Woodrow
a00ad1aed9 Bug 1013536 - Clip paint flashing area when using single-rect painting mode. r=Bas 2014-05-22 14:36:26 +12:00
Mats Palmgren
4f29b4146b Bug 1009329 - Make crashtests/724978.xhtml trigger fewer reflows to not timeout. r=dholbert 2014-05-13 05:09:00 -04:00
Jared Wein
1e64d98efa Bug 1000513 - Allow menuitems in menupopups to be children of a menugroup for horizontal arrangement. r=enn
--HG--
extra : rebase_source : 9e6f99b95e48f26aae2c3f7b8ee436781451a299
2014-05-12 16:23:12 -04:00
Wes Kocher
d7647deae8 Merge m-c to inbound 2014-05-22 17:55:00 -07:00
Daniel Holbert
278d0a41b3 backout c3f1ab75ea51 (bug 421436) for regressing bug 439462 2014-05-22 15:10:20 -07:00
Ehsan Akhgari
a139e21150 Bug 741295 - Part 0.1: Undo the windows.h damage in nsObjectFrame.h 2014-05-22 18:09:03 -04:00
Ryan VanderMeulen
8687f8b970 Backed out changeset f1068bf18e64 (bug 978913) for bustage on most platforms.
CLOSED TREE
2014-05-22 16:39:46 -04:00
Mike Conley
6bfe830af6 Bug 978913 - Dragging e10s window between HiDPI and non-HiDPI displays causes text to be scaled incorrectly. r=smaug. 2014-05-22 12:07:27 -04:00
Kartikaya Gupta
ff2a1d8115 Bug 1001438 - Refactor the GetDisplayPortImpl code for readability. r=tn 2014-05-21 12:06:03 -04:00
Kartikaya Gupta
608ac02123 Bug 1001438 - Remove setCriticalDisplayPortForElement and have the getter function automatically compute it. r=tn 2014-05-21 12:06:02 -04:00
Kartikaya Gupta
3b4f90a726 Bug 1001438 - Rearrange the code in nsLayoutUtils::GetDisplayPort. r=tn 2014-05-21 12:06:02 -04:00
Simon Montagu
cf3796bc12 Remove the hack making all <br> frames 1 app unit wide. Bug 421436, r=roc 2014-05-13 07:12:16 -07:00
Shigeyuki Tsukihashi
2388693cce Bug 999964 part 2 - mochitest, reftest for Bug 999964; r=longsonr 2014-05-15 11:03:49 +09:00
Shigeyuki Tsukihashi
493b6611e1 Bug 999964 part 1 - Patch for SVG 2 getBBox method; r=longsonr, r=bz 2014-05-13 10:24:35 +09:00
Simon Montagu
352872b697 Backout 38b25d5e6cf9 because assertions 2014-05-25 03:15:00 -07:00
Simon Montagu
036f3f407e Add a WritingMode argument to nsHTMLReflowMetrics::ISize() and BSize(). Bug 789096, r=jfkthame 2014-05-24 23:47:04 -07:00