Commit Graph

1794 Commits

Author SHA1 Message Date
Kartikaya Gupta
7e10da21e9 Bug 1034179 - Use the right resolution when generating a FrameMetrics object for GetOrMaybeCreateDisplayport. r=tn 2014-07-03 15:22:22 -04:00
Benoit Girard
f2e215ca54 Bug 1030245 - When dumping the display list dump, ensure up to 1024 characters of each line in the dump is output. r=kats 2014-07-03 09:12:09 -04:00
Jonathan Watt
ac5ccb0288 Bug 1030843 - Fix crash in nsNativeThemeCocoa::GetMinimumWidgetSize. r=roc 2014-06-27 10:19:00 +01:00
Brian Birtles
6971e62169 Bug 1010067 part 7 - Rename instances of ElementAnimationCollection; r=dbaron 2014-06-27 08:57:13 +09:00
Brian Birtles
754b126e84 Bug 1010067 part 6 - Rename mozilla::css::CommonElementAnimationData to mozilla::ElementAnimationCollection; r=dbaron 2014-06-27 08:57:12 +09:00
Mats Palmgren
5af8e6d9d0 Bug 1026641 - Put outline-style:auto rendering behind a pref and disable it by default. r=roc 2014-06-26 12:48:05 +00:00
Jonathan Watt
a813ed4531 Bug 1003505 - Fix printing of SVG images so that they're no longer pixelated. r=seth 2014-06-26 08:40:12 +01:00
Brian Birtles
8fe87f4a81 Bug 1010067 part 1 - Rename nsStyleAnimation::Value to mozilla::StyleAnimationValue; r=dbaron
This patch also moves the static methods defined on nsStyleAnimation so that
they are part of StyleAnimationValue class.

Renaming nsStyleAnimation.h to StyleAnimationValue.h is performed in a separate
patch to simplify the diff (since some tools may not handle file renames
elegantly).
2014-06-24 15:29:54 +09:00
Jonathan Watt
f2402e81bb Bug 1027645 - Eliminate all nsRenderingContext::AppUnitsPerDevPixel() callers and all non-propagating nsRenderingContext::DeviceContext() callers. r=roc 2014-06-20 07:42:30 +01:00
Brian Birtles
b906b9f7e9 Bug 1025709 part 13 - Simplify ComputeSuitableScaleForAnimation; r=heycam
Now that animations and transitions are largely treated alike, we can remove
some redundant code in the processing of transform animations in
ComputeSuitableScaleForAnimation.
2014-06-20 12:39:26 +09:00
Brian Birtles
cb5e43012b Bug 1025709 part 12 - Remove ElementTransitions; r=heycam
This patch replaces all references to ElementTransitions (now that it is empty)
with references to the base class, CommonElementAnimationData. It also takes the
opportunity to tidy up some of the call sites in nsLayoutUtils since they no
longer need to differentiate between animations and transitions.
2014-06-20 12:39:26 +09:00
Brian Birtles
8529f3f41d Bug 1025709 part 7 - Move HasAnimationOfProperty from ElementAnimations/ElementTransitions to base class; r=heycam
This patch moves HasAnimationOfProperty to CommonElementAnimationData. It also
takes the chance to start removing some redundancy from nsLayoutUtils
/ ActiveLayerTracker. Some of this should never have been added in the first
place and some could have been removed earlier on but while we're fixing up
HasAnimationOfProperty it seems like an appropriate time to fix up its call
sites too.

Also, since HasAnimationOrTransition actually returns an object, not a bool, we
this patch renames it to GetAnimationsOrTransitions.
2014-06-20 12:39:25 +09:00
Brian Birtles
4c81a0633d Bug 1025709 part 2 - Add IsFinished() to ElementAnimation; r=heycam
One of the main differences in handling a list of transitions vs a list of
regular animations is that when we are dealing with a list of transitions we
need to check for transitions that have finished and are about to be discarded
but need to be retained temporarily to provide correct triggering of subsequent
transitions. Such transitions are marked as "removed sentinels" and are ignored
for most operations.

This patch moves the methods for setting and checking such transitions to the
base class ElementAnimation so that we can treat animations and transitions
alike without having to downcast or do obscure checks for mStartTime.IsNull()
(which equates to checking if the animation is a "removed sentinel" but is not
particularly clear).

In the process, this patch renames said methods to Is/SetFinishedTransition
since hopefully that is a little easier to understand at a glance.
2014-06-20 12:39:24 +09:00
Benoit Girard
c36e97ca50 Bug 1027496 - Stream display list and layers dump. r=mattwoodrow 2014-06-19 18:36:25 -04:00
Jonathan Watt
438237ecfc Bug 1025553, part 1 - Change the names of the members of gfxMatrix to match the names of the members of Moz2D's Matrix. r=Bas 2014-06-17 18:35:51 +01:00
Simon Montagu
614fa9614f Replace GetBaseline with GetLogicalBaseline and use logical coordinates in the line position and baseline getters in nsLayoutUtils. Bug 789096, r=jfkthame 2014-06-17 05:19:38 -07:00
Neil Deakin
b0cd491c4e Bug 994117, add method to check if an element has current animations, r=bbirtles 2014-06-16 14:43:04 -04:00
Michael Wu
3d622f88b0 Bug 994081 - [2/3] Convert imgFrame to SourceSurfaces, r=seth 2014-04-19 21:28:38 -04:00
Morris Tseng
51f85d016a Bug 987718 - Part 1: Add FirstAndLastRectCollector to nsLayoutUtils; r=roc 2014-06-04 22:53:00 +02:00
Markus Stange
bd4f61cc33 Bug 944938 - Move the layers.async-pan-zoom.enabled pref to gfxPrefs and make it override the apz subframe pref when false. r=kats 2014-06-03 15:39:44 +02:00
Markus Stange
41ca71f4d4 Bug 1019737 - Only layerize the scrollbar thumb if the target scroll frame has active scrolling. r=roc 2014-06-04 14:44:26 +02:00
Botond Ballo
82b8c35977 Bug 1019766 - Avoid including gfxPrefs.h from nsLayoutUtils.h. r=kats 2014-06-03 14:13:05 -04:00
Phoebe Chang
9aa15509c3 Bug 924692 - Part 2: Add TransformPoint and TransformRect to nsLayoutUtils; r=roc 2014-06-03 15:08:37 +08:00
Victor Porof
298ca2ed1b Bug 1007203 - Always add categories when pushing to the pseudostack, r=djvj 2014-05-23 17:12:29 -04:00
Matt Woodrow
e096ef5d0b Bug 854421 - Part 7: Allocate and return transaction id's from the refresh driver when using OMTC to prevent over-production. r=roc 2014-05-29 09:43:39 +12:00
Botond Ballo
b6f7630a59 Bug 1016573 - Put logging of APZ test data behind a pref. r=kats 2014-05-29 12:51:28 -04:00
Markus Stange
78c18d20f0 Bug 1009679 - Layerize the scrollbar thumb on desktop, too. r=roc 2014-05-28 12:52:13 +02:00
Trevor Saunders
c5d0801c5c bug 966059 - add nsIDocShell::GetWindow and GetDocument r=smaug 2014-01-09 21:03:47 -05:00
Mats Palmgren
93a6cff703 Bug 508665 - part 3, Change GetContentInsertionFrame() to return a nsContainerFrame*, and return null for leaf frames. Deal with GetContentInsertionFrame() returning null in a couple of places. r=roc 2014-05-24 22:20:39 +00:00
Mats Palmgren
a73e99dbc1 Bug 508665 - part 1, Change the signature of SetParent/GetParent from nsIFrame* to nsContainerFrame*. r=roc 2014-05-24 22:20:39 +00:00
Timothy Nikkel
e139c4a4fd Bug 1013780. Silly bustage fixup. 2014-05-21 23:17:56 -05:00
Timothy Nikkel
83e0c3d4c5 Bug 1013780. Only create displayports during display list building if the display list is for painting to the screen. r=botond 2014-05-21 23:14:49 -05:00
Birunthan Mohanathas
fd86bf4972 Bug 869836 - Part 7: Use AppendLiteral instead of Append where possible. r=ehsan 2014-05-22 06:48:51 +03:00
Kartikaya Gupta
4dd19aea36 Bug 1001438 - Refactor the GetDisplayPortImpl code for readability. r=tn 2014-05-21 12:06:03 -04:00
Kartikaya Gupta
51622887b4 Bug 1001438 - Remove setCriticalDisplayPortForElement and have the getter function automatically compute it. r=tn 2014-05-21 12:06:02 -04:00
Kartikaya Gupta
2a1ed30ba2 Bug 1001438 - Rearrange the code in nsLayoutUtils::GetDisplayPort. r=tn 2014-05-21 12:06:02 -04:00
Brian Birtles
8439ece94a Bug 1004383 part 4 - Move mAnimations to CommonElementAnimationData; r=dbaron
As a result, transitions are now stored using a pointer to the base class,
mozilla::ElementAnimation. We downcast to a transition only when necessary. No
error-checking of the result of AsTransition is performed since we only ever
call it on the mAnimations member of ElementTransitions.
2014-05-15 08:38:37 +09:00
Brian Birtles
a6ac636d37 Bug 1004383 part 2 - Rename StyleAnimation to ElementAnimation; r=dholbert
We currently have mozilla::StyleAnimation as well as nsStyleAnimation. This
patch renames StyleAnimation back to ElementAnimation.

Although ElementAnimation is very similar to ElementAnimations, in the near
future we expect to retire ElementAnimations and replace it with a common
AnimationSet-like structure that is covers the features of ElementAnimations and
ElementTransitions.
2014-05-15 08:38:37 +09:00
Brian Birtles
7ed9ae0424 Bug 1004383 part 1 - Put StyleAnimation on the heap; r=dbaron
This patch takes StyleAnimation and makes it ref-counted heap object. This
should allow us to store StyleAnimation and its subclasses (transitions only
currently) in a consistent fashion (an array of base-class pointers).
Furthermore, this will be helpful if we want these things to be pointed to
from Javascript objects that may, for example, preserve their lifetime beyond
that of the element that currently owns them.

This patch also introduces a typedef for an array of refptrs to StyleAnimation
objects (and similarly for the subclass ElementPropertyTransition) to simplify
the code somewhat.
2014-05-15 08:38:37 +09:00
Botond Ballo
71b9348946 Bug 961289 - Client-side instance of APZ test data and utilities for writing to it. r=tn,kats 2014-04-21 19:48:54 -04:00
Ed Morley
1cfb5c959b Backed out changeset 83fd85b082d1 (bug 1009679) for crashtest and reftest failures; CLOSED TREE 2014-05-14 15:55:04 +01:00
Markus Stange
f41357148a Bug 1009679 - Layerize the scrollbar thumb on desktop, too. r=roc 2014-05-14 14:33:52 +02:00
Karl Tomlinson
f764c8802d b=835044 handle popup windows with parents in GetWidgetOffset r=tn
level="parent" popup windows can sometimes return a non-null parent, which is
their owner window, but their bounds are relative to the screen (previously
assumed to be the owner window origin).
2014-05-14 12:12:43 +12:00
Benoit Girard
187bfe1d7b Bug 1005298 - Add layout.display-list.dump Preference. r=mattwoodrow 2014-05-03 20:35:47 -04:00
Kartikaya Gupta
4f82f9c81e Bug 1001550 - Ensure that all non-root scrollframes have a scroll parent set. r=tn 2014-04-30 09:00:45 -04:00
Timothy Nikkel
f345232e7f Bug 1000350. Don't overwrite a layout set display port base with an APZC-guessed one. r=kats
APZC set ones are only meant to fill in the gaps, use them only if we have nothing else.
2014-04-26 00:13:36 -05:00
Ehsan Akhgari
c01e9369ee Bug 491863 - Remove IBMBIDI; r=roc 2014-04-23 21:15:29 -04:00
Mats Palmgren
9603e93505 Bug 990340 - Use GetContentInsertionFrame() when searching for ::before/::after frames. r=bz 2014-04-23 22:52:43 +00:00
Matt Woodrow
d3af05e083 Bug 997014 - Part 2: Make SurfaceFromElement use GetSurfaceSnapshot instead of the external API. r=roc 2014-04-17 17:29:52 +12:00
Carsten "Tomcat" Book
002c546e89 Backed out changeset 20b75bf44c1e (bug 997014) 2014-04-17 08:43:43 +02:00