Commit Graph

29069 Commits

Author SHA1 Message Date
Boris Zbarsky
4d7692da89 Bug 1236329. Back out the patch for bug 492933 (revision d8012b35413b) because it's not web-compatible in practice. r=smaug 2016-01-05 15:05:23 -05:00
Boris Zbarsky
b75a5b935c Bug 1230172. Update CSS.escape to never throw and instead replace U+0000 with U+FFFD, per recent spec change. r=dbaron 2016-01-05 15:05:23 -05:00
Nicholas Nethercote
7e5f691c94 Bug 1237457 - Partially Moz2Dify nsDisplayGeneric. r=roc. 2015-12-03 19:16:59 -08:00
John Daggett
0c42e71e4e Bug 1157064 - reftests for font-display. r=m_kato 2016-01-07 14:03:12 +09:00
John Daggett
730505b53a Bug 1157064 - implementation of font-display. r=heycam,khuey 2016-01-07 14:03:05 +09:00
John Daggett
6089fa9103 Bug 1157064 - font-display descriptor parsing. r=dbaron 2016-01-07 14:02:58 +09:00
Timothy Nikkel
b0b7c1be98 Bug 1237086. When getting the displayport for a content node if there is no root scroll frame just use the primary frame of the content node. r=botond
XUL documents don't have a root scroll frame, so this would early return and prevent any of the tiling and max texture size code from running.

The root element of XUL documents likely only ever has zero-margin displayports, and they are not scrollable, so it may not be important.
2016-01-06 20:51:01 -06:00
Kartikaya Gupta
217d85f975 Bug 1219352 - Update a couple of bool-setters to take a bool argument. r=botond 2016-01-06 20:50:01 -05:00
Daniel Holbert
135725019e Bug 1236506: Add support for "-webkit-filter" as an alias for CSS property "filter". r=heycam 2016-01-06 16:35:33 -08:00
Nicholas Nethercote
1a06f03a85 Bug 1230415 - Use DrawTarget instead of gfxContext in PaintBorderWithStyleBorder(). r=roc. 2015-12-03 19:16:25 -08:00
Bas Schouten
d04ecf0af4 Bug 1220629 - Part 7: Mark several reftests fuzzy. r=jrmuizel 2016-01-06 00:23:34 +01:00
Nicholas Nethercote
444426885b Bug 1228211 (part 1) - Rearrange nsDisplayCanvasBackgroundImage::Paint(). r=dholbert.
This patch rearranges Paint() so that the next nsRenderingContext is created
via the one-arg constructor rather than via the zero-arg constructor + Init().
This means the SetLineWidth(1.0) call in Init() no longer occurs but that's ok;
it was redundant because 1.0 is the default line width in a new gfxContext.
2016-01-05 20:29:52 -08:00
Kartikaya Gupta
c40f27590a Bug 1190541 - Update some tests to deal with fluffing that correctly accounts for presShell resolution. r=domivinc 2016-01-05 23:08:07 -05:00
dominique vincent
203fa8c211 Bug 1190541 - PositionedEventTargeting doesn’t take into account the zoom in/out actions. r=kats 2016-01-05 23:07:49 -05:00
Nicholas Nethercote
5e8f17031a Bug 1232852 (part 9) - Simplify ReleasePointerCaptureCaller. r=tn.
It doesn't need to store the nsIContent. It just needs to record if mPointerId
has been set. This is because ReleasePointerCapturingContent() doesn't use its
second parameter.
2016-01-05 16:08:17 -08:00
Nicholas Nethercote
ac01d4f0a1 Bug 1232852 (part 8) - Remove some unused parameters in and around layout/base/. r=roc. 2016-01-05 16:08:17 -08:00
Nicholas Nethercote
07a060a542 Bug 1232852 (part 7) - Remove some unused parameters in and around layout/base/. r=tn. 2016-01-05 16:08:17 -08:00
Nicholas Nethercote
57cdccd085 Bug 1232852 (part 6) - Remove unused parameters from some layout sort functions. r=tn. 2016-01-05 16:08:17 -08:00
Nicholas Nethercote
57753b26dc Bug 1232852 (part 5) - Remove some unused parameters in and around layout/base/. r=heycam. 2016-01-05 16:08:17 -08:00
Nicholas Nethercote
a7c0e55330 Bug 1232852 (part 4) - Remove some unused parameters in and around layout/base/. r=heycam. 2016-01-05 16:08:17 -08:00
Nicholas Nethercote
4d571fac6a Bug 1232852 (part 3) - Remove unused parameters from some accessibility code. r=tbsaunde. 2015-12-15 21:24:06 -08:00
Nicholas Nethercote
7872595152 Bug 1232852 (part 2) - Remove some dead member functions from nsILayoutDebugger. r=roc. 2016-01-05 00:21:57 -08:00
Nicholas Nethercote
29301a5c05 Bug 1232852 (part 1) - Set |aSnap| in two GetOpaqueRegion() overloadings that are missing it. r=roc. 2016-01-04 20:38:17 -08:00
Nicholas Nethercote
04b39cc644 Bug 1233619 (part 2) - Moz2Dify BeginUpdate() and BeginUpdateBackground() functions. r=roc.
The only non-trivial change is in BasicPaintedLayer::Validate().
2015-12-17 19:39:10 -08:00
Nicholas Nethercote
ac23e93229 Bug 1233619 (part 1) - Remove unneeded gfxContext argument from EndUpdate() and EndUpdateBackground() functions. r=roc. 2015-12-17 19:39:09 -08:00
Brian Birtles
b7a368e1f0 Bug 1232563 part 1 - Request a layer update if an animation is newly finished; r=heycam
When requesting restyles we take special care to detect when an animation has
newly finished so we perform the necessary restyle to represent the fill state.
However, we should really explicitly pull the animation off the layer at this
point by requesting a layer update. (That is, when an animation is
newly-finished we should use RestyleType::Layer instead of
RestyleType::Standard. Currently we just use RestyleType::Standard.)

In this bug we plan to move restyle requests down to the effect (since it is
the *effect* that is restyled). However, only the Animation has the notion of
"finished" or not so we detect this particular case in the Animation and
request the layer update there. We already request layer updates in the
Animation for other situations such as pausing so doing *layer* updates in the
Animation and regular restyles in the effect is not inconsistent.

This patch also tweaks test_animations_omta.html since it was previously
erroneously testing that a finished animation was still running on the
compositor.
2016-01-06 11:04:06 +09:00
Brian Birtles
00d13c3e8f Bug 1232561 part 4 - Add EffectCompositor::ComposeAnimationRule; r=heycam
This patch just moves a piece of functionality from
AnimationCollection::EnsureStyleRuleFor to the EffectCompositor. In subsequent
bugs we will move more and more of this functionality across until this
logic is fully contained in the EffectCompositor.
2016-01-06 11:04:06 +09:00
Brian Birtles
13546c8388 Bug 1232561 part 3 - Move AnimValuesStyleRule to a separate file; r=heycam
As we gradually move logic from layout/style/AnimationCommon.cpp to
dom/animation/EffectSet and EffectCompositor it makes sense to let this class
live in its own file inside dom/animation where it is used.
2016-01-06 11:04:06 +09:00
Brian Birtles
21aff59b86 Bug 1232561 part 2 - Move the animation style rules from AnimationCollection to EffectSet; r=heycam
This is needed in order to support script-generated animations since they do not
belong to any AnimationCollection.

This patch adopts the naming "animation rule" over "style rule". Currently we
are inconsistent about this (e.g. GetAnimationRule vs EnsureStyleRuleFor).
We don't do a mass rename here but just a few places near where we're touching.
Many of the other references to "style rule" will be revised in this bug or
related bugs so we can fix those references when we come to them.
2016-01-06 11:04:06 +09:00
Brian Birtles
19947fcf4d Bug 1232561 part 1 - Replace AppliesToTransitionsLevel() with a cascade level enumeration; r=heycam
Introducing an enum will simplify further patches in this series by providing
a common vocabulary for this distinction.
2016-01-06 11:04:05 +09:00
Brian Birtles
47caa1f28a Bug 1229280 - Move animation generation from AnimationCollection to EffectSet; r=dbaron 2016-01-06 11:04:05 +09:00
Brian Birtles
e3dba52363 Bug 1228229 part 10 - Remove no-longer-used cascade functions; r=dbaron 2016-01-06 11:04:05 +09:00
Brian Birtles
6f4709f7a8 Bug 1228229 part 9 - Use EffectCompositor::UpdateCascadeResults; r=dbaron 2016-01-06 11:04:05 +09:00
Brian Birtles
41456005b2 Bug 1228229 part 7 - Add a method to Animation to indicate if it applies to the transitions level of the cascade; r=dbaron
For transitions, this method returns true so long as the transition is
bound to markup. This is based on the below discussion,

  https://github.com/w3c/web-animations/issues/97
  https://github.com/w3c/web-animations/issues/62#issuecomment-117357703
  https://github.com/w3c/web-animations/issues/62#issuecomment-117374689

We will likely reuse this method when we come to implement animation style rule
generation in a more generic manner.
2016-01-06 11:04:05 +09:00
Brian Birtles
07d945ecb0 Bug 1228229 part 3 - Factor out a method to get compositor-animatable overridden properties; r=dbaron
This patch also simplifies this logic by simply always looking for overrides of
'transform' and 'opacity'.
2016-01-06 11:04:04 +09:00
Brian Birtles
8d4d4b83a1 Bug 1228229 part 2 - Add a helper to get the appropriate (pseudo-)element for a frame; r=dbaron
We will use similar logic later in this patch series so we separate it out into
a separate helper function here.
2016-01-06 11:04:04 +09:00
Eric Rahm
ccb971d99f Bug 1208584 - Silence unconstrained size warning by default. r=jfkthame 2016-01-05 15:46:43 -08:00
Wes Kocher
6c2b04d319 Backed out 2 changesets (bug 1235478) for possibly breaking weightmapping-12579.html CLOSED TREE
Backed out changeset 02784824ebf1 (bug 1235478)
Backed out changeset 02c3c24dff8c (bug 1235478)
2016-01-05 16:48:24 -08:00
Wes Kocher
00fbeedd1b Backed out changeset 3aca7055f52f (bug 1236329) because something from this push turned browser_video_test.js permafail on mulet CLOSED TREE 2016-01-05 15:14:48 -08:00
Wes Kocher
305c250f35 Backed out changeset b7cd1bc458a3 (bug 1230172) because something from this push turned browser_video_test.js permafail on mulet CLOSED TREE 2016-01-05 15:14:44 -08:00
Hiroyuki Ikezoe
929149779f Bug 1235478 - Part 2: Don't update mMostRecentRefresh when nsRefreshDriver::ScheduleViewManagerFlush is called. r=mchang 2016-01-05 12:50:59 +09:00
Hiroyuki Ikezoe
0af10101c9 Bug 1235478 - Part 1: Rename eAdjustingTimer to eForceAdjustTimer. r=mchang 2016-01-05 12:50:59 +09:00
Mats Palmgren
763160c0dc Bug 1230665 - Make anonymous flex/grid items non-tabbable and non-focusable. r=roc 2016-01-05 21:27:13 +01:00
Mats Palmgren
3df0f78a89 Bug 1233106 part 2 - [css-align] Updated tests due to changes to align-/justify-* properties. 2016-01-05 21:27:13 +01:00
Mats Palmgren
a410975e24 Bug 1233106 part 1 - [css-align] Update align-/justify-* properties to the current CSS Align spec (adding 'normal' keyword, dropping 'auto' in some cases etc). r=dholbert
The CSSWG minutes for reference:
https://lists.w3.org/Archives/Public/www-style/2015Dec/0233.html

With subsequent correction for the root node:
https://lists.w3.org/Archives/Public/www-style/2016Jan/0015.html
2016-01-05 21:27:13 +01:00
Mats Palmgren
7d350333d6 Bug 1234644 - [css-grid] Avoid calling GetROCSSValueList() when we don't need the allocated object. r=dholbert 2016-01-05 21:27:13 +01:00
Mats Palmgren
ec49ec6b2a Bug 1230398 - [css-align] Don't output 'unsafe' in serialization because it's the default. r=dholbert
Prompted by a CSS Align spec change:
https://lists.w3.org/Archives/Public/www-style/2015Dec/0067.html
2016-01-05 21:27:13 +01:00
Mats Palmgren
c6162fc8e2 Bug 1230478 part 2 - [css-align] Change 'true' to 'unsafe' in tests. 2016-01-05 21:27:13 +01:00
Mats Palmgren
1074c178a6 Bug 1230478 part 1 - [css-align] Rename 'true' to 'unsafe' in <overflow-position>. r=dholbert 2016-01-05 21:27:13 +01:00
Mats Palmgren
9b8f175a97 Bug 1235152 - [css-break] Don't apply border/padding twice on inlines with box-decoration-break:clone and direction:rtl. r=roc 2016-01-05 21:27:13 +01:00