Commit Graph

25907 Commits

Author SHA1 Message Date
Tom Tromey
008f7a37fd Bug 1154356 - Escape variable name in Declaration::AppendVariableAndValueToString. r=heycam 2015-04-24 13:15:00 -04:00
Boris Zbarsky
6a3f2d3909 Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
This patch was generated with the following command:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Ehsan Akhgari
29752115b7 Bug 1158540 follow-up: Improve the comment
DONTBUILD
2015-04-27 09:17:24 -04:00
Ehsan Akhgari
0ba78e5cdb Bug 1158546 - Remove nsDisplayHeaderFooter::mFrame in favor of nsDisplayItem::mFrame; r=roc
There is no need to have two separate variables for the same thing
in the same object.
2015-04-27 08:10:29 -04:00
Carsten "Tomcat" Book
9fc40edbc7 Merge mozilla-central to mozilla-inbound 2015-04-27 12:37:12 +02:00
Carsten "Tomcat" Book
6723c48492 merge fx-team to mozilla-central a=merge 2015-04-27 12:34:03 +02:00
L. David Baron
c54ea11c86 Bug 1144410 - Remove finished transitions when a frame transitions away from being display:none. r=birtles
Since bug 960465 patch 14, we've retained finished transitions in order
to handle the issues described in
https://lists.w3.org/Archives/Public/www-style/2015Jan/0444.html .  The
code that did this made the assumption that the transition manager is
notified of the full sequence of style changes that happen to an
element.  However, when an element becomes part of a display:none
subtree and then later becomes displayed again, the transition manager
is not notified of a style change when it becomes displayed again (when
we do not have the old style context).

This patch introduces code to prune the finished transitions when that
happens.

This really fixes only part of the set of problems described in bug
1158431, which also affect running transitions.  However, it's the part
of that set that was a regression from bug 960465, which introduced the
retention of finished transitions, and which makes these issues
substantially easier to hit.

I'd like to fix this part quickly because it's a regression and we
should backport the fix.

Without the patch, I confirmed that the following two tests fail:
INFO TEST-UNEXPECTED-FAIL | layout/style/test/test_transitions_dynamic_changes.html | bug 1144410 test - opacity after starting second transition - got 0, expected 1
INFO TEST-UNEXPECTED-FAIL | layout/style/test/test_transitions_dynamic_changes.html | bug 1144410 test - opacity during second transition - got 0, expected 0.5

With the patch, all the added tests pass.
2015-04-26 19:20:19 -07:00
Brian Birtles
c9e08e29ff Bug 1150807 part 4 - Don't play/pause an idle animation when animation-play-state changes; r=jwatt
This isn't spec'ed anywhere (since the whole Web Animations API <-> CSS
interaction isn't spec'ed yet) but it seems that changing animation-play-state
should not restart an idle animation.

If an author calls Cancel() on an animation then that animation should continue
to be idle until they call Play()/Pause() from the API. Cancelling an animation
and hanging on to it is a purely API-only feature and hence it's reasonable that
restoring it from this state is also an API-only feature.

One can imagine use-cases such as polyfilling where script wants to remove any
CSS Animations/Transitions run by the browser and replace them with something
else entirely. In that case, the script can call Cancel() on the animation and
be sure that the animation is going to stay out of the way even if something
else tweaks the animation-play-state.
2015-04-27 08:53:19 +09:00
Brian Birtles
5f29332fd1 Bug 1150807 part 3 - Call PostUpdate from Cancel; r=jwatt
This patch makes Cancel() call PostUpdate which clobbers certain state in style
so that animated style is correctly flushed when an animation is cancelled.

The main difficulty with this is that we *don't* want to call this when we're
cancelling an animation as a result of a style update or else we'll trigger
needless work. The pattern elsewhere has been to define a *FromStyle() method
for this case (e.g. CSSAnimation::PlayFromStyle, PauseFromStyle). This isn't
ideal because there's always the danger we will forget to call the appropriate
*FromStyle method. It is, however, consistent. Hopefully in bug 1151731 we'll
find a better way of expressing this.
2015-04-27 08:53:19 +09:00
Ehsan Akhgari
44b45b95aa Backout bug 1157276 because it broke the test on all platforms 2015-04-26 17:25:56 -04:00
Neil Deakin
694742248e Bug 1157276, yield on mouse synthesize calls, r=test-only-change 2015-04-26 12:31:49 -04:00
Ehsan Akhgari
cdd0224ca7 Bug 1158540 - Don't repeat the mRefCnt member of URLValue in ImageValue; r=dbaron
Even after this patch, it's not OK to AddRef an ImageValue and then call
Release on its base pointer (URLValue) since URLValue refcounting methods
are not virtual, so it would confuse the leak checker, but at least it
wouldn't cause UAF issues since we'd still be looking at the same mRefCnt
member.
2015-04-25 18:38:24 -04:00
Kevin Wern
aea9e50b0f Bug 1148694 patch 3 - remove tests affected by removal of CSSCharsetRule. r=dbaron, r=khuey 2015-04-20 23:38:13 -07:00
Kevin Wern
7c8f926903 Bug 1148694 patch 2 - Remove interface and implementation of CSSCharsetRule. r=dbaron 2015-04-21 00:08:36 -07:00
Kevin Wern
74c592b06f Bug 1148694 patch 1 - Stop creating a CharsetRule object when parsing @charset rules. r=dbaron 2015-04-21 01:26:11 -07:00
Jonathan Kew
2f8cad5d81 Bug 1156366 - Support vertical writing modes and upright/sideways glyph orientation in SVG text-on-a-path. r=longsonr 2015-04-25 09:10:19 +01:00
Shyam Venkatesh
63b5aa8bc1 Bug 1157728: Removed StackArena::Init() and call to it as it is now useless. r=dholbert 2015-04-25 07:47:10 +05:30
Kartikaya Gupta
efdd4f367a Bug 1156952 - Switch Fennec over to the "attached" widget model, so we get one nsWindow instead of two. r=snorp 2015-04-24 22:26:34 -04:00
Ted Clancy
8444b170f5 Bug 1151908 - Updating our character property data with new Bidi info from Unicode 6.3. r=smontagu 2015-04-17 14:19:39 -04:00
Nathan Froyd
4883ffd726 Bug 1155776 - move USE_EXTENSION_MANIFEST to moz.build; r=mshal 2015-04-17 13:51:42 -04:00
Ryan VanderMeulen
c9cf3e5ceb Merge m-c to fx-team. a=merge
CLOSED TREE
2015-04-24 16:07:47 -04:00
David Anderson
1560992fa3 Mark unaccelerated antialiasing reftest failures with APZ as fuzzy. (bug 1157716, r=mstange)
With APZ, we always layerize the first scrollable element of the page,
if the page itself is not scrollable. These additional layers can cause
fuzzy reftest failures in two ways: differences in blending, and by
disabling sub-pixel test anti-aliasing. The latter is only a problem
with unaccelerated drawing, because we don't support component alpha
layers with BasicLayers. (We also don't support them with
BasicCompositor, but "Reftest unaccelerated" only tests BasicLayers).
2015-04-24 10:13:32 -04:00
Jonathan Kew
0fc9d01b47 Bug 1155261 - Fix computation of glyph extents and text-frame visual overflow for vertical text frames. r=smontagu 2015-04-27 09:45:55 +01:00
Jonathan Kew
57317874be Bug 1158549 - Reftest for size constraints in vertical writing mode. r=smontagu 2015-04-27 09:41:57 +01:00
Jonathan Kew
d8aec4b603 Bug 1158549 - Properly apply min/max constraints to block-size in vertical writing modes. r=smontagu 2015-04-27 09:41:37 +01:00
Jonathan Kew
1f7a803066 Bug 1157691 - Explicitly enable writing-mode support for reftests that require it. r=smontagu 2015-04-27 09:36:01 +01:00
Jonathan Kew
3c18ceba3f Bug 1154227 - Fix the painting of text-shadow in vertical writing modes. r=smontagu 2015-04-27 09:35:59 +01:00
Masayuki Nakano
f35b960b6c Bug 1157083 <abbr> and <acronym> should use dotted underline of text-decoration instead of border-bottom r=dbaron 2015-04-24 11:02:35 +09:00
Xidorn Quan
4f12f15666 Bug 1117227 part 6 - Reftest for text-overflow on vertical text. r=jfkthame 2015-04-24 10:15:32 +12:00
Xidorn Quan
b0d233c866 Bug 1117227 part 5 - Render ellipsis in correct orientation. r=jfkthame 2015-04-24 10:15:32 +12:00
Xidorn Quan
7f8f2f7d94 Bug 1117227 part 4 - Make overflow mark baseline computation aware of writing-mode. r=jfkthame 2015-04-24 10:15:32 +12:00
Xidorn Quan
235273e773 Bug 1117227 part 3 - Make nsTextFrame::MeasureCharClippedText use frame isize instead of width. r=roc 2015-04-24 10:15:32 +12:00
Xidorn Quan
f27bfc6a9e Bug 1117227 part 2 - Convert TextOverflow to logical coordinate. r=roc 2015-04-24 10:15:32 +12:00
Xidorn Quan
834fa837cd Bug 1117227 part 1 - Add IntersectRect method to LogicalRect. r=jfkthame 2015-04-24 10:15:32 +12:00
Kyle Machulis
b9e62b0591 Bug 852944 - Gamepad API IPC; r=ted, r=baku 2015-04-23 15:05:29 -07:00
Kartikaya Gupta
69c50300c9 Bug 1039866 - Rip out a bunch of metro-only code. r=jimm,gavin,rstrong 2015-04-23 15:10:30 -04:00
Mike Conley
40b6ffe558 Bug 1096093 - Send ThemeRefresh message from parent down to content process. r=smaug. 2015-04-22 10:58:33 -04:00
L. David Baron
64dec78956 Bug 1157455 followup - fix test_transitions_per_property.html to expect different angle interpolation results, on a CLOSED TREE. 2015-04-23 10:50:31 -07:00
L. David Baron
efd96c18b8 Bug 1157455 patch 3 - When interpolating angles, preserve units when possible in order to avoid floating point error. r=birtles
This avoids accumulating floating point error from conversion, so that
when we switch to doubles at the start of
nsCSSValue::GetAngleValueInRadians we're using the original unit, rather
than a different one that will round differently.
2015-04-23 09:18:13 -07:00
L. David Baron
3970ce0639 Bug 1157455 patch 2 - Send angles (in CSS transform functions) to the compositor thread with their units rather than sending all such angles in radians. r=birtles
This avoids accumulating floating point error from conversion, so that
when we switch to doubles at the start of
nsCSSValue::GetAngleValueInRadians we're using the original unit, rather
than a different one that will round differently.
2015-04-23 09:18:12 -07:00
L. David Baron
afdb807924 Bug 1157455 patch 1 - Add tests for OMTA transforms in degrees in addition to those in radians. r=birtles
In bug 1156456 I landed tests with the transform in radians to work
around float rounding issues with having the transform in degrees.  This
bug will fix the problems with degrees, so I'm duplicating the tests
here to have variants with both degrees and radians.
2015-04-23 09:18:12 -07:00
L. David Baron
2c0c7114f2 Bug 1144885 followup - Remove spec links from reference, which the CSS test suite validator treats as an error. 2015-04-23 09:18:12 -07:00
Carsten "Tomcat" Book
574ad99ed8 Backed out changeset 8ed8157d26a2 (bug 1096093) 2015-04-23 17:18:22 +02:00
Mike Conley
347e4591cb Bug 1096093 - Send ThemeRefresh message from parent down to content process. r=smaug. 2015-04-22 10:58:33 -04:00
Dave Townsend
1944329bf2 Bug 1038068: Check add-on signatures and refuse to install unsigned or broken add-ons (preffed off for now). r=dveditz 2015-03-31 11:32:40 -07:00
Ehsan Akhgari
c3dbb622ec Bug 1157046 - Remove ARRAY_LENGTH in favor of MOZ_ARRAY_LENGTH; r=Waldo 2015-04-23 08:30:41 -04:00
L. David Baron
bf467d73cb Bug 1156456 followup - Also annotate as fuzzy on Mulet, on a CLOSED TREE. 2015-04-22 21:50:01 -07:00
Ting-Yu Lin
26c68de20c Bug 1158090 - Fix documentation for nsDisplayListBuilder constructor. r=roc 2015-04-24 02:41:00 -04:00
L. David Baron
73a4f659b2 Bug 1156456 patch 3 - Send transform origin and perspective origin to layer in device pixels rather than CSS pixels. r=birtles 2015-04-22 19:37:04 -07:00
L. David Baron
e9df1579d0 Bug 1156456 patch 2 - Transform the z component just like the x and y. r=birtles
I confirmed locally that this patch fixes the reftest (per reftest.list
change).
2015-04-22 19:37:04 -07:00