Commit Graph

6304 Commits

Author SHA1 Message Date
Ed Morley
a7f50452e1 Merge latest green inbound changeset and mozilla-central 2014-04-10 17:55:29 +01:00
L. David Baron
21e24bf2c9 Bug 992324 patch 1 - Add a pref to disable interruptible reflow. r=bzbarsky 2014-04-09 21:47:58 -07:00
L. David Baron
9ebb6e6c1a Bug 991928 - Make warning about wrapping XUL boxes chrome-only. r=bzbarsky 2014-04-09 21:47:57 -07:00
Ryan VanderMeulen
14d6d2857b Backed out changeset c81707878977 (bug 974197) for Gaia integration test failures on a CLOSED TREE. 2014-04-09 22:14:13 -04:00
Geoff Brown
d0b48b9ecb Bug 962676 - Reset expected assertion counts for Android crashtests; r=blassey 2014-04-09 08:38:44 -06:00
Tim Taubert
2d570228a2 Bug 616853 - Make the beforeunload prompt tab-modal r=dao,bz 2014-04-02 08:21:14 +02:00
Matt Woodrow
95f78d68ad Bug 974197 - Fire MozAfterPaint after the compositor has composited the frame. r=roc 2014-03-07 16:24:32 +13:00
Matt Woodrow
0c8c199f11 Bug 991046 - Combine the display item clips when we flatten an nsDisplayOpacity. r=roc 2014-04-09 14:28:38 +12:00
Kyle Huey
41b19ee1f2 Back out bug 991812 for bustage on a CLOSED TREE. r=me 2014-04-08 17:26:33 -07:00
Kyle Huey
749ec8b15d Bug 991812: Remove uses of RefCounted in code that lives solely in Gecko. r=ehsan 2014-04-08 16:37:05 -07:00
Ryan VanderMeulen
edd51f0af4 Backed out changeset 7be71c699b85 (bug 984226) for crashtest asserts. 2014-04-08 15:31:45 -04:00
Kearwood (Kip) Gilbert
0c00e3b8dd Bug 984226 - Add parameter to OverflowChangedTracker::AddFrame to distingush between frames that need nsIFrame::UpdateOverflow called and frames that only have a transform that has changed. r=dbaron
- OverflowChangedTracker::AddFrame now accepts an enumerated type parameter to
  indicate if the overflow areas of children have changed (CHILDREN_CHANGED) or
  if the transform has changed (TRANSFORM_CHANGED).
- OverflowChangedTracker::Flush no longer falls back to calling
  nsIFrame::UpdateOverflow when a frame lacks a PreTransformOverflowAreas
  property.
- Added an additional change hint, nsChangeHint_ChildrenOnlyTransform, which
  results in TRANSFORM_CHANGED being passed in to
  OverflowChangedTracker::AddFrame.
- In nsIFrame::FinishAndStoreOverflow, the passed in overflow is now stored as
  the InitialTransformProperty for elements that are IsTransformed().
- Partially corrected Bug 926155, by only calling
  OverflowChangedTracker::AddFrame on parents of the sticky element during
  StickyScrollContainer::UpdatePositions, using CHILDREN_CHANGED.
2014-03-13 17:21:25 -07:00
Botond Ballo
c19f345e42 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
Botond Ballo
01f4ede520 Bug 988882 - Rename PresShell::GetParentPresShell to GetParentPresShellForEventHandling. r=tn 2014-04-07 20:00:52 -04:00
Botond Ballo
b5d4ef51d8 Bug 988882 - Modify PresShell::GetCumulativeResolution to use GetParentPresContext instead of GetParentPresShell. r=tn 2014-04-07 19:59:23 -04:00
John Daggett
2d1be2e695 Bug 950526 - don't dump textruns within nsTextFrame::DidSetStyleContext. r=dbaron 2014-04-08 14:13:28 +09:00
Chris Lord
9c5e7e0874 Bug 990608 - Make tile size configurable. r=tn,nical,bgirard 2014-04-04 18:42:44 +01:00
Ryan VanderMeulen
01e048154a Backed out changeset bf184a7a1d63 (bug 990608) for Android crashes.
CLOSED TREE
2014-04-04 15:20:49 -04:00
Chris Lord
5a2c48da2d Bug 990608 - Make tile size configurable. r=tn,nical,bgirard 2014-04-04 18:42:44 +01:00
Oleg Romashin
ea3f8c41bd Bug 968148 - Implement PointerCapture for pointer events. tests. r=smaug
--HG--
rename : layout/base/tests/test_bug582771.html => layout/base/tests/bug968148_inner.html
rename : dom/indexedDB/test/test_event_propagation.html => layout/base/tests/test_bug968148.html
extra : rebase_source : 723612a9487b7310daf56bfd0120f5ee971fe34e
2014-04-04 10:10:12 -07:00
Maksim Lebedev
518ac59f91 Bug 968148 - Implement PointerCapture for pointer events. r=smaug
--HG--
extra : rebase_source : 331cf187194c8827e4b75835e85b2d79fdc419c7
2014-04-04 10:09:10 -07:00
Carsten "Tomcat" Book
8ef164f6c7 Backed out changeset bae32cf47dec (bug 988882) since it seems this breaks debug-bc tests 2014-04-04 13:23:20 +02:00
Carsten "Tomcat" Book
055dab2d1a Backed out changeset 17941c43375f (bug 991575) for test failures like reftests and others 2014-04-04 12:36:43 +02:00
Jonathan Watt
164b50056a Bug 991575 - Stop PresShell::GetReferenceRenderingContext from creating a Thebes backed gfxContext (Moz2D migration). r=mattwoodrow 2014-04-04 09:15:57 +01:00
Botond Ballo
69a1f77b38 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
Mats Palmgren
e933738778 Bug 967296 - Remove diagnostic code added in bug 946929. r=tn 2014-04-03 18:02:08 +00:00
Brian Birtles
ae6e60dda5 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
c4ffbc205d Bug 880596 part 6 - Factor out common method for adding animations and transitions to a layer; r=dbaron
The loops for adding animations and transitions to a layer in
nsDisplayList::AddAnimationsAndTransitionsToLayer are now identical and so can
be factored out into a common method.

Since it is not possible to implicitly convert from
nsTArray<ElementPropertyTransition> to nsTArray<ElementAnimation> despite
ElementPropertyTransition being a subclass of ElementAnimation a templated
method is used. In the future, as animations and transitions share more and more
code, we should be able to remove the need for templates.
2014-04-03 14:57:28 +09:00
Brian Birtles
217cb32ecc Bug 880596 part 4 - Reuse ElementAnimation::HasAnimationOfProperty; r=dbaron
Now that ElementTransitionProperty inherits from ElementAnimation,
ElementTransitions::HasAnimationOfProperty can re-use
ElementAnimation::HasAnimationOfProperty in its definition of
ElementTransitions::HasAnimationOfProperty.

Similarly, in nsDisplayList::AddAnimationsAndTransitionsToLayer we can use this
method rather than drilling down to the appropriate segment by hand.
2014-04-03 14:57:27 +09:00
Brian Birtles
5e2f8ede42 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
Brian Birtles
19e2304b94 Bug 880596 part 1 - Separate delay from start time for transitions; r=dbaron
As a first step towards making CSS animations and CSS transitions use the same
data structures, this patch aligns their behavior with regards to start time and
delay handling.

Previously, ElementAnimation objects maintained separate mStartTime and mDelay
members whilst ElementPropertyTransition objects maintained a single mStartTime
property that incorporated the delay. This patch adds an mDelay member to
ElementPropertyTransition and stores the delay and start time separately.
Calculations involving ElementPropertyTransition::mStartTime are adjusted to
incorporate mDelay.
2014-04-03 14:57:27 +09:00
L. David Baron
4d2197bf3c Bug 975397 - Call TrackImage when constructing a new nsStyleBorder. r=heycam
I confirmed that the crashtest crashes in the harness without the patch.

--HG--
rename : layout/reftests/backgrounds/blue-32x32.png => layout/style/crashtests/blue-32x32.png
2014-04-02 22:56:19 -07:00
Masayuki Nakano
852403f45d Bug 990855 part.2 Remove dom/events from local includes of moz.build files r=smaug 2014-04-03 13:18:38 +09:00
Masayuki Nakano
5c4524957a Bug 989212 Rename nsEventStates to mozilla::EventStates r=smaug
--HG--
rename : dom/events/nsEventStates.h => dom/events/EventStates.h
2014-04-03 13:18:36 +09:00
Timothy Nikkel
cdb2189d90 Bug 989897. In order to properly compute root composition size view the root composition size first as layer pixels in the target layer, then convert to css pixels. r=kats
Since our goal is to use the root composition size to bound the layer size of the display port of the child layer this makes sense.
2014-04-02 17:46:38 -05:00
Mike Kaply
daef6292e9 Backing out bug 889085 (dddfd63f1414, f8c14bd80676) due to regression bug 987783. r=roc 2014-04-02 10:03:08 -05:00
Jonathan Watt
fcf83c889b Bug 990683 - Stop calling DeprecatedGetCurrentAsSurface in nsLayoutUtils::SurfaceFromElement(HTMLVideoElement* aElement,...). (Moz2D migration.) r=mattwoodrow 2014-04-02 12:32:24 +01:00
Mark Hammond
763885adb1 Bug 987404 - Disable failing mochitest-browser tests in e10s. r=ted. 2014-04-02 10:53:55 +11:00
Masayuki Nakano
a63f35fff1 Bug 984271 part.2 Rename nsEventStateManager to mozilla::EventStateManager r=smaug
--HG--
rename : dom/events/nsEventStateManager.cpp => dom/events/EventStateManager.cpp
rename : dom/events/nsEventStateManager.h => dom/events/EventStateManager.h
2014-04-01 13:09:23 +09:00
Jonathan Watt
ecdb8cca65 Bug 988818 - Stop creating a Thebes (gfxASurface) backed gfxContext in nsSVGImageFrame (Moz2D migration). r=longsonr 2014-03-31 12:53:54 +01:00
Jonathan Watt
4ea99f4230 Bug 988904 - Stop creating a Thebes gfxImageSurface in PresShell::PaintRangePaintInfo (Moz2D migration). r=mattwoodrow 2014-03-31 12:53:31 +01:00
Bill McCloskey
04c455ac87 Bug 986691 - [e10s] Disable some layout tests (r=roc) 2014-03-28 11:25:11 -07:00
Kartikaya Gupta
0c67224bf9 Bug 948377 - Remove unwanted rounding in CalculateCompositedRectInCssPixels; add a CalculateCompositedSizeInCssPixels also. r=botond 2014-03-28 10:36:47 -04:00
Neil Rashbrook
fe80fce47a Bug 514280 Consistently declare and define IID accessors r=bsmedberg 2014-03-28 08:45:02 +00:00
Ehsan Akhgari
345b35a6e8 Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg 2014-03-27 16:38:33 -04:00
Ms2ger
b765dd44d3 Bug 984006 - Remove xpcom/ds from local includes; r=ehsan 2014-03-27 21:05:14 +01:00
Timothy Nikkel
385cfbb602 Bug 957668. Protect against a null frame. r=nullcheck CLOSED TREE 2014-03-26 23:20:23 -05:00
Timothy Nikkel
24f3430ec2 Bug 957668. Add comment based on review comment. DONTBUILD 2014-03-26 21:23:14 -05:00
Timothy Nikkel
af1fa4611b Bug 957668. Set the display port base rect in several places. r=roc 2014-03-26 21:46:24 -04:00
Timothy Nikkel
8ccbcd870e Bug 957668. Add and implement plumbing for a display port margins api. r=kats 2014-03-26 21:46:23 -04:00