Commit Graph

13661 Commits

Author SHA1 Message Date
Markus Stange
ab28a4f0c8 Bug 1151346 - Make ActiveLayerTracker::IsOffsetOrMarginStyleAnimated respect CSS animations. r=roc
--HG--
extra : rebase_source : a3594dcb2d8733b6f545c6cf713178ea0d953889
2015-04-05 22:53:51 -04:00
Markus Stange
f7f6e94e3e Bug 1151306 - Add a missing check during background color pulling. r=roc
--HG--
extra : rebase_source : cf647fb460c0f8e9f83e540e27055ef563af0d50
2015-04-05 14:05:44 -04:00
Wes Kocher
b485a53afc Backed out changeset b0de9cef013b (bug 1145439) for Gu orange 2015-04-03 14:11:11 -07:00
Mats Palmgren
7349c8b964 Bug 1150042 - Make nsLayoutUtils::DrawSingleUnscaledImage use CSSIntSize instead of unitless nsIntSize. r=dholbert 2015-04-03 19:48:12 +00:00
Daniel Holbert
9713645c88 Bug 1149222 part 2 - Make nsSVGImageFrame::PaintSVG use LayoutDeviceSize & LayoutDevicePixel::ToAppUnits, when setting up its dest-rect. r=mats 2015-04-03 19:48:12 +00:00
Mats Palmgren
eb4243e0c6 Bug 1149222 part 1 - Make nsLayoutUtils::DrawBackgroundImage and SVGImageContext use CSSIntSize instead of unitless nsIntSize. r=dholbert 2015-04-03 19:48:12 +00:00
Mats Palmgren
035bf0bc77 Bug 1149215 - Remove nsLayoutUtils::GetWholeImageDestination that use unitless nsIntSize. r=dholbert 2015-04-03 19:48:12 +00:00
Seth Fowler
c2f0fefa86 Bug 1145439 - Throttle requestAnimationFrame for non-visible iframes. r=mstange,mchang 2015-04-03 11:51:11 -07:00
Jan Beich
d8a32020cb Bug 1145988 - Unbreak build on non-SPS platforms after bug 1129249. r=dholbert f=chiajung 2015-04-02 21:43:48 +02:00
Kartikaya Gupta
abf7415cef Bug 1149260 - Guard against trying to draw a drag image with zero length. r=enndeakin 2015-04-02 20:45:50 -04:00
Markus Stange
192ff01616 Bug 1148855 - Rework how display items are assigned to PaintedLayers and make it work the same way with and without APZ. r=roc
--HG--
extra : rebase_source : e6f246f2ee67e4b3478f5687774fb257f40dc5b4
2015-04-02 14:22:40 -04:00
Markus Stange
e2ab5a8c41 Bug 1148855 - Intermediate state that unifies APZ and non-APZ layerization behavior somewhat.
--HG--
extra : rebase_source : a5ec7aab3b588c6c5967cfbf1cebc607f6e24953
2015-04-01 17:31:56 -04:00
Markus Stange
cd1c8ccd7f Bug 1148855 - Mark some ContainerState methods as const. r=roc
--HG--
extra : rebase_source : a25baee09a55ab02032c37bdf2ddfc005313203a
2015-03-25 18:08:56 -04:00
David Parks
3fe715e93a Bug 1075670 - Make event.screen[XY] work in content processes (r=smaug,kats,tn,joshmoz) 2015-04-01 12:36:41 -07:00
Mike Hommey
b077d9624d Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Brian Birtles
6fcd367da0 Bug 1109390 part 21 - Reuse GetAnimationsForCompositor in nsLayoutUtils; r=jwatt 2015-04-01 12:23:24 +09:00
L. David Baron
e90b72b9db 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
1fe6a61ae9 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
320d6fe7aa 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
Jonathan Watt
2b22106122 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
Mike Hommey
c39e359c7d 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
Bill McCloskey
7f4ac9ee96 Back out bug 1075670 2015-03-30 20:13:07 -07:00
Xidorn Quan
3b4c0d5354 Bug 1146112 - Mark ruby pseudo frames as line participant in frame constructor. r=roc
--HG--
extra : source : f84d9fe6a62590e795c5e307fca17ef527490e56
2015-03-31 09:20:01 +11:00
Mats Palmgren
25fa3a4765 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
0c9ef677ad 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
Carsten "Tomcat" Book
5c532881b3 Backed out changeset 513192eb7df4 (bug 1148971) for causing bc2 memory leaks 2015-03-30 15:04:09 +02:00
Carsten "Tomcat" Book
386163877c Backed out changeset e507145a198c (bug 1149037) 2015-03-30 15:03:25 +02:00
Mats Palmgren
dc5a3bcd7b 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
Mats Palmgren
2121f47090 Bug 1148971 - Make nsITheme::GetMinimumWidgetSize return a LayoutDeviceIntSize result instead of the unit-less nsIntSize type. r=roc 2015-03-30 10:37:33 +00:00
Mats Palmgren
ed9ed2d61a Bug 1148833 part 3 - Remove nsIFrame::WillReflow and add a non-virtual MarkInReflow method instead that sets NS_FRAME_IN_REFLOW. Call it at the start of Reflow(). r=roc 2015-03-29 22:38:40 +00:00
Nicolas Silva
52be9f47b5 Bug 1132854 - Remove useless ThebesIntSize conversion helper. r=Bas 2015-03-29 16:59:15 +02:00
Nicolas Silva
e3eaf89e3f Bug 1132854 - Make nsIntSize a typedef of gfx::IntSize. r=Bas, roc 2015-03-29 16:59:08 +02:00
Brian Birtles
6fd700984b Bug 1109390 part 18 - Rename AnimationPlayer::IsRunning to IsPlaying and reuse IsInPlay definition; r=jwatt
This patch renames the confusing IsRunning method since IsRunning() is *not*
the same as (PlayState() == AnimationPlayState::Running). It also removes
the old definition to make better re-use of PlayState() and IsInPlay().
2015-03-27 18:01:00 +09:00
Markus Stange
3b1eafd81a Remove workaround for bug 748219, which seems to have been fixed in the meantime. 2015-03-23 02:17:37 -04:00
Mats Palmgren
85f77e706b Bug 1144905 - Clean up SortByZOrder code and comments since it now assumes the list is already in content document order. r=roc 2015-03-28 20:50:35 +00:00
Seth Fowler
a88105de70 Bug 1068881 - Inflate the dest rect to at least one device pixel when computing the optimal image size for drawing. r=roc 2015-03-27 20:07:31 -07:00
Wes Kocher
18a6da0131 Merge m-c to inbound a=merge
--HG--
extra : rebase_source : 31afc1b4de1d4c9d48057dbbe0d96e7c385bf2dc
2015-03-27 17:31:19 -07:00
Ryan VanderMeulen
da1028199c Merge m-c to fx-team. a=merge 2015-03-27 12:21:41 -04:00
Brian Birtles
f7d9eb1f72 Bug 1109390 part 7 - Rename PendingPlayerTracker's Start* methods to Trigger*; r=jwatt
These methods will soon be used to start animations that are waiting to start
and also to finish pausing animations that are waiting to pause. As a result
we rename them to TriggerXXX since that's a bit more generic.

There are still references to StartXXX within PendingPlayerTracker. These will
be updated in a subsequent patch once we have the appropriate methods available
on AnimationPlayer to call.
2015-03-27 15:56:45 +09:00
Wes Kocher
5b6f65bcdb Merge m-c to inbound a=merge CLOSED TREE 2015-03-26 17:46:35 -07:00
Xidorn Quan
f877035d9b Bug 1144607 part 1 - Remove CounterStyleManager::BuildCounterStyle for anonymous counter styles. r=dbaron
--HG--
extra : source : 39d3444d47783f6e3898210b67424d4c41510791
2015-03-27 09:48:10 +11:00
Cameron McCormack
04722fa8f9 Bug 1120300 - Export WritingModes.h as mozilla/WritingModes.h. r=jfkthame 2015-03-26 18:29:31 +11:00
Seth Fowler
6681449f00 Backed out changeset c035d63ade9d (bug 1068881) 2015-03-26 15:45:00 -07:00
Jeremy Chen
0d9dd77e66 Bug 1140625 - Part 5: Move Flush_Layout to the right place in SelectionCarets::UpdateSelectionCarets. r=roc 2015-03-24 03:34:00 -04:00
Jeremy Chen
dc78f0b03f Bug 1140625 - Part 4: Fix scroll_selection_into_view test to make its function remain. r=roc 2015-03-24 01:21:00 -04:00
Tom Tromey
918392e548 Bug 1144820 - Use rvalue reference in AddProfileTimelineMarker. r=smaug 2015-03-27 08:41:00 -04:00
Seth Fowler
1efbe4ce32 Bug 1147707 - Intersect correctly in DisplayItemClip::ApplyNonRoundedIntersection. r=roc 2015-03-26 15:39:52 -07:00
Seth Fowler
0934f2e2f0 Bug 1068881 - Inflate the dest rect to at least one device pixel when computing the optimal image size for drawing. r=roc 2015-03-26 15:39:37 -07:00
Seth Fowler
be84cac397 Bug 1128467 - Take scale factors into account when computing image size even if we aren't snapping. r=roc 2015-03-25 18:12:58 -07:00
Timothy Nikkel
d6eff64aa4 Bug 1144951. Rename ConvertAppUnits to ScaleToOtherAppUnits. r=mats 2015-03-26 16:44:40 -05:00