Commit Graph

25497 Commits

Author SHA1 Message Date
Jonathan Kew
051cb1a732 Bug 1149304 - Reftest for repaint issues when changing CSS transform (fails on WinXP, OS X, and older Android). r=roc
* * *
Bug 1149304 - Mark test as failing on WinXP, OS X and Android.
2015-04-01 09:02:29 +01:00
Mike Hommey
ccd2a9b975 Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Daniel Holbert
2cd3ca95d2 Bug 1149854: Use range-based "for" loops when iterating over child frames in nsFlexContainerFrame.cpp. r=xidorn 2015-03-31 21:50:46 -07:00
Brian Birtles
1041da2b17 Bug 1109390 part 21 - Reuse GetAnimationsForCompositor in nsLayoutUtils; r=jwatt 2015-04-01 12:23:24 +09:00
Brian Birtles
1f4f71785f Bug 1109390 part 20 - Add an options flag to GetAnimationsForCompositor to control; r=jwatt
This patch adds an options flag to GetAnimationsForCompositor for two reasons.

a) We want to reuse this functionality in nsLayoutUtils.cpp rather than
   duplicating the same logic. To do that and maintain the existing behavior,
   however, we need to *not* update the active layer tracker when calling this
   from nsLayoutUtils.cpp.

b) It's surprising that GetAnimationsForCompositor also has this side effect of
   updating the active layer tracker. Adding this as an option makes it clear at
   the call site that this is what will happen.
2015-04-01 12:23:24 +09:00
Mats Palmgren
b9fae4bb36 Bug 1149785 - Make nsIWidget::ClientToWindowSize use LayoutDeviceIntSize instead of the unit-less nsIntSize. r=roc 2015-03-31 22:09:03 +00:00
Mats Palmgren
a0a4fe694d Bug 1149784 - Make nsSubDocumentFrame::GetMarginAttributes use CSSIntSize instead of the unit-less nsIntSize. r=roc 2015-03-31 22:09:02 +00:00
L. David Baron
42236287fa Bug 847287 patch 13 - Apply animations/transitions on the layer in the order that reflects how they override, rather than the opposite. r=birtles
This independently would have fixed some of the problems fixed in this
bug.  It would not have fixed them fully, though, since it would not
have prevented us from sending animations being covered up by !important
rules to the compositor.
2015-03-31 15:05:55 -07:00
L. David Baron
58f800f801 Bug 847287 patch 12 - Check mWinsInCascade for all callers of GetAnimationOfProperty/HasAnimationOfProperty. r=birtles
This patch (after stepping through the call graph) affects the following
places:
 * CommonAnimationManager::GetAnimationsForCompositor, which is used
   only by nsDisplayListBuilder::AddAnimationsAndTransitionsToLayer,
   which already checks the individual animations (so really no change)
 * AnimationPlayerCollection::CanThrottleAnimation
 * ActiveLayerTracker::IsStyleAnimated
 * nsLayoutUtils::HasAnimationsForCompositor
 * nsLayoutUtils::HasAnimations (which is used only to check whether we
   can make the 0-opacity optimization)
I believe it makes sense to change all of these locations (although in
the long term we want to throttle (or similar) more animations).

Without this patch, I believe we're forcing the creation of an opacity
layer because we think we have animations to send to it.
2015-03-31 15:05:55 -07:00
L. David Baron
4978814ccb Bug 847287 patch 11 - Only check that we can throttle animations once per refresh cycle (or invalidation of style rule), to make it cheaper to call EnsureStyleRuleFor more than once per refresh cycle. r=birtles
This saves some extra work that we don't need to do.

Mechanically, the patch moves a chunk of code that is around the last
part of the function and converts it to an early return that's slightly
earlier than that last part, thus also including the skipping of the
throttling checks in what we skip for the early return.

I want to do this here since patch 9 introduces a new call to
EnsureStyleRuleFor.
2015-03-31 15:05:55 -07:00
L. David Baron
9e47fdcc7b Bug 847287 patch 10 - Only call CheckNeedsRefresh if we might have changed mNeedsRefreshes, to make it cheaper to call EnsureStyleRuleFor more than once per refresh cycle. r=birtles
This saves some extra work that we don't need to do.

I want to do this here since patch 9 introduces a new call to
EnsureStyleRuleFor.
2015-03-31 15:05:55 -07:00
L. David Baron
957e72b3a6 Bug 847287 patch 9 - Use fully-updated style rule for animations when updating cascade results for transitions. r=birtles
I don't have a test case that requires this, but it seems like a good
idea.  (It was an incorrect theory for fixing a test failure that I was
debugging, but still seems worth doing.)
2015-03-31 15:05:55 -07:00
L. David Baron
bb63a8c97c Bug 847287 patch 8 - Only update transition manager's cascade results when an animation starts or stops being in effect. r=birtles
This avoids some extra work that was added in bug 1125455 now that we
have a mechanism for detecting when animations start and stop being in
effect (introduced in patch 7).

This is also needed to prevent infinite recursion in patch 9.
2015-03-31 15:05:54 -07:00
L. David Baron
4989c2adce Bug 847287 patch 7 - Dynamically update cascade results when animations start or stop being in effect. r=birtles
This is an additional part of the main work in this bug; it keeps
mWinsInCascade updated in cases where we need to update it.
2015-03-31 15:05:54 -07:00
L. David Baron
e30b5e2919 Bug 847287 patch 6 - Set mWinsInCascade for CSS Animations. r=birtles
This is the main patch for the bug; it makes us use the mechanism added
in bug 1125455 to avoid sending animations that aren't currently
applying to the compositor.

Patch 7 is needed to make this code rerun in all the cases where we need
to rerun it, though.
2015-03-31 15:05:54 -07:00
L. David Baron
9fd12c96a8 Bug 847287 patch 5 - Add method to update animations on layer. r=birtles
This does somewhat less work than PostRestyleForAnimation, although I
believe PostRestyleForAnimation would be a sufficient alternative.

This is used in patch 6.
2015-03-31 15:05:54 -07:00
L. David Baron
c490cf5044 Bug 847287 patch 4 - Add a method to nsRuleNode that reports the properties overriding a CSS animation. r=birtles
This is used in patch 6.
2015-03-31 15:05:54 -07:00
L. David Baron
222514f971 Bug 847287 patch 3 - Add assertions about consistency of the flags for animating on the compositor. r=birtles
These flags were added in patch 2.
2015-03-31 15:05:54 -07:00
L. David Baron
35c6d8f0dd Bug 847287 patch 2 - Add flag for CSS properties that can be animated on the compositor. r=birtles
Patch 3 adds sanity-checks to check these flags against other equivalent
data.

This flag is used in patch 5 and patch 6.
2015-03-31 15:05:54 -07:00
L. David Baron
f2c8d84ec1 Bug 847287 patch 1 - Add additional tests. r=birtles
All of the todos will be fixed by later patches in this bug (as will
some already-existing todos in the same file).
2015-03-31 15:05:54 -07:00
L. David Baron
36631f175f Bug 1123979 - Annotate known intermittent assertion on crashtest. No review. 2015-03-31 10:27:11 -07:00
Ryan VanderMeulen
5b440fa467 Bug 1145546 - Add missing nsBidiPresUtils.h include to nsGfxScrollFrame.cpp to fix non-unified bustage. r=jfkthame 2015-03-31 10:47:49 -04:00
Jonathan Watt
2e0360609c Bug 1145246, part 3 - Update layout code for the rename of Animatable.getAnimationPlayers() to Animatable.getAnimations(). r=birtles 2015-03-20 18:20:49 +00:00
Jonathan Watt
5cab6b1876 Bug 1074630, part 1 - Implement Web Animations finishing behavior. r=birtles, r=smaug 2015-03-18 13:22:11 +00:00
Xidorn Quan
deb8d88301 Bug 1146103 followup - Add comment mentions upgrading warning and add crashtest for the assertion. 2015-03-31 16:30:29 +11:00
Xidorn Quan
db614700b6 Bug 1146107 - Replace MOZ_ASSERT with NS_WARN_IF_FALSE on isize check in ruby base container. r=dholbert 2015-03-31 16:30:29 +11:00
Xidorn Quan
7af46fef4d Bug 1146114 - Make assertion checking additional leading in ruby frame non-crash. r=dholbert 2015-03-31 16:30:29 +11:00
Mike Hommey
4da5ed0b71 Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09:00
Daniel Holbert
7ea77b404b Bug 1149383 part 2: Reorder width/height decls in flexbox-writing-mode reftests for consistency. (test-only) 2015-03-30 20:22:04 -07:00
Daniel Holbert
4ab22478de Bug 1149383 part 1: Make flexbox writing-mode tests use different widths vs. heights to reveal bug with vertical writing-modes. (test-only) 2015-03-30 20:22:03 -07:00
Bill McCloskey
061f09ba1e Back out bug 1075670 2015-03-30 20:13:07 -07:00
Xidorn Quan
6ccb78f80a Bug 1143513 - Make nsFrameList compatible with range-based syntax and utils. r=roc,waldo 2015-03-31 14:08:17 +11:00
Xidorn Quan
36760511f3 Bug 1146103 - Use NS_WARNING instead of MOZ_ASSERT for bcoord check in ruby text container. r=dbaron 2015-03-31 14:08:03 +11:00
Cameron McCormack
fc060fb0c9 Bug 1072101 - Unified build fix; no review. 2015-03-31 14:05:33 +11:00
Cameron McCormack
ed67351bba Bug 1072101 - Part 5: Remove indexed property access on FontFaceSet. r=peterv 2015-03-31 14:05:33 +11:00
Cameron McCormack
4995d7f612 Bug 1072101 - Part 3: Implement FontFaceSet.forEach. r=peterv 2015-03-31 14:05:33 +11:00
Cameron McCormack
161a8c2a7e Bug 1072101 - Part 2: Implement FontFaceSet.{entries,values}. r=peterv 2015-03-31 14:05:33 +11:00
Cameron McCormack
b7a4daf2fd Bug 1072101 - Part 1: Implement FontFaceSet.size. r=peterv 2015-03-31 14:05:33 +11:00
Xidorn Quan
bb141ab140 Bug 1146112 - Mark ruby pseudo frames as line participant in frame constructor. r=roc 2015-03-31 09:20:01 +11:00
Mats Palmgren
8852b5e235 Bug 1148971 - Make nsITheme::GetMinimumWidgetSize return a LayoutDeviceIntSize result instead of the unit-less nsIntSize type. r=roc 2015-03-30 11:36:14 -04:00
Mats Palmgren
66ba78f235 Bug 1149035 - Make nsXULPopupManager::PopupResized take a LayoutDeviceIntSize param instead of a unit-less nsIntSize. r=roc 2015-03-30 11:36:01 -04:00
Mats Palmgren
3eea69f457 Bug 1149037 - Make nsLayoutUtils::ComputeSizeForDrawing* take a CSSIntSize param instead of a unit-less nsIntSize. r=roc 2015-03-30 11:35:47 -04:00
Mats Palmgren
e428944bb4 Bug 1149041 - Make nsIWidget::SizeConstraints use LayoutDeviceIntSize instead of unit-less nsIntSize. r=roc 2015-03-30 11:35:25 -04:00
Carsten "Tomcat" Book
abd1345059 Backed out changeset 513192eb7df4 (bug 1148971) for causing bc2 memory leaks 2015-03-30 15:04:09 +02:00
Carsten "Tomcat" Book
d32f1175f6 Backed out changeset 9ac36968bff2 (bug 1149035) 2015-03-30 15:03:30 +02:00
Carsten "Tomcat" Book
f23066ddcd Backed out changeset e507145a198c (bug 1149037) 2015-03-30 15:03:25 +02:00
Carsten "Tomcat" Book
837f11924f Backed out changeset 9534a3d38191 (bug 1149041) 2015-03-30 15:03:19 +02:00
Neil Deakin
f9cec46a1d Bug 1117586, [e10s] select dropdowns cannot be opened with the keyboard, r=roc 2015-03-30 08:53:44 -04:00
Mats Palmgren
dd2ed0b574 Bug 1149041 - Make nsIWidget::SizeConstraints use LayoutDeviceIntSize instead of unit-less nsIntSize. r=roc 2015-03-30 10:37:34 +00:00
Mats Palmgren
dc580c6829 Bug 1149037 - Make nsLayoutUtils::ComputeSizeForDrawing* take a CSSIntSize param instead of a unit-less nsIntSize. r=roc 2015-03-30 10:37:34 +00:00