Commit Graph

1184 Commits

Author SHA1 Message Date
Timothy Nikkel
fa540853f5 Bug 1168629. Clear frame metrics on the root layer if we aren't setting new frame metrics because the layer may be recycled and still have frame metrics from last time. r=mstange 2015-05-31 00:50:21 -05:00
Timothy Nikkel
ea207c7eee Bug 1168629. Always make sure that there is at least one layer with the metrics for the root scroll frame/root element. r=botond,kats
We do this by looking at the layer tree after it has been made to see if the root metrics are in it already.

This is needed to ensure that there is always a root AZPC in a process.
2015-05-31 00:50:21 -05:00
Markus Stange
27acf9ad83 Bug 1164227 - Don't allow invalid region simplification to invalidate unchanged scrolled contents. r=roc 2015-05-28 17:39:34 -04:00
Ting-Yu Lin
fcd50ebb94 Bug 1161389 - Skip AccessibleCaret frame if nsDisplayListBuilder doesn't build caret. r=roc
When nsDisplayListBuilder doesn't build caret, we need to skip building
AccessibleCaret frames. We check that the content of the frame has
"moz-accessiblecaret" class.
2015-05-27 16:37:44 +08:00
Jonathan Watt
cf5471486f Bug 923193, part 4 - Implement support for the 'transform-origin' property in SVG. r=heycam 2015-05-24 22:40:37 +01:00
David Anderson
d07bf4da02 Move the APZ scroll frame clip onto FrameMetrics. (bug 1148582 part 3, r=mstange,tn) 2015-05-26 12:40:24 -07:00
stefanh@inbox.com
b05e11aed1 Bug 889085 - Make sheets styled with '-moz-appearance: dialog;' vibrant/semi-transparent. r=mstange, roc. 2015-05-26 19:55:08 +02:00
Jonathan Watt
76c05aab09 Bug 1168245 - Remove some code that appears to make no sense from nsDisplayTransform::GetDeltaToTransformOrigin. r=mattwoodrow 2015-05-13 13:22:15 +01:00
Jonathan Watt
aeea30f610 Bug 1168242 - Simplify the logic in nsDisplayTransform::GetResultingTransformMatrixInternal. r=mattwoodrow 2015-05-12 11:26:37 +01:00
Ryan VanderMeulen
5fe5c200c7 Backed out changeset ce5f10e3c979 (bug 1164227) for B2G wordwrap-01.html timeouts.
CLOSED TREE
2015-05-19 15:15:10 -04:00
Jonathan Watt
eecad469c6 Bug 1148418 - Follow-up to avoid unused variable warning. r=bustage CLOSED TREE 2015-05-10 17:35:26 +01:00
Jonathan Watt
798a360c0e Bug 1148418 - Make nsDisplayBackgroundColor::Paint use a higher precision floating point type to avoid scrolling artifacts. r=mattwoodrow 2015-05-10 17:14:14 +01:00
Markus Stange
1f0dd7b39f Bug 1164227 - Don't allow invalid region simplification to invalidate unchanged scrolled contents. r=roc 2015-05-13 17:50:45 -04:00
Phil Ringnalda
881f3ba8cc Back out 530555a2d6d4 (bug 1162064) for debug b2g emulator assertions and failure to thrive
CLOSED TREE
2015-05-17 22:42:05 -07:00
David Anderson
580eb72be7 Use widgets for APZ checks, rather than gfxPrefs. (bug 1162064, r=kats,mstange) 2015-05-17 23:11:44 -04:00
David Anderson
93351f8ffa Backout changeset e5d045d49b40 for bustage on an a=CLOSED TREE 2015-05-17 21:46:30 -04:00
David Anderson
dd781641e4 Use widgets for APZ checks, rather than gfxPrefs. (bug 1162064, r=kats,mstange) 2015-05-17 20:44:43 -04:00
Seth Fowler
e0ca7ac24b Bug 1163878 (Part 2) - Use IsImageContainerAvailable() when making layerization decisions and only call GetImageContainer() if we layerize. r=tn 2015-05-13 00:23:46 -07:00
L. David Baron
c29f2f2b8e Bug 1161049 patch 3 - Don't send animations to a layer if we're not using off-main-thread compositing. r=mstange
This refixes bug 947753 in a way that leads to fewer complications,
since we don't need to predict what kind of layer manager an element's
layer will have before the layer is actually created.  It has the
disadvantage that
AnimationPlayerCollection::CanPerformOnCompositorThread isn't really
telling the truth in cases where we won't have an layer that does
off-main-thread compositing.  This means that we will force the creation
of a layer to receive the animations (which might actually be good),
although it may have some disadvantages.

It also means that the additional (unlanded) patch in bug 947753 still
isn't needed, since we never set the animation generation on the layer,
so we will never try to throttle (suppress main thread execution) of
animations.
2015-05-08 15:56:37 +02:00
Robert O'Callahan
e45cd3431f Bug 923193 - Avoid calling GetDeltaToPerspectiveOrigin for elements that don't have perspective. r=heycam 2015-05-02 02:25:51 +01:00
Wes Kocher
ebdbb5f57b Merge m-c to inbound a=merge 2015-05-01 17:23:32 -07:00
Wes Kocher
9c0b8289bf Merge inbound to m-c a=merge 2015-05-01 17:19:28 -07:00
Danilo Cesar Lemes de Paula
a1e552f34e Bug 1156401 - Fix ContextMenu handling when building Fennec with C++ APZ. r=kats, r=botond
This commit deals with the situation where there's no scrollable element
on a fennec's page. It uses the Top Most root element (Xul viewport)
instead.

So this fixes the situation when the tap/click was not being send to the
correct dom element.
2015-04-30 06:09:00 -04:00
Jonathan Watt
88f103be1a Bug 923193, part 1 - Avoid calculation of the reference box for transforms unless they're actually needed. r=roc 2015-04-28 19:55:42 +01:00
Brian Birtles
fb73e3f8ee Bug 1159082 - Rename *Readonly animation interfaces to *ReadOnly. r=smaug 2015-04-30 09:06:43 -04:00
Carsten "Tomcat" Book
5791ead1d5 Backed out changeset 1b5fc672f0d4 (bug 1159082) for B2G ICS Emulator opt R6 test failures on a CLOSED TREE 2015-04-30 13:15:04 +02:00
Brian Birtles
1661b20915 Bug 1159082 - Rename *Readonly animation interfaces to *ReadOnly; r=smaug 2015-04-28 10:16:45 +09:00
Markus Stange
4f43742e9b Bug 1147194 - Do scroll info layer hoisting when building the display list. r=tn 2015-04-30 14:54:48 -04:00
Jonathan Kew
d5046e2945 Bug 1157951 patch 1 - Rename fields and variables in nsCharClipDisplayItem etc using VisIStart/End instead of left/right. r=roc 2015-04-29 08:18:53 +01:00
L. David Baron
cb0282d25b 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
c76d9df9af 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
Markus Stange
33d60c5174 Bug 1156393 - Cache nsDisplayBorder bounds. r=roc 2015-04-20 18:57:51 -04:00
Timothy Nikkel
396a0daeb9 Bug 1156598. Remove old, dead scroll layer item code. r=mstange 2015-04-20 22:48:10 -05:00
Brian Birtles
42b3a896fd Bug 1154615 part 6 - Rename references to players within layout/; r=jwatt
We will rename CSSAnimationPlayer/CSSTransitionPlayer in a separate patch
2015-04-21 10:22:10 +09:00
Brian Birtles
eb570dc2df Bug 1154615 part 5 - Rename AnimationPlayerCollection to AnimationCollection; r=jwatt 2015-04-21 10:22:10 +09:00
Brian Birtles
08fed93f82 Bug 1154615 part 2 - Rename PendingPlayerTracker to PendingAnimationTracker; r=jwatt
This patch also updates the method names on PendingAnimationTracker but leaves
a number of local variables which will be fixed in a subsequent patch.
2015-04-21 10:22:09 +09:00
Brian Birtles
6033b2c86d Bug 1154615 part 1 - Rename AnimationPlayer to Animation in WebIDL; r=smaug
This patch is a fairly minimal rename of the AnimationPlayer interface. It
leaves a bunch of local variables and helper classes still using the word
"player". These will be addressed in subsequent patches that don't require DOM
peer review.
2015-04-21 10:22:09 +09:00
Markus Stange
24d332c681 Bug 1156129 - Take border radius into account when calculating the bounds of border display items. r=roc 2015-04-19 20:48:37 -04:00
Timothy Nikkel
571ee57a11 Bug 1155025. Make the root layer on fennec have null scroll id with containerless scrolling. r=mstange
On Android we want the root xul document to get a null scroll id so that the root content document gets the first non-null scroll id.
2015-04-16 12:34:17 -05:00
Brian Birtles
977582d70a Bug 1153734 part 4 - Rename other uses of 'source' and 'source content'; r=jwatt
This patch also tightens up a one or two references to 'target effect' replacing
them with just 'effect'. This is because 'target effect' is longer and easily
confused with 'target element'. 'effect' should be sufficient. 'target element'
is a term from the Web Animations specification and in that context, simply
referring to the 'effect' would sound a little odd.
2015-04-15 08:48:21 +09:00
Brian Birtles
717246367d Bug 1153734 part 3 - Rename AnimationPlayer.source to AnimationPlayer.effect; r=smaug
There are still some other references to "source" in AnimationPlayer such as
HasInPlayerSource and UpdateSourceContent. These are renamed in a subsequent
patch (that doesn't require DOM peer review).
2015-04-15 08:48:21 +09:00
Brian Birtles
ec581c1cbf Bug 1153734 part 2 - Rename Animation to KeyframeEffectReadonly; r=smaug
We define KeyframeEffectReadonly in KeyframeEffect.cpp since Web Animations also
defines KeyframeEffect and when we come to implement that I expect we'll define
it in the same class, maybe even using the same object.

This patch also adds a few missing includes in places where
KeyframeEffectReadonly is used so that we're not just cargo-culting it in.
2015-04-15 08:48:21 +09:00
Kartikaya Gupta
c37cfee38b Bug 1148889 - Treat subclasses of scrollframes as animated geometry roots. r=mstange 2015-04-13 16:11:08 -04:00
David Anderson
12fce2feee Scrollbar thumbs can overlap scrollbar arrows during APZ scrolling. (bug 1152469, r=botond,mstange) 2015-04-12 23:03:02 -04:00
Seth Fowler
0237616678 Bug 1150774 (Part 2) - Use the correct units in nsDisplayImageContainer::ConfigureLayer and related code. r=botond 2015-04-07 18:55:28 -07:00
Seth Fowler
c6767a6dc0 Bug 1150774 (Part 1) - Add helpers to simplify using typed units in ConfigureLayer. r=botond 2015-04-07 18:55:28 -07:00
Wes Kocher
b6a325dd56 Backed out changeset b1ba9eec8e44 (bug 1148889) 2015-04-07 17:42:40 -07:00
Kartikaya Gupta
7c70f1c49a Bug 1148889 - Treat subclasses of scrollframes as animated geometry roots. r=mstange 2015-04-07 16:53:41 -04:00
Vladimir Vukicevic
67d9e9155a Bug 1151905; remove unnecessary gfxVR.h includes; r=ehsan 2015-04-07 12:39:09 -04:00
L. David Baron
3be90f57e0 Bug 1149848 patch 2 - Remove no-longer-needed flags to GetAnimationsForCompositor. r=birtles
This reverts all of bug 1109390 part 20 (except for a whitespace change
and a comment removal that patch 1 made irrelevant) and some of part 21.
2015-04-06 18:13:48 -07:00