Commit Graph

1794 Commits

Author SHA1 Message Date
Matt Woodrow
f14e46f488 Bug 997014 - Part 2: Make SurfaceFromElement use GetSurfaceSnapshot instead of the external API. r=roc 2014-04-17 17:29:52 +12:00
Simon Montagu
bb6dd743b8 Make nsLineBox.mBounds a LogicalRect. Bug 789096, r=jfkthame 2014-04-16 01:03:28 -07:00
Matt Woodrow
56f345f704 Bug 996929 - Make nsLayoutUtils::SurfaceFromElement optimize the returned surface upfront so that it doesn't have to be converted every time it's used. r=jwatt 2014-04-16 01:40:18 +01:00
Jonathan Watt
72989bc3d4 Bug 950372 - Convert imgIContainer::GetFrame to return a Moz2D SourceSurface instead of a Thebes gfxASurface. r=mattwoodrow 2014-04-15 19:02:23 +01:00
Matt Woodrow
8b04951713 Bug 996393 - Part 2: Use new gfxPlatform::GetWrappedDataSourceSurface API in nsLayoutUtils::SurfaceFromElement to avoid copying. r=roc 2014-04-15 14:36:27 +12:00
Robert O'Callahan
de04b64b23 Bug 985303. Part 2: Add aSkipChildLists parameter to nsLayoutUtils::UnionChildOverflow. r=dbaron 2014-04-03 04:25:03 -04:00
Robert O'Callahan
0c0f0b8a9d Bug 972713. Part 1: Make all callers of GetAnimatedGeometryRootFor pass a display item so we can stop searching when we reach the item's reference frame. r=mattwoodrow
This guarantees that the animated geometry root for an item is always in the
same display list coordinate system as the frame.
2014-02-18 14:26:57 +13:00
Jonathan Watt
977405ae8a Bug 993443 - Relax the assertion in ConstrainToCoordValues to allow aSize to also be zero. r=longsonr 2014-04-13 11:07:10 +01:00
Botond Ballo
403058c3aa Bug 994816 - Avoid doing any alignment of display port when tiling is disabled. r=tn 2014-04-10 13:16:20 -04:00
Botond Ballo
fd9593005f Bug 982141 - Make sure the primary async-scrollable frame has a displayport set. r=tn 2014-03-19 13:29:24 -04:00
Botond Ballo
1680ddab6f Bug 982141 - Introduce nsLayoutUtils::SetDisplayPortMargins, with an option to not repaint. r=tn 2014-04-04 10:13:50 -04:00
Botond Ballo
8cab288294 Bug 982141 - Factor out 'wantSubAPZC' into nsLayoutUtils. r=kats,tn 2014-04-04 10:13:30 -04:00
Botond Ballo
3780fa64b9 Bug 982141 - Calculate frame metrics for a display port calculation. r=kats,tn 2014-03-19 13:15:54 -04:00
Botond Ballo
dffaf90953 Bug 982141 - Move CalculateRootCompositionSize to nsLayoutUtils and clean it up a bit. r=tn 2014-04-04 10:13:09 -04:00
Ryan VanderMeulen
3492c30dc3 Backed out 6 changesets (bug 982141) for Windows and OSX bustage. CLOSED TREE
Backed out changeset 16540ab2d2cb (bug 982141)
Backed out changeset 2ad9ce9d904e (bug 982141)
Backed out changeset af219bb49c06 (bug 982141)
Backed out changeset ffe51d96e86e (bug 982141)
Backed out changeset 6642718ad3bb (bug 982141)
Backed out changeset 95b341d26f7b (bug 982141)
2014-04-10 15:27:42 -04:00
Botond Ballo
ee90e70cbc Bug 982141 - Make sure the primary async-scrollable frame has a displayport set. r=tn 2014-03-19 13:29:24 -04:00
Botond Ballo
3afdc1b9ca Bug 982141 - Introduce nsLayoutUtils::SetDisplayPortMargins, with an option to not repaint. r=tn 2014-04-04 10:13:50 -04:00
Botond Ballo
e828b06326 Bug 982141 - Factor out 'wantSubAPZC' into nsLayoutUtils. r=kats,tn 2014-04-04 10:13:30 -04:00
Botond Ballo
4f89d09672 Bug 982141 - Calculate frame metrics for a display port calculation. r=kats,tn 2014-03-19 13:15:54 -04:00
Botond Ballo
015b56a705 Bug 982141 - Move CalculateRootCompositionSize to nsLayoutUtils and clean it up a bit. r=tn 2014-04-04 10:13:09 -04:00
L. David Baron
5b6896dc01 Bug 992324 patch 1 - Add a pref to disable interruptible reflow. r=bzbarsky 2014-04-09 21:47:58 -07:00
Botond Ballo
8194f07a4f Bug 988882 - Special-case handling of root composition bounds calculation on Android when the toolbar is perma-visible. r=tn 2014-04-02 01:35:25 -04:00
John Daggett
461e1f37bd Bug 950526 - don't dump textruns within nsTextFrame::DidSetStyleContext. r=dbaron 2014-04-08 14:13:28 +09:00
Chris Lord
d1dfc64ad5 Bug 990608 - Make tile size configurable. r=tn,nical,bgirard 2014-04-04 18:42:44 +01:00
Brian Birtles
de4b68b967 Bug 880596 part 8 - Rename ElementAnimation to StyleAnimation; r=dbaron
We need a basic representation of animations from which we can derive subclasses
to represent specific cases such as transitions. For now we will retrofit
ElementAnimation for that purpose hence renaming it to StyleAnimation.

This patch removes the "using namespace mozilla::layers" line from
AnimationCommon.cpp since the unified build system concatenates several files
together before compiling making using declarations like this leak into other
files potentially creating ambiguities. Previously, when we were calling
ElementAnimation, 'Animation', there were ambiguities between
mozilla::layers::Animation and this new 'Animation' class. In general, it is
probably a good idea to limit the scope of these using declarations so I've kept
that change.
2014-04-03 14:57:28 +09:00
Brian Birtles
64e3b0221f Bug 880596 part 2 - Make ElementPropertyTransition inherit from ElementAnimation; r=dbaron
As part of moving towards more shared data structures for animation, this patch
makes ElementPropertyTransition inherit from ElementAnimation. At the same time
we switch from storing the target property, start/end values, start time, delay,
and timing function on the transition to the corresponding location in
ElementAnimation.

Since nsDisplayList::AddAnimationsAndTransitionsToLayer was already doing this
conversion in order to create animations to pass to the compositor thread, we
can remove the conversion code from there and just use the ElementAnimation data
structures as-is.

A number of assertions are added to verify that transitions are set up as
expected (namely, they have only a single property-animation with a single
segment). As we move to more generic handling of animations and transitions
these assertions should disappear.
2014-04-03 14:57:27 +09:00
Jonathan Watt
32205f3070 Bug 990683 - Stop calling DeprecatedGetCurrentAsSurface in nsLayoutUtils::SurfaceFromElement(HTMLVideoElement* aElement,...). (Moz2D migration.) r=mattwoodrow 2014-04-02 12:32:24 +01:00
Jonathan Watt
49a3fbcd2c Bug 988818 - Stop creating a Thebes (gfxASurface) backed gfxContext in nsSVGImageFrame (Moz2D migration). r=longsonr 2014-03-31 12:53:54 +01:00
Timothy Nikkel
1e8a128fe9 Bug 957668. Protect against a null frame. r=nullcheck CLOSED TREE 2014-03-26 23:20:23 -05:00
Timothy Nikkel
910dcf63cc Bug 957668. Add comment based on review comment. DONTBUILD 2014-03-26 21:23:14 -05:00
Timothy Nikkel
a02ee35323 Bug 957668. Set the display port base rect in several places. r=roc 2014-03-26 21:46:24 -04:00
Timothy Nikkel
e6fb092705 Bug 957668. Add and implement plumbing for a display port margins api. r=kats 2014-03-26 21:46:23 -04:00
Timothy Nikkel
385cde0fd0 Bug 957668. Factor out a few helper functions. r=roc 2014-03-26 21:46:23 -04:00
Birunthan Mohanathas
ec95f87845 Bug 987320 - Remove unnecessary null checks for do_QueryFrame arguments. r=bz 2014-03-25 11:36:49 -04:00
Robert O'Callahan
dc21f16aec Bug 917755. Part 1: Add nsLayoutUtils::TransformCSSPoints and nsLayoutUtils::GetFirstNonAnonymousFrame. r=matspal 2013-09-20 22:21:03 +12:00
Ryan VanderMeulen
09a62bd8eb Backed out 8 changesets (bug 917755) for bustage making inbound a CLOSED TREE.
Backed out changeset 98e31d225a5a (bug 917755)
Backed out changeset 43bceca43fb6 (bug 917755)
Backed out changeset 5117e3f594e7 (bug 917755)
Backed out changeset ada41f2f74b8 (bug 917755)
Backed out changeset 5272cfbd63f3 (bug 917755)
Backed out changeset f3bbd98021f7 (bug 917755)
Backed out changeset b049571a7cce (bug 917755)
Backed out changeset 472cb7738e14 (bug 917755)
2014-03-20 16:34:25 -04:00
Robert O'Callahan
a62d50fde8 Bug 917755. Part 1: Add nsLayoutUtils::TransformCSSPoints and nsLayoutUtils::GetFirstNonAnonymousFrame. r=matspal 2013-09-20 22:21:03 +12:00
Carsten "Tomcat" Book
da78b8123a Backed out changeset 1d12ab8bf5fe (bug 950526) for android reftest failures on a CLOSED TREE 2014-03-20 10:00:24 +01:00
John Daggett
72cbd29d79 Bug 950526 - don't dump textruns within nsTextFrame::DidSetStyleContext. r=dbaron 2014-03-20 14:43:29 +08:00
Markus Stange
e25d705f9e Bug 926292 - Put overlay scrollbars on top of the topmost positioned descendant of the scrolled frame. r=mats 2014-03-20 10:12:46 +08:00
Carsten "Tomcat" Book
b28a18ef6d Backed out changeset 094decae8ff3 (bug 917755) for mochitest-1 bustage on a CLOSED TREE 2014-03-19 09:47:43 +01:00
Robert O'Callahan
4eec052902 Bug 917755. Part 1: Add nsLayoutUtils::TransformCSSPoints and nsLayoutUtils::GetFirstNonAnonymousFrame. r=matspal 2013-09-20 22:21:03 +12:00
Chris Lord
0d7222ab6b Bug 874950 - Don't let fixed position content occlude displayports. r=tn
Don't let opaque fixed position items occlude display items that are in
display ports and thus may be asynchronously scrolled.
2014-03-17 23:39:59 +00:00
Robert O'Callahan
e4d5af0b0e Bug 975931. Part 11: Make nsDOMWindowUtils::SetDisplayPortForElement take a priority parameter, and set that parameter to 1 in reftests to override automatic displayport selection. r=kats 2014-03-08 22:25:15 +13:00
L. David Baron
b5fdc6007a Bug 828173 patch 3.5: Move GetTransformRootFrame to nsLayoutUtils. r=mattwoodrow 2014-03-04 20:13:21 -08:00
L. David Baron
47efe2ce53 Bug 828173 patch 1: Add nsLayoutUtils::GetReferenceFrame. r=mattwoodrow 2014-03-04 20:13:21 -08:00
Mats Palmgren
ec95c1a75e Bug 978443 - Rename NS_STYLE_CLEAR_LEFT_AND_RIGHT to NS_STYLE_CLEAR_BOTH. r=dholbert
Rename NS_STYLE_CLEAR_LEFT_AND_RIGHT to NS_STYLE_CLEAR_BOTH.  Also fix whitespace and remove unnecessary parens in a few places and enumerate the possible break types in an assertion so that it doesn't make assumptions on the actual property values.
2014-03-02 17:42:16 +00:00
Timothy Nikkel
deda80f090 Bug 959847. Part 7. Move ignoreViewportScrolling computation lower, where we actually use it. r=roc 2014-02-27 16:01:53 -06:00
Simon Sapin
5a5e262d51 Bug 975501 part 2: Add display:{inline-,}grid behind a pref, and a stub nsGridContainerFrame. r=dholbert 2014-02-26 23:45:29 -08:00
Arnaud Sourioux
fe6152ac7a Bug 974687 - Part 1: Add about 300 MOZ_OVERRIDE in layout/. r=dholbert 2014-02-24 09:41:56 -05:00