Commit Graph

365567 Commits

Author SHA1 Message Date
Susanna Bowen
54022443a3 Bug 727125 - Lazily compute LineBaselineOffset when needed so it is present after a dynamic change of 'text-decoration'. r=dbaron
This fixes the positioning of underlines set on a block or its ancestor
when drawn on children of a block that have a vertical-align !=
baseline.

The lazy computation is done all at once for all children of a block to
avoid O(N^2) searches for the line containing a frame.
2014-06-06 11:32:00 -04:00
Kartikaya Gupta
8887e500a1 Bug 1021248 - Update the low-res tiles even when not in risk of checkerboarding. r=Cwiiis 2014-06-12 09:17:04 -04:00
Byron Campen [:bwc]
77f21e56c7 Bug 1022776 - Bump max transmit count by 1 and modify unit-tests to compensate. r=ekr 2014-06-09 17:31:44 -07:00
Brian Hackett
56158800ea Bug 1019684 - Turn an assert into a release mode crash instead. r=mjrosenb 2014-06-12 09:11:00 -04:00
Abdul Qadeer
e25e863297 Bug 972329 - Install setuptools as part of bootstrap. r=gps 2014-06-11 11:22:00 -07:00
Xidorn Quan
5b17a8fc75 Bug 966166 - Part 6: Tests for @counter-style. r=jfkthame, r=davidb 2014-06-11 21:14:00 -04:00
Xidorn Quan
1f715fcecd Bug 966166 - Part 5: Move computation code with minor changes. r=dbaron
In addition to moving the code, this patch also:
* changes the square character from U+25AA to U+25FE to match the spec
* changes all the generating functions from using append to using assign
* removes negative handling from CJKIdeographicToText since it is no longer used there
* fixes indentation and naming conventions
* changes buffer size in DecimalToText
2014-06-11 21:13:00 -04:00
Xidorn Quan
a711bc7355 Bug 966166 - Part 4: Rewrite some builtin counter styles. r=dbaron 2014-06-11 21:12:00 -04:00
Xidorn Quan
c011970f03 Bug 966166 - Part 3: Link to other parts. r=dbaron 2014-06-11 21:12:00 -04:00
Xidorn Quan
4831f428cc Bug 966166 - Part 2: Computation of counter style. r=dbaron 2014-06-11 21:11:00 -04:00
Xidorn Quan
96a68ed4e1 Bug 966166 - Part 1: Parse @counter-style rule. r=dbaron, r=bz 2014-06-11 21:10:00 -04:00
Ekanan Ketunuti
68bda46a83 Bug 956541 - Add Mozillian to the en-US dictionary. r=ehsan 2014-06-10 09:32:30 +07:00
Giovanni Sferro
71cc0169a0 Bug 597650 - Label controls don't apply to input controls with type="hidden". r=smaug 2014-06-09 21:51:00 -04:00
Ed Morley
bddaa172cb Backed out changeset cd50c7187a48 (bug 1022821) for compilation errors 2014-06-12 13:00:19 +01:00
Jonathan Watt
3e5bf1f4f6 Bug 1022821, part 2 - In gfx code, stop returning RefPtr and, where not an out-param, stop using RefPtr arguments. r=Cwiiis 2014-06-12 12:33:12 +01:00
Gijs Kruitbosch
84ebacb736 Bug 467442 - take transforms into account for popup placement, r=bz,f=tnikkel 2014-06-09 12:40:48 +01:00
Shu-yu Guo
723812d679 Bug 1023686 - Fix JSOP of definition nodes of non-hoisted declarations. (r=luke) 2014-06-12 00:27:46 -07:00
Shu-yu Guo
17e3efade0 Bug 1022948 - Fix FPU in PJS worker threads. (r=Waldo) 2014-06-11 01:51:37 -07:00
John Daggett
b3bdebe6e5 No bug. Add FiraSans Regular to reftest fonts, no effect on build. r=me 2014-06-12 16:15:38 +09:00
Karl Tomlinson
8b889b1ea2 b=1023697 use audio ticks for graph time units r=roc
--HG--
extra : transplant_source : 8%BA%9D%5C%E32%05x%A79K%08TH%A7%F4%F2tg%EC
2014-06-12 16:45:00 +12:00
Karl Tomlinson
4ee59eb7cc b=1023697 use 0 for initial graph time r=roc
We could get away with 1 as an initial time when units were 1/(1<<20) seconds
but when graph time units are audio samples, an initial value of 1 will mean
that the first audio block produced has 1 frame fewer.

--HG--
extra : transplant_source : %FF%D5%AF%A9%C7%EA%C4%D7%ED%8F%CC%AC%E4%5E%FF%D0%87%8D%3AN
2014-06-12 16:45:00 +12:00
Karl Tomlinson
9d196f97b5 b=1023697 add functions to convert between track ticks and seconds, and remove global MediaTime/second conversion functions r=roc
--HG--
extra : transplant_source : %F3%D8%C168%B7%A3%13%B2p%3Ee%89TkGlD%A8%A7
2014-06-12 16:45:00 +12:00
Karl Tomlinson
2db93f820a b=1023697 simplify StreamBuffer::ForgetUpTo() to avoid graph-rate-dependent conversions r=roc
--HG--
extra : transplant_source : %16%9C%08%CA%3E%DD%82%21%D2%90%7D%29%FB%D9L%9E%F8%2A%CBd
2014-06-12 16:44:59 +12:00
Karl Tomlinson
7b69861556 b=1023697 add functions to convert between track rates and remove global StreamTime/tick conversion functions r=roc
--HG--
extra : transplant_source : %B6%BC%83%17%22%EE%5D%BEl%B6%17m%1C%D0N%D1C%97%60%E1
2014-06-12 16:44:59 +12:00
Karl Tomlinson
1a9a77a15c b=1023697 record the graph tick rate on StreamBuffer and its Tracks for StreamTime calculations r=roc
--HG--
extra : transplant_source : 8%B4%DB%A4%FE%2C%B7%235%7F%7D5%2C%FA%BA%0D%9E%CC%7E%11
2014-06-12 16:44:59 +12:00
Karl Tomlinson
6bb9b6ad65 b=1023697 use MediaStream to convert between stream time and seconds/ticks in MediaPipeline r=roc
The fake graph needs an implementation of the conversion methods.

The real graph will change to use audio ticks for time in a subsequent patch,
but the fake graph doesn't know about MEDIA_TIME_FRAC_BITS, so that change
can be made now in the fake graph.

--HG--
extra : transplant_source : %22%C4%01Yh%5D%F0%A6%11%40%CD%B5%89%0A%8C%8A%C2%19%5E%CC
2014-06-12 16:44:58 +12:00
Karl Tomlinson
a22b5917c4 b=1023697 use MediaStream to convert between stream time and seconds in Web Audio r=roc
--HG--
extra : transplant_source : %FE%C77k/%25%B4%25F%FB1%EAAqn%CA%DEH%06%C0
2014-06-12 16:44:58 +12:00
Karl Tomlinson
9c81aeb06f b=1023697 use MediaStream to convert stream time to seconds in DOMMediaStream r=roc
--HG--
extra : transplant_source : %D4%9E%26%05%E3%8AQ%7B%D1%D1%E8%88j%DC%F7r.%7BJ%1A
2014-06-12 16:44:58 +12:00
Karl Tomlinson
a97203f710 b=1023697 use MediaStream to convert stream time to ticks in media engine sources r=roc
--HG--
extra : transplant_source : %F9O%C0T_%C9%8D%9C%3Bt%CB%60%EA%60%C3i_%E0A%9D
2014-06-12 16:44:57 +12:00
Karl Tomlinson
d8710ad720 b=1023697 use MediaStream to convert stream time to seconds in HTMLMediaElement r=roc
--HG--
extra : transplant_source : %7D%AF%00%8F%0F4%E3%3C.%F7%E2%92%BA%CB%92%0E/%19%CFM
2014-06-12 16:44:57 +12:00
Karl Tomlinson
4395ec0566 b=1023697 use MediaStream to convert ticks to time in MediaDecoderStateMachine r=roc
--HG--
extra : transplant_source : %EA%E0%A5rH%F6%F55%B0%28%3Eq%5C%8Ap%FC%06%3D%06%3B
2014-06-12 16:44:56 +12:00
Karl Tomlinson
6d42cde63e b=1023697 change MediaDecoderStateMachine::mSyncPointInMediaStream from StreamTime to µs r=roc
This allows the conversion from StreamTime to be performed while a stream is
available.

--HG--
extra : transplant_source : %3A%AD%5C%1A%84%C3%1BC%8B%04%D5%5B%90%3Cv%BE%A6%D6%C0%9D
2014-06-12 16:44:56 +12:00
Karl Tomlinson
a87b3e8941 b=1023697 add methods to MediaStream for tick and time conversions r=roc
When MediaTime depends on the audio rate of the graph, the stream will know the
graph rate and so can perform the conversion.

Existing methods in StreamBuffer.h and MediaSegment.h will be removed once
clients have been changed to the new methods.

--HG--
extra : transplant_source : %155uv%90%EC%81%C8%888%C4%17%AF%ED%1B%A0B%90%5E%26
2014-06-12 16:44:56 +12:00
Karl Tomlinson
39c1ba5c7b b=1023697 remove unused TicksToTimeRound() r=roc
--HG--
extra : transplant_source : %3E%84%B8%C7%25%EE%EEz%08%B9%ABx8%27%C3%BA%9C%F6%9D%ED
2014-06-12 16:44:55 +12:00
Karl Tomlinson
a159b57786 b=995690 don't advance audio output stream position 1 tick beyond what has been produced r=roc
This may result in repeating a sample sometimes due to rounding effects, but
that should only happen once per unblocked sequence of track frames.

--HG--
extra : transplant_source : %0C%E9%A4jq%286%96%B1%A9%AE%9F%1Cr%DCK%8F%AF%92i
2014-06-12 16:41:29 +12:00
Karl Tomlinson
4aa2c0e210 b=995690 correct mLastTickWritten to only advance when not blocked r=roc
mLastTickWritten and offset are stream positions, which do not advance when
the stream is blocked.

--HG--
extra : transplant_source : %15%7B%E5%E9.%89%BC%1E%F8%92%FD%3D%CB%10%FC%AD%EAT%90-
2014-06-12 16:40:51 +12:00
Brian Birtles
72cf77230c Bug 1004377 - Dispatch events for CSS Animations with empty keyframes rules; r=dholbert
This patch removes the check that skipped queueing events for animations
without keyframes since the spec indicates such animations should dispatch
events.

There is a further correctness fix here for the case where a keyframes rule
is modified using the CSSOM so that it becomes empty. Previously when we
came to create the new animation rules we would end up setting
ElementAnimations::mNeedRefreshes to false since we check if the keyframes
rule is empty and if it is we would skip all further processing (including
setting mNeedsRefreshes).

That means that:
(a) We may end up unregistering from the refresh observer so we would never
    dispatch the end event for such an animation.
(b) If the animation was running on the compositor we may never remove it from
    the compositor or may not do it in a timely fashion.

To fix both these problems, this patch removes the check for an empty keyframes
rule so that mNeedsRefreshes is set in this case.
2014-06-12 13:18:14 +09:00
Brian Birtles
77b68a070c Bug 1018862 part 9 - Remove nsIDOMWindowUtils::GetOMTAOrComputedStyle; r=dholbert
Now that getOMTAOrComputedStyle is no longer used by any tests it should be
removed. It is a footgun because it can lead the test author to think they
are testing compositor animations (OMTA) when in fact they are just testing
main thread animations.

This has bitten us before because while we were getting results from the
compositor on some platforms when run locally, on Tinderbox the only build
configurations that had OMTA turned on were falling back to returning the
computed style.
2014-06-12 13:17:48 +09:00
Brian Birtles
da8fce7eea Bug 1018862 part 8 - Add special handling for non-invertible transforms; r=dholbert
This patch adjusts the tests for transform transitions that run on the
compositor to handle transitions that begin with a non-invertible transform.
In this case the first sample at the start of the animation won't create
a layer because in nsDisplayTransform::BuildLayer
/ FrameLayerBuilder::BuildContainerLayerFor we'll skip creating the layer once
we notice the equivalent matrix is singular.

In this patch we detect that case and force an extra sample betwee 0 and 200s at
100s. This means the layer will be created at t=100s and be available for
querying at the next sample.

Similar issues could occur, for example, if the transforms at both t=0s
and t=100s are not invertible but currently that doesn't occur. We can add
handling for that if and when it becomes necessary.
2014-06-12 13:17:47 +09:00
Brian Birtles
d73c4f0840 Bug 1018862 part 7 - Convert test_transitions_per_property.html to use OMTA test methods; r=dholbert
This patch takes the existing tests for transitions running on the compositor
and makes them re-use the same test utility methods as used for testing CSS
Animations that run on the compositor. This means these tests now also check
that the transition is in fact running on the compositor when it is expected to.

It seems the big_omta_round_error is no longer needed so I've removed that.

The test that begins with "skew(45deg, 45deg)" currently fails so it is skipped
here. This is addressed in the next patch in the series.
2014-06-12 13:17:47 +09:00
Brian Birtles
249b534672 Bug 1018862 part 6 - Fix handling of 3d matrices in omta_is and co.; r=dholbert
This patch fixes a bug in the handling of 3d matrices represented as an array of
numbers.
2014-06-12 13:17:47 +09:00
Brian Birtles
dd9b7eee62 Bug 1018862 part 5 - Move paint listener promise wrappers to animation_utils.js; r=dholbert
This patch moves some utility methods from test_animations_omta.html to
animation_utils.js so that they can be used for testing transitions as well.
2014-06-12 13:17:47 +09:00
Brian Birtles
4e4bfaf98f Bug 1018862 part 4 - Move omta_is and friends to animation_utils.js; r=dholbert
This patch simply moves code from test_animations_omta.html to
animation_utils.js so that we can use it for testing transitions as well.
2014-06-12 13:17:47 +09:00
Brian Birtles
eaabbd322b Bug 1018862 part 3 - Fix the order of arguments to omta_is_approx; r=dholbert
This patch simply re-arranges the order of arguments to omta_is_approx so that
the delta sits along side the values being compared.

This, I think, makes more sense and also is more consistent when converting
tests from test_animations.html to test_animations_omta.html since the
"RunningOn" parameter is consistently inserted in the second-to-last position
just before the description for both omta_is and omta_is_approx.
2014-06-12 13:17:47 +09:00
Brian Birtles
11ab984348 Bug 1018862 part 2 - Make new_div no longer secretly flush styles; r=dholbert
This patch removes the line from new_div that forced a style flush. This was
very confusing because:
* It behaved differently to new_div in test_animations.html so copying tests
  over was more complex (particularly when registering for events is involved).
* It meant after setting up initial style using new_div you could just call
  waitForPaints but if you updated style using elem.style you'd need to call
  waitForPaintsFlushed.

In adjusting test_animations_omta.html we are able to simplify the tests
somewhat. This patch also adds a few additional checks that waiting to update
the compositor does not produce different results.
2014-06-12 13:17:47 +09:00
Brian Birtles
28571a4627 Bug 1018862 part 1 - Factor out common async animation test methods; r=dholbert
This patch moves some test utility methods from test_animations_omta.html to
animation_utils.js. It also renames addAsyncTest to addAsyncAnimTest and
likewise for a few other methods.
2014-06-12 13:17:46 +09:00
Jan Varga
76a6d48d48 Bug 1006485 - Part b: hg rename LockedFile.h/cpp/webidl in a separate patch for better readability; r=bent
--HG--
rename : dom/filehandle/LockedFile.cpp => dom/filehandle/FileHandle.cpp
rename : dom/filehandle/LockedFile.h => dom/filehandle/FileHandle.h
rename : dom/webidl/LockedFile.webidl => dom/webidl/FileHandle.webidl
2014-06-12 05:35:47 +02:00
Jan Varga
55b6d367ce Bug 1006485 - Part a: Rename FileHandle to MutableFile and LockedFile to FileHandle; r=bent
--HG--
rename : dom/filehandle/FileHandle.cpp => dom/filehandle/MutableFile.cpp
rename : dom/filehandle/FileHandle.h => dom/filehandle/MutableFile.h
rename : dom/filehandle/test/test_lockedfile_lifetimes.html => dom/filehandle/test/test_filehandle_lifetimes.html
rename : dom/filehandle/test/test_lockedfile_lifetimes_nested.html => dom/filehandle/test/test_filehandle_lifetimes_nested.html
rename : dom/filehandle/test/test_lockedfile_ordering.html => dom/filehandle/test/test_filehandle_ordering.html
rename : dom/filehandle/test/test_overlapping_lockedfiles.html => dom/filehandle/test/test_overlapping_filehandles.html
rename : dom/filehandle/test/test_readonly_lockedfiles.html => dom/filehandle/test/test_readonly_filehandles.html
rename : dom/indexedDB/IDBFileHandle.cpp => dom/indexedDB/IDBMutableFile.cpp
rename : dom/indexedDB/IDBFileHandle.h => dom/indexedDB/IDBMutableFile.h
rename : dom/webidl/IDBFileHandle.webidl => dom/webidl/IDBMutableFile.webidl
rename : dom/webidl/FileHandle.webidl => dom/webidl/MutableFile.webidl
2014-06-12 05:35:29 +02:00
Seth Fowler
ae3dab62d4 Bug 1023618 - Always call FlushRendering in the reftest harness. r=roc 2014-06-11 20:21:08 -07:00
Ehsan Akhgari
43e9352610 Bug 1024195 - Fix a compilation error with clang-cl in nsContentList.cpp; r=bzbarsky
This is similar to bug 1021494.
2014-06-11 21:56:59 -04:00