Commit Graph

183432 Commits

Author SHA1 Message Date
Brian Birtles
292493119c Bug 964646 part 10 - Fix floating point precision issues when comparing matrices; r=dbaron
This patch addresses and issue where the OMTA style and computed style were not
comparing equal in one particular case.

In this case AddTransformTranslate in nsStyleAnimation would give us
a translate-y value of 94.331673 in both cases (i.e. when calculating the
animated value on the compositor thread or when fetching computed style).

For the OMTA case, however, after we apply additional layer transformations and
then reverse them (so we can query the CSS value) we'd end up with 94.331642,
a difference of 0.000031. The reversing procedure is only used for testing so
the actual error introduced here by the additional layer transformations is
probably less.

Unfortunately, when we pass 94.331642 this along to MatrixToCSSValue we get back
matrix(1, 0, 0, 1, 94.3316) since it only outputs 6 digits of precision.

On the other hand, on the computed style end we'd pass 94.331673 to
MatrixToCSSValue which gives us matrix(1, 0, 0, 1, 94.3317), so the error swells
from 0.000031 to 0.0001.

Then when we subtract 94.3316 from 94.3317 in Javascript we get
0.00010000000000331966 due to floating-point precision issues which compares
greater than the default tolerance of 0.0001.

This patch simply adjusts the default tolerance to 0.00011 to accommodate
these floating-point differences.
2014-05-19 14:42:48 +09:00
Brian Birtles
425505c40f Bug 964646 part 9 - Add OMTA tests for animation-iteration-count; r=dbaron
This patch adds a version of tests in test_animations.html under the heading,
"css3-animation: 3.5 The 'animation-iteration-count' Property" for animations
that run on the compositor thread.

These tests surface an issue where in some cases precision errors lead to
discrepencies between the OMTA style and computed style. This is fixed in
a subsequent patch in this series.
2014-05-19 14:42:48 +09:00
Brian Birtles
23c84f7d70 Bug 964646 part 8 - Add OMTA tests for animation-name; r=dbaron
This patch adds a version of the tests in test_animations.html under the
heading, "css3-animations:  3.2. The 'animation-name' Property" that tests the
same features when animations are running on the compositor thread.
2014-05-19 14:42:48 +09:00
Brian Birtles
eaa6e189d4 Bug 964646 part 7 - Handle NaN values when comparing matrices; r=dbaron
The test harness code for normalizing transform inputs to a standard form for
comparison fails to detect the case where the input is a string such as

 { tx: "20px" }

instead of:

 { tx: 20 }

When we go to compare matrix components we fail if:

  Math.abs(a.comp - b.comp) > tolerance

But if a.comp or b.comp is a string, we'll get NaN on the LHS and
"NaN > tolerance" will return false so we'll skip the failure handling and
continue onto the next component. That means if we have input { tx: "30px" } and
we get "20" as the x-translation component we'll pass the test.

This patch fixes this condition to check for isNaN.

We *could* also just drop a few .map(parseFloat) calls into
convertObjectTo3dMatrix and convertArrayTo3dMatrix to ensure "20px" becomes 20
but there may be situations where that masks bugs (since "20px" and "20em" turn
into the same thing) so for now this minimal fix should be enough.
2014-05-19 14:42:48 +09:00
Brian Birtles
d5f38e23b6 Bug 964646 part 6 - Add OMTA tests for timing functions on keyframes; r=dbaron
This patch converts the tests in test_animations.html under the heading,
"css3-animations:  3.1. Timing functions for keyframes" to an equivalent version
for testing animations that run on the compositor thread.
2014-05-19 14:42:47 +09:00
Phil Ringnalda
21fa03a9d6 Back out 2708630b4998 (bug 899785) for webm-video/bug686957.html and random Win8 Ru bustage 2014-05-18 21:51:59 -07:00
Matt Woodrow
e0778db002 Bug 1012488 - Further increase the timeout for webm-video/bug686957.html to prevent intermittent failures. r=test-only 2014-05-19 14:07:49 +12:00
Bas Schouten
ed835fee47 Bug 984488: Blacklist Direct2D for Catalyst 14.4 drivers. r=bjacob 2014-05-19 00:37:17 +02:00
Karl Tomlinson
7d54d52097 b=1010000 update mTracksKnownTime when finishing a stream r=roc
and use this in StreamBuffer::GetAllTracksEnd() to detect when no more tracks
will be added.

--HG--
extra : transplant_source : %B7A-%7EV%94%E1%CE%15%1C%15%7B%84%D5%F1%1D%A2%CF%EC%15
2014-05-19 08:26:54 +12:00
Karl Tomlinson
192a212755 b=1010000 update SourceMediaStream::Finish() doc as AdvanceKnownTracksTime() info is incorrect since e526d37a9a19 r=roc
--HG--
extra : transplant_source : B%92%A3%83K%D0%8AE%8A%F32%D1E%0F%DA%0E%C0%AE%27%03
2014-05-19 08:24:01 +12:00
Honza Bambas
9f27c74a01 Bug 1011150 - HTTP cache v2: reimplement AsyncDoomURI for appcache storage, r=michal 2014-05-18 20:03:57 +02:00
Honza Bambas
592c809abb Bug 1012331 - Let CacheFile::PreloadChunks use mPreloadChunkCount instead of prefs, r=michal 2014-05-18 20:03:57 +02:00
Honza Bambas
82f67cb80b Bug 1012327 - HTTP cache v2: add any missing prefs to all.js, r=michal 2014-05-18 20:03:57 +02:00
Honza Bambas
2a3f9f44d0 Bug 1010783 - Base CacheFileInputStream::Read on ReadSegments - test, r=michal 2014-05-18 20:03:57 +02:00
Randell Jesup
ff586c032f Bug 1006285: make MediaCodec bitrate setting work for KitKat-based builds r=jhlin 2014-05-18 10:17:01 -04:00
Marco Castelluccio
9d51a7ca59 Bug 972201 - Remove the MOZ_B2G_CERTDATA hack. r=briansmith 2014-05-18 15:42:42 +02:00
Michal Novotny
de296d752e Bug 1010783 - Base CacheFileInputStream::Read on ReadSegments, r=honzab 2014-05-18 09:31:38 +02:00
Bas Schouten
bcb3ed3be6 Bug 899785: Switch on OMTC along with Async video on windows. r=BenWa 2014-05-18 08:00:10 +02:00
Bas Schouten
eb66aa514a Bug 1012198: Allow BasicCompositor to be used on windows. r=BenWa 2014-05-18 08:00:09 +02:00
Josh Aas
ac37f96c10 Bustage fix for Gecko Media Plugins landing, bug 957928. 2014-05-17 23:25:36 -05:00
Josh Aas
e9bbf99ccf Bustage fix for Gecko Media Plugins landing, bug 957928. 2014-05-17 22:44:47 -05:00
Nicholas Cameron
769de3863e Bug 896896. Use MsgWaitForMultipleObjectsEx instead of WaitMessage. r=roc 2013-07-31 08:51:45 +12:00
Bas Schouten
619be8bc6a Bug 1009616: Specify async video separately for content-processes. r=nical 2014-05-18 05:16:51 +02:00
Bas Schouten
720df78442 Bug 1009590: Deal with non-ui-thread IPDL usage on Windows. r=bent 2014-05-18 05:16:51 +02:00
Josh Aas
a335294c66 Bug 957928: Gecko Media Plugins implementation. No consumers in Gecko yet. r=bent 2014-05-17 22:05:46 -05:00
Daniel Holbert
9fde6a894c Bug 1011311: Drop no-longer-necessary check on availableFreeSpace's sign, in ResolveFlexibleLengths(). r=mats 2014-05-17 18:49:47 -07:00
Daniel Holbert
de1b127bc9 Bug 1005660: Add an "early freeze" step, to freeze flex items that clearly can't grow (or shrink, if we're shrinking). r=mats 2014-05-17 18:49:06 -07:00
Phil Ringnalda
1b7d4536c1 Merge m-c to m-i 2014-05-17 18:10:25 -07:00
Phil Ringnalda
f31a524186 Merge f-t to m-c 2014-05-17 18:05:32 -07:00
Phil Ringnalda
bf36678363 Merge m-i to m-c 2014-05-17 17:54:55 -07:00
Phil Ringnalda
652a096549 Back out a4b51aff4b3c (bug 957928) for build bustage
CLOSED TREE
2014-05-17 17:43:07 -07:00
Josh Aas
303ffbe0e1 Bug 957928: Gecko Media Plugins implementation. No consumers in Gecko yet. r=bent 2014-05-17 18:53:03 -05:00
Brian Hackett
f3744195cf Bug 1011879 - Fixup code offsets correctly when pushing jump targets in irregexp, r=jandem. 2014-05-17 16:22:19 -07:00
Mats Palmgren
b605175109 Bug 1008908 - Remove assignment since the value isn't used. r=smontagu 2014-05-17 23:10:53 +00:00
Mats Palmgren
164b7824a1 Bug 1009263 - Add nsCheapSets::Clear() method that removes all entries and return it to minimal size in terms of memory use. r=bsmedberg 2014-05-17 23:10:53 +00:00
Mats Palmgren
fd3dea58d6 Bug 1011163 - Remove the border which isn't essential for the test since it caused orange due to focus issues. r=me 2014-05-17 23:10:52 +00:00
Phil Ringnalda
dcea8bd0b3 Back out d18b1b320eea (bug 1008753) for marionette-webapi and gaia-unit bustage 2014-05-17 08:32:45 -07:00
ffxbld
67d1ab5218 No bug, Automated HSTS preload list update from host bld-linux64-spot-358 - a=hsts-update 2014-05-17 03:15:04 -07:00
Robert Utasi
3aae13bba8 Bug 1011425 - adding missing label for autorefresh checkbox, r=ttaubert 2014-05-17 06:42:08 +02:00
Wes Kocher
0c5a7facf3 Merge fx-team to m-c 2014-05-16 16:44:34 -07:00
B2G Bumper Bot
c462908f24 Bumping manifests a=b2g-bump 2014-05-16 14:01:45 -07:00
B2G Bumper Bot
433828abed Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/896e4c28c82d
Author: russnicoletti <rnicoletti@mozilla.com>
Desc: Merge pull request #18546 from russnicoletti/showPlayer_unit_testing

Bug 979636 - Unit tests for video app -- showPlayer unit tests

========

https://hg.mozilla.org/integration/gaia-central/rev/c7fabd4a7e40
Author: Russ Nicoletti <rnicoletti@mozilla.com>
Desc: Bug 979636 - Unit tests for video app -- showPlayer unit tests
2014-05-16 13:55:56 -07:00
Ryan VanderMeulen
b82f9a59e7 Merge m-c to b2g-inbound. 2014-05-16 15:29:08 -04:00
B2G Bumper Bot
b0c053d3c6 Bumping manifests a=b2g-bump 2014-05-16 12:28:00 -07:00
Ryan VanderMeulen
fe169d183c Merge b2g-inbound to m-c. 2014-05-16 15:26:00 -04:00
Ryan VanderMeulen
ef4c86e7c4 Merge fx-team to m-c. 2014-05-16 15:06:03 -04:00
B2G Bumper Bot
620c577cf5 Bumping manifests a=b2g-bump 2014-05-16 11:46:29 -07:00
B2G Bumper Bot
2734f19435 Bumping gaia.json for 4 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/80e022c6b46d
Author: Kevin Grandon <kevingrandon@yahoo.com>
Desc: Merge pull request #19300 from KevinGrandon/bug_1010640_home2_shadows

Bug 1010640 - [Home2] Implement new thin dropshadows for app icons

========

https://hg.mozilla.org/integration/gaia-central/rev/77a0c20068b4
Author: Kevin Grandon <kevingrandon@yahoo.com>
Desc: Bug 1010640 - [Home2] Implement new thin dropshadows for app icons r=crdlc

========

https://hg.mozilla.org/integration/gaia-central/rev/56e2f2b4684d
Author: Ryan VanderMeulen <rvandermeulen@mozilla.com>
Desc: Merge pull request #19329 from flodolo/bug1011558

Bug 1011558 - [SMS] Attachment download indicator: improve l10n comments

========

https://hg.mozilla.org/integration/gaia-central/rev/c71c2c1b78a9
Author: Francesco Lodolo (:flod) <flod@lodolo.net>
Desc: Bug 1011558 - [SMS] Attachment download indicator: improve localization comments
2014-05-16 11:41:00 -07:00
Vicamo Yang
89a1c0a65a Bug 866938 - 4.e/4: add xpcshell test cases for Address.resolveType. r=gene 2014-05-17 02:25:37 +08:00
Vicamo Yang
48c32b3abb Bug 866938 - 4.d/4: add test_mmdb_upgradeSchema_22.js. r=gene 2014-05-17 02:25:37 +08:00