Commit Graph

206841 Commits

Author SHA1 Message Date
Cameron McCormack
40fb431145 Bug 979133 - Add facility to log the restyle process. r=dbaron
Set the MOZ_DEBUG_RESTYLE environment variable and every restyle will have
detailed logging printed to stderr. By default, restyles for animations are
not logged; you can include them by also setting MOZ_DEBUG_RESTYLE_ANIMATIONS.

If you wish to limit restyle logging to a particular change, you can call
nsPresContext::StartRestyleLogging() and nsPresContext::StopRestyleLogging()
at appropriate points. (You might want to add a couple of helper methods
temporarily on nsIDocument and then expose them to your page with Web IDL
to make them easier to call.) You do not need to have set MOZ_DEBUG_RESTYLE
for this to work.
2014-09-25 15:45:36 +10:00
Cameron McCormack
8cc28ad642 Back out bug 1045895 for causing bug 1070759. 2014-09-25 15:30:18 +10:00
Brian Birtles
c0aa1e51cf Bug 1039924 part 8 - Include FloatingPoint.h in StickyTimeDuration.h; r=froydnj
Overlooked review feedback from comment:

  https://bugzilla.mozilla.org/show_bug.cgi?id=1039924#c43
2014-09-25 14:35:51 +09:00
Brian Birtles
953d64c3f3 Bug 1039924 part 7 - Add unary minus operator to BaseTimeDuration; r=froydnj
This patch adds the unary minus operator so, for example, we can write:

  TimeDuration sinceBeforeYourSunBurnedHot = -TimeDuration::Forever();
2014-09-25 14:25:50 +09:00
Brian Birtles
6673d589fa Bug 1039924 part 6 - Use StickyTimeDuration for timing calculations; r=dholbert
This patch takes the StickyTimeDuration defined in the previous patch and
uses it within the calculation of animation timing for parameters that are
expected to be +/- Forever.
2014-09-25 14:25:50 +09:00
Brian Birtles
4c6a27410d Bug 1039924 part 5 - Add StickyTimeDuration; r=froydnj
This patch adds another implementation of BaseTimeDuration's ValueCalculator
template parameter that is careful to preserve Forever/-Forever values when
performing arithmetic.

It also defines a typedef for a specialization of BaseTimeDuration that uses
this new ValueCalculator definition.
2014-09-25 14:25:50 +09:00
Brian Birtles
c4e801e7cf Bug 1039924 part 4 - Fill out TimeDurationValueCalculator and use it; r=froydnj
This patch builds on the templatization from the previous patch to move
arithmetic on the mValue member of BaseTimeDuration to the ValueCalculator
template parameter.
2014-09-25 14:25:49 +09:00
Brian Birtles
99025a6c9b Bug 1039924 part 3 - Templatize TimeDuration so it can support different behaviors with regards to tick count arithmetic; r=froydnj
This patch prepares the way for having a separate StickyTimeDuration class
by factoring TimeDuration into a templated base class: BaseTimeDuration.
BaseTimeDuration takes a templated parameter, ValueCalculator, which is a helper
object that defines how various arithmetic operations are performed on its
mValue member (an int64_t count of ticks).

This patch does not actually define or use the ValueCalculator parameter yet but
simply performs the renaming and templatization.

With regards to the templatization, arithmetic operators are defined to take
objects with the same ValueCalculator template parameter (so that we don't, for
example, apply non-safe arithmetic to a StickyTimeDuration).
However, comparison operators are defined to also operate on objects with
a different ValueCalculator template parameter since comparison should be
independent of the type of arithmetic used.

Likewise, the constructor and assignment operator are defined to operate on
objects with a different ValueCalculator template parameter so that objects can
be converted from TimeDuration to StickyTimeDuration and vice-versa.
The constructor is marked as explicit, however, so that we don't silently
convert a StickyTimeDuration to a TimeDuration and unwittingly apply
non-safe arithmetic to a StickyTimeDuration.

TimeDuration is defined as a specialization of BaseTimeDuration that uses
TimeDurationValueCalculator as its ValueCalculator type.
TimeDurationValueCalculator is filled-in in a subsequent patch.
2014-09-25 14:25:49 +09:00
Brian Birtles
c668976a1d Bug 1039924 part 2 - Convert between Forever and Infinity when converting TimeDurations; r=froydnj
Now that the implementation of a number of TimeDuration methods have been
delegated to a separate TimeDurationPlatformUtils class, it is easier to add
consistent handling to the parameters passed to and from those methods.

This patch adds checks when converting between TimeDurations and doubles so that
Forever (represented by a tick count of INT64_MAX) is paired with
PositiveInfinity, and INT64_MIN is paired with NegativeInfinity.
2014-09-25 14:25:49 +09:00
Brian Birtles
01e071c1ca Bug 1039924 part 1 - Separate platform-dependent parts of TimeDuration into TimeDurationPlatformUtils; r=froydnj
In order to have different templated versions of TimeDuration we first split out
the platform-specific code so that this code doesn't need to concern itself with
templates (and because putting template code in .cpp files is messy).
2014-09-25 14:25:48 +09:00
Phil Ringnalda
14f9d99fc1 Back out c0c410aed86f (bug 979133) for -wError bustage
CLOSED TREE
2014-09-24 21:06:22 -07:00
John Daggett
6fb8e38803 Bug 998869 part 5 - lazily load userfonts (non-linux). r=jfkthame 2014-09-25 12:16:54 +09:00
John Daggett
b08eeaabee Bug 998869 part 4 - rename fontgroup methods. r=heycam 2014-09-25 12:16:54 +09:00
John Daggett
ec86ee2a35 Bug 998869 part 3 - rename userfont class methods. r=heycam 2014-09-25 12:16:53 +09:00
John Daggett
8d40c31973 Bug 998869 part 2 - switch to GetFontAt(0) to GetFirstValidFont(). r=jfkthame 2014-09-25 12:16:53 +09:00
John Daggett
4346fec693 Bug 998869 part 1 - build fontlist more lazily (non-linux). r=jfkthame 2014-09-25 12:16:52 +09:00
Cameron McCormack
3483fb3f51 Bug 979133 - Add facility to log the restyle process. r=dbaron
Set the MOZ_DEBUG_RESTYLE environment variable and every restyle will have
detailed logging printed to stderr.  By default, restyles for animations are
not logged; you can include them by also setting MOZ_DEBUG_RESTYLE_ANIMATIONS.

If you wish to limit restyle logging to a particular change, you can call
nsPresContext::StartRestyleLogging() and nsPresContext::StopRestyleLogging()
at appropriate points.  (You might want to add a couple of helper methods
temporarily on nsIDocument and then expose them to your page with Web IDL
to make them easier to call.)  You do not need to have set MOZ_DEBUG_RESTYLE
for this to work.
2014-09-25 13:13:14 +10:00
Nathan Froyd
9425745b22 Bug 1069682 - part 1 - ensure the addon-sdk's JS modules include .html files; r=erikvold 2014-09-19 09:34:15 -04:00
Nathan Froyd
ac0256e922 Bug 1069682 - part 0 - ensure changes to addon-sdk's moz.build are reflected in the mozbuild.template; r=erikvold 2014-09-19 09:33:50 -04:00
Jeff Gilbert
0cfe76c68c Bug 1048108 - Exclude RGBA configs when alpha:false. - r=kamidphish 2014-09-24 16:42:27 -07:00
Bill McCloskey
56a0a49e46 Bug 1069704 - Fix broken deterministic JS build (lol=jorendorff) 2014-09-24 16:35:08 -07:00
Cameron McCormack
9f35e7d9c4 Bug 1072072 - Fix invalid @font-face rules in scoped-style-font-face.html. r=dbaron 2014-09-25 09:25:41 +10:00
Cameron McCormack
e37d13c897 Bug 1070316 - Factor out descriptor storage from nsCSSFontFaceStyleDecl. r=dbaron 2014-09-25 09:25:40 +10:00
Wes Kocher
6c202931ec Backed out 2 changesets (bug 95530) for mochitest-1 bustage
Backed out changeset 55f14ff238ad (bug 95530)
Backed out changeset 8228c732c7ee (bug 95530)
2014-09-24 15:58:59 -07:00
William Chen
08892173dd Bug 1071934 - Use GetComposedDoc() in nsVideoFrame. r=smaug 2014-09-24 15:52:12 -07:00
Ehsan Akhgari
526e56673f Bug 1072301 - Build the cross platform camera code in unified mode; r=mikeh 2014-09-24 18:43:26 -04:00
Ehsan Akhgari
28fc4fe229 Bug 1072289 - Build clearkey in unified mode; r=cpearce 2014-09-24 18:42:21 -04:00
Ehsan Akhgari
436e8035d6 Bug 1072294 - Build more files in content/media/mp4 in unified mode; r=cpearce 2014-09-24 18:41:48 -04:00
Mathias De Maré
8d41f312d8 Bug 95530 - add test for checking if the topmargin and leftmargin attributes on the BODY element are honored in all modes. r=dbaron 2014-09-18 21:21:18 +02:00
Sahil Chelaramani
c1644b6ca7 Bug 95530 - topmargin and leftmargin attributes on the BODY element should be honored in all modes (not just Quirks mode). r=dbaron 2014-09-24 14:47:48 -07:00
Seth Fowler
6f0ecafaa2 Bug 1072539 - Only ForceDiscard() in imgFrame::GetFrame() if it's safe to do so. r=tn 2014-09-24 14:26:13 -07:00
Markus Stange
91bc96aa11 Bug 1072533 - Remove gfxASurface::GetDefaultContextFlags(). r=jwatt 2014-09-24 17:16:54 -04:00
Markus Stange
9929e678c4 Bug 1072391 - Only minimize on double-click in draggable regions of the window. r=smichaud 2014-09-24 17:15:28 -04:00
Malini Das
6f5e37d31e Bug 1072503 - Remove unnecessary </dialog> tag from test_nested_iframe.xul. r=dburns 2014-09-24 12:13:00 -04:00
Rik Cabanier
3d7133f4e1 Bug 1072100 - mix-blend-mode doesn't work when set in JS. r=dbaron 2014-09-24 09:48:00 -04:00
Mason Chang
6dad1e4155 Bug 1071156 - Raise compositor thread priority to nice -4. r=roc 2014-09-24 10:56:00 -04:00
Ting-Yu Lin
1a70440095 Bug 1070851 - Make touch caret respect snapshotWindow(). r=roc
Avoid capture touch caret when the argument 'withCaret' is false in
snapshotWindow().
2014-09-24 01:26:00 -04:00
Vasanthakumar Pandurangan
71d36ef9a8 Bug 1059700 - AudioOffloadPlayer: Use wakelock to avoid suspend between pause and reset. r=roc 2014-09-24 01:22:57 -07:00
Michael Henretty
be5cc7b9e5 Bug 960762 - Disable notification storage tests for non-debug builds too. r=gerard-majax 2014-09-23 14:20:32 -07:00
mycoolclub
e0834b443f Bug 606520 - Add support for exiting fullscreen via the Windows command menu. r=jimm 2014-09-24 03:54:00 -04:00
Ryan VanderMeulen
96c3a38dc4 Backed out changeset ebd8df8e8631 (bug 1062323) for Gaia unit test failures. 2014-09-24 17:08:28 -04:00
Ryan VanderMeulen
79910dd5bf Merge m-c to inbound. a=merge
CLOSED TREE
2014-09-24 16:08:33 -04:00
Ryan VanderMeulen
36c25772d1 Merge fx-team to m-c. a=merge 2014-09-24 15:58:32 -04:00
Ryan VanderMeulen
b60b5210fb Merge b2g-inbound to m-c. a=merge 2014-09-24 15:54:10 -04:00
Ryan VanderMeulen
6d82d4d17c Bug 1006040 - Bump the nsIPopupBoxObject UUID.
CLOSED TREE
2014-09-24 15:17:01 -04:00
Ryan VanderMeulen
65053403b2 Bug 1072385 - Update Hyphen to version 2.8.8. r=jfkthame 2014-09-24 15:12:29 -04:00
Jim Chen
9988dcfe61 Bug 1066760 - Use more detailed abort message on Android; r=snorp 2014-09-24 14:12:54 -04:00
Jim Chen
c665929ae2 Bug 1066760 - Redirect mozalloc_abort through Java exception handling; r=snorp 2014-09-24 14:12:54 -04:00
Jim Chen
2253ecc621 Bug 1066760 - Add base address and fall back to system dladdr in __wrap_dladdr; r=froydnj 2014-09-24 14:12:54 -04:00
B2G Bumper Bot
c5f59282cc Bumping manifests a=b2g-bump 2014-09-24 11:11:56 -07:00