Mats Palmgren
402beefae6
Bug 613659 - Implement box-decoration-break layout for backgrounds. r=cam,jmuizelaar
...
--HG--
rename : layout/reftests/backgrounds/background-size-each-box.html => layout/reftests/backgrounds/background-size-clone.html
rename : layout/reftests/backgrounds/background-size-cover-each-box.html => layout/reftests/backgrounds/background-size-cover-clone.html
rename : layout/reftests/backgrounds/background-size-cover-continuous.html => layout/reftests/backgrounds/background-size-cover-slice.html
rename : layout/reftests/backgrounds/background-size-continuous.html => layout/reftests/backgrounds/background-size-slice.html
2014-05-05 17:55:54 +00:00
Mats Palmgren
361c3593e3
Bug 613659 - Implement box-decoration-break layout for border/box-shadow and paddding/margin for inlines. r=cam
2014-05-05 17:55:54 +00:00
Markus Stange
38855b462e
Bug 1000875 - Fix nsDisplayBackgroundImage::GetInsideClipRegion calculation for canvas frames. r=roc
...
The opaque region of the background image display item was incorrectly clipped to the viewport size, offset by the scroll position. nsDisplayBackgroundImage::GetBoundsInternal has a special case for canvas frames that sets the clip area to the whole canvas area; this patch does the same for GetInsideClipRegion.
2014-05-05 10:27:38 +02:00
Timothy Nikkel
5f4a3556b6
Bug 1000423
. Properly convert from appunits/layout device pixels to layer pixels for composition bounds calculation. r=botond
...
To get layer pixels (doesn't matter which layer, they are all the same to layout because there is no async transform) you need to multiply by the cumulative resolution.
The fact that our units system says that multiplying by the parent resolution will work is a problem with our units system.
2014-05-04 23:18:18 -05:00
Matt Woodrow
ca2a2308b2
Bug 952721 - Base our decision to prerender transformed content on it's screen space size, not the untransformed size. r=tn
2014-05-02 14:30:57 +12:00
Timothy Nikkel
2ad94f8051
Bug 1000266. Don't purge the canvas fixed background image cache if we are only scrolling. r=mattwoodrow
...
Also NotifyRenderingChanged was on the canvas background color item, not the background image item.
Bug 818643 was a problem where the cache didn't get purged enough, but the fix meant we basically always purged the cached and never got to use it, making it useless. It meant that we purged the cache anytime the item has any type of invalidation whatsoever, even if the item would be drawn the same but the layer contents needed to be invalidated so that it would be redrawn (ie due to staying at the same position on screen but a different position in the layer).
This is really hacky, but NotifyRenderingChanged is only observed on one type of display item. So we just isolate the case where the only thing that changed is the offset (due to scrolling) and skip the NotifyRenderingChanged in that case.
2014-04-23 21:56:15 -05:00
Kartikaya Gupta
a15a9aedef
Bug 984460 - Fill in a missing piece of code to compute the right dirty rect in the face of CSS transforms. r=mattwoodrow
2014-04-23 09:26:52 -04:00
Benoit Girard
a51fcecd63
Bug 999121 - Avoid mFramesMarkedForDisplay relloc with SetCapacity. r=mwoodrow
...
--HG--
extra : rebase_source : dd3d1b9cd756dcbb9c014d9d5472c794057b4073
2014-04-21 16:46:03 -04:00
Mats Palmgren
6301b21c9f
Back out bug 613659 (for regression bug 998792)
...
--HG--
rename : layout/reftests/backgrounds/background-size-slice.html => layout/reftests/backgrounds/background-size-continuous.html
rename : layout/reftests/backgrounds/background-size-cover-slice.html => layout/reftests/backgrounds/background-size-cover-continuous.html
rename : layout/reftests/backgrounds/background-size-cover-clone.html => layout/reftests/backgrounds/background-size-cover-each-box.html
rename : layout/reftests/backgrounds/background-size-clone.html => layout/reftests/backgrounds/background-size-each-box.html
2014-04-20 19:39:24 +00:00
Mats Palmgren
72a5f9f1ac
Bug 613659 - Remove remaining vestiges of -moz-background-inline-policy. r=cam
2014-04-18 23:01:23 +00:00
Mats Palmgren
12948aafe2
Bug 613659 - Implement box-decoration-break layout for backgrounds. r=cam,jmuizelaar
...
--HG--
rename : layout/reftests/backgrounds/background-size-each-box.html => layout/reftests/backgrounds/background-size-clone.html
rename : layout/reftests/backgrounds/background-size-cover-each-box.html => layout/reftests/backgrounds/background-size-cover-clone.html
rename : layout/reftests/backgrounds/background-size-cover-continuous.html => layout/reftests/backgrounds/background-size-cover-slice.html
rename : layout/reftests/backgrounds/background-size-continuous.html => layout/reftests/backgrounds/background-size-slice.html
2014-04-18 23:01:23 +00:00
Mats Palmgren
2b31a712b1
Bug 613659 - Implement box-decoration-break layout for border/box-shadow and paddding/margin for inlines. r=cam
2014-04-18 23:01:23 +00:00
Robert O'Callahan
d34ff747ee
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.
--HG--
extra : rebase_source : 974434342459b76d62d89fdc04c22c518bf0c58b
2014-02-18 14:26:57 +13:00
Kartikaya Gupta
1665cb02ce
Bug 982888 - Populate the scroll parent field as appropriate. r=
2014-04-11 19:39:22 -04:00
Botond Ballo
ce19e926e0
Bug 982141 - Make sure the primary async-scrollable frame has a displayport set. r=tn
...
--HG--
extra : rebase_source : 6ceb20abb14f3e829ea06c3b3b911455cff9db23
2014-03-19 13:29:24 -04:00
Botond Ballo
43b071d67b
Bug 982141 - Move CalculateRootCompositionSize to nsLayoutUtils and clean it up a bit. r=tn
...
--HG--
extra : rebase_source : e5b29f38d38f88d6a214bdd1e2e31354018ccadd
2014-04-04 10:13:09 -04:00
Ryan VanderMeulen
5dd9653c16
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
b3150ff987
Bug 982141 - Make sure the primary async-scrollable frame has a displayport set. r=tn
...
--HG--
extra : rebase_source : cecfe35b5407d6bbe1709eb0a2abf55ab8503c2d
2014-03-19 13:29:24 -04:00
Botond Ballo
a6b09e199e
Bug 982141 - Move CalculateRootCompositionSize to nsLayoutUtils and clean it up a bit. r=tn
...
--HG--
extra : rebase_source : 8ffa71055b05836ce166b6b2c8c9896b6d08fdd5
2014-04-04 10:13:09 -04:00
Matt Woodrow
46c95fa93b
Bug 991046 - Combine the display item clips when we flatten an nsDisplayOpacity. r=roc
2014-04-09 14:28:38 +12:00
Botond Ballo
7b52582800
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
Brian Birtles
016517a8be
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
45430e6749
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
e4ad12be38
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
0717077492
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
b2bfc795ed
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
Masayuki Nakano
3cc4e99fc0
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
b261551a31
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
Timothy Nikkel
fe24f84835
Bug 957668. Factor out a few helper functions. r=roc
2014-03-26 21:46:23 -04:00
Timothy Nikkel
c8ea0bb2cd
Bug 986413. Limit composition bounds used for display port calculation to root composition bounds. r=kats
2014-03-26 19:24:25 -04:00
Kartikaya Gupta
86f2de786f
Bug 984548 - Ifdef APZ overflow:hidden behaviour so it doesn't regress Fennec pending a proper fix. r=tn
2014-03-25 09:25:56 -04:00
Brian Birtles
fc51a00f13
Bug 981508 - Fix comment in nsDisplayTransform::ShouldPrerenderTransformedContent; r=roc
2014-03-22 05:59:58 +08:00
Brian Birtles
843cf9276a
Bug 975261 part 5 - Fix OMTA animations with backwards fill; r=dzbarsky
...
When we have a backwards fill and we sample at *exactly* the start of the
animation on the next refresh driver tick, when we get to
RestyleManager::ComputeStyleChangeFor (or more specifically
ElementRestyler::CaptureChange) we notice that the style hasn't changed (since
the first frame of the animation produces the same value as the backwards fill)
and end up with an empty change list. As a result we never schedule a view
manager flush and rebuild the layer. Hence, the animation never gets sent to the
compositor thread. On the next tick we're already throttling the main thread.
This patch fixes this by applying the same approach as is used for transitions,
that is, explicitly marking which animations are running on the compositor
thread so we know if we need to trigger a layer transaction or not. This should
not only be more robust than the previous code but also facilitate aligning
animations and transitions code (bug 880596).
2014-03-22 05:59:58 +08:00
Chadd Williams
29c628c5eb
Bug 980493 - Transition FrameMetrics::mScrollId to use a getter/setter. r=botond
...
--HG--
extra : histedit_source : 1c84496d4b61f019e6e6cc24591ee3a10434e4cc
2014-03-21 17:48:08 -04:00
Timothy Nikkel
b8a6537bd4
Bug 874950. Don't let fixed position conclude occlude async scrolled content. r=roc
...
It would be incorrect to occlude async scrolled content.
Instead of doing a lot of extra frame tree walking just use the flags on display items to tell if they are in fixed position subtrees.
Also, don't let the fixed position flag on display items get set if we start building display items inside a subdocument. If didn't do this non-fixed content in a subdocument that is in fixed content in the parent document would be marked as in fixed position, and no occlusion would occur at all. This means that the fix applies to slightly less cases which are less important so that a more important case works the same as before.
2014-03-20 18:23:16 -05:00
Timothy Nikkel
25725839ca
Bug 874950. Record on display items if they are inside a fixed position subtree. r=roc
2014-03-20 18:23:16 -05:00
Markus Stange
da8c6a19ca
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
Chris Lord
c86d3f0149
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
Botond Ballo
c7f3191acc
Bug 983208 - Workaround for composition bounds being wrong on android. r=tnikkel
...
Go back to using widget bounds. The root content document on android is a child document but it's treated like a root document in many ways. Do this until we can do what would technically be correct.
2014-03-17 12:16:05 -04:00
Timothy Nikkel
7637475da0
Bug 984279. Composition bounds are relative to the reference frame, so make that be true when we use view bounds to calculate them. r=mats,botond
2014-03-17 18:02:11 -05:00
Matt Woodrow
0cb3a2793a
Bug 982812 - Use UpdateThemeGeometry for windows region clearing. r=mstange
2014-03-17 16:42:48 +08:00
Botond Ballo
6ddcfa998d
Bug 980493 - Transition FrameMetrics::mZoom to use a getter/setter. r=kats
2014-03-12 12:46:57 -04:00
Botond Ballo
fb8f0cf40a
Bug 980493 - Transition FrameMetrics::mScrollOffset to use a getter/setter. r=kats
2014-03-13 02:34:34 -04:00
Matt Woodrow
0304720ba9
Bug 940455 - Add LayerManager functonality to clear out a portion of the window for the OS to paint. r=roc,Bas
2014-02-13 13:20:41 +13:00
Botond Ballo
ecc98dfd21
Bug 935219 - Fix composition bounds calculation and APZC hit testing (again). r=kats,tn
...
--HG--
extra : amend_source : 06c6bb658dfead6907250831bbe73fae6c20b45c
2014-03-10 17:56:59 -04:00
Mike Conley
e5ef2f1eee
Backing out bug 940455 (36e45a68452b) for numerous regressions. r=bustage-fix.
2014-03-07 16:50:30 -05:00
Kartikaya Gupta
9a8fe02e0e
Bug 975962 - Allow panning/zooming around the initial viewport for overflow:hidden elements. r=botond,tn
2014-03-07 08:41:00 -05:00
Timothy Nikkel
548fe541ea
Bug 980256. nsDisplayZoom items need some adjustments if they are going to generate a scrollable layer. r=roc
...
Specifically GetBounds should use nsDisplaySubDocument::GetBounds (and not nsDisplayWrapList::GetBounds) before converting it to the right app units.
Similarly for ComputeVisibility except with the added wrinkle that nsDisplaySubDocument::ComputeVisibility won't properly handle coordinates if we are not generating a scroll layer. Namely it calls nsDisplayWrapList::ComputeVisibility which uses mVisibleRect (which is the visible rect of the scroll frame), when it needs to be using the visible rect of the contained list, which is for the scrolled content inside.
2014-03-06 17:40:31 -06:00
Matt Woodrow
205af94a59
Bug 940455 - Add LayerManager functonality to clear out a portion of the window for the OS to paint. r=roc,Bas
2014-02-13 13:20:41 +13:00
Timothy Nikkel
b1852c5b93
Bug 980062. Make nsDisplaySubDocument use the visible rect of the contained list because it contains the enlarged area. r=roc
...
mVisibleRect contains the bounds after the scrolled content has been clipped to the scrollport. The visible rect on the contained list (mList) contain the bounds for all pre-drawn content in the displayport.
2014-03-05 20:52:54 -06:00
L. David Baron
143d4b266e
Bug 828173 patch 4: Expose AddAnimationsAndTransitionsToLayer and allow it to be called from style change handling. r=mattwoodrow
2014-03-04 20:13:21 -08:00
L. David Baron
1c6ed806fe
Bug 828173 patch 3.5: Move GetTransformRootFrame to nsLayoutUtils. r=mattwoodrow
2014-03-04 20:13:21 -08:00
L. David Baron
806b550de7
Bug 828173 patch 2: Make Layer::AddAnimation have the caller fill in the data instead of taking parameters. r=mattwoodrow
...
(This is a bigger simplification later in the patch queue, when I add a
variant of AddAnimation called AddAnimationForNextTransaction.)
2014-03-04 20:13:21 -08:00
Botond Ballo
44886bddee
Bug 978997 - Fix a regression caused by bug 959847 where the root layer sometimes doesn't get an APZC. r=tnikkel on a CLOSED TREE
...
Root scroll frames in display root documents don't get a scroll info layer from ScrollFrameHelper::BuildDisplayList, so we always need to call RecordFrameMetrics from nsDisplayList::PaintForFrame.
2014-03-03 19:57:28 -05:00
Ryan VanderMeulen
a1a491b145
Merge inbound to m-c.
2014-03-03 17:00:34 -05:00
James Kitchener
b9c875a48c
Bug 975935 - nsDisplaymtdBorder needs to override GetBounds. r=bz
2014-03-03 10:37:08 -05:00
Ed Morley
46cd2a9fc8
Merge latest green b2g-inbound changeset and mozilla-central
2014-03-03 14:45:43 +00:00
Timothy Nikkel
6fa728f68f
Bug 978542. If paint dumping is enabled at build time also enable frame dumping so we can get frame names in display list dumps. r=mattwoodrow
...
Also makes DidComputeVisibility available during non-debug painting so we can use it.
2014-03-02 16:22:29 -06:00
Timothy Nikkel
b46e8f3a85
Bug 974643. The displayport is not relevant to position: fixed content, only to scrolling content. r=roc
...
The relevant part of postion: fixed items lies within the viewport, which is the scroll position clamping scroll port size if one has been set.
2014-03-02 19:49:39 -06:00
Timothy Nikkel
d283416014
Bug 959847. Part 11. Use nsLayoutUtils::ViewportHasDisplayPort instead of repeating boilerplate code. r=roc
2014-02-27 16:01:54 -06:00
Timothy Nikkel
21fd864c46
Bug 959847. Part 10. Implement GetBounds, GetOpaqueRegion, and ShouldBuildLayerEvenIfInvisible for nsDisplaySubDocument items that are being used as scrollable layers like scroll layer items. r=roc
2014-02-27 16:01:54 -06:00
Timothy Nikkel
25c10ba585
Bug 959847. Part 9. Subdocument items for subdocuments that have displayports need to expand the visibility region. r=roc
2014-02-27 16:01:54 -06:00
Timothy Nikkel
08feb4e38a
Bug 959847. Part 6. Only call RecordFrameMetrics from PaintForFrame if we are ignoring viewport scrolling so that we don't call it twice for the same scroll frame (the other one being the scroll layers created by nsGfxScrollFrame). r=roc
2014-02-27 16:01:53 -06:00
Timothy Nikkel
30c667bcf3
Bug 959847. Part 4. Call RecordFrameMetrics for subdocument layers. r=roc
...
We do this by creating a new display item type: nsDisplaySubDocument.
Original patch by Kartikaya Gupta <kgupta@mozilla.com>.
2014-02-27 16:01:53 -06:00
Botond Ballo
47e99a4731
Bug 958596 - Add a content description field to FrameMetrics and populate it if the apz.printtree pref is on. r=kats,tn
2014-01-22 16:37:57 -05:00
Matt Woodrow
6fa6614065
Bug 968555 - Don't create a stacking context for backface-visibility:hidden. r=dbaron
2014-02-27 15:57:45 +13:00
Wes Kocher
6ff0104d95
Backed out 12 changesets (bug 958596) for several Android permafails to fix a CLOSED TREE
...
Backed out changeset e4c0e3d3a768 (bug 958596)
Backed out changeset 7bc4f48d6b05 (bug 958596)
Backed out changeset 89cd12e3db45 (bug 958596)
Backed out changeset 283411053340 (bug 958596)
Backed out changeset 5329fa8c8847 (bug 958596)
Backed out changeset 0d1d26d588e3 (bug 958596)
Backed out changeset 715fe9eb5dfd (bug 958596)
Backed out changeset 66dde9d67ffa (bug 958596)
Backed out changeset 79e589f75065 (bug 958596)
Backed out changeset 1ed4c880ab70 (bug 958596)
Backed out changeset 1d40b0b8036d (bug 958596)
Backed out changeset ad35d51d9781 (bug 958596)
2014-02-25 18:34:47 -08:00
Botond Ballo
0f6495bca7
Bug 958596 - Add a content description field to FrameMetrics and populate it if the apz.printtree pref is on. r=kats,tn
2014-01-22 16:37:57 -05:00
Matt Woodrow
8e879058a1
Bug 975592 - Make sure we find the correct composition manager when updating child process layer trees. r=nical
...
--HG--
extra : rebase_source : 5e1457117293c74a362a0570aca2673c90038334
2014-02-25 11:45:40 +13:00
Ed Morley
2cbe207bfb
Backed out changeset a29e486e2214 (bug 958596)
2014-02-25 17:17:02 +00:00
Botond Ballo
e700ca83a9
Bug 958596 - Add a content description field to FrameMetrics and populate it if the apz.printtree pref is on. r=kats,tn
...
--HG--
extra : rebase_source : f009ad9d779fb1a3afa525fe7e5eb3a399aee628
2014-01-22 16:37:57 -05:00
Timothy Nikkel
6fb059abcc
Bug 976370. Move overlay scrollbar display items above scroll layer items for the same scroll frame. r=roc
...
This has two desirable side effects. The first and more important is that it prevents a scrollbar item from sitting between scroll layer items and preventing them from merging into one and thus preventing the creation of an async scrollable layer. The second is that scrollbars should be on top of the content they are scrolling in general, and this will make that happen in more cases.
2014-02-24 23:42:11 -06:00
Max Vujovic
4cee698abc
Bug 948265 - Pass an nsStyleFilter chain instead of an nsSVGFilterFrame into nsSVGFilterInstance. r=roc
2014-02-24 10:22:58 -05:00
Botond Ballo
b4d0de9126
Bug 964517 - Do not pretend a layer is opaque if it really is transparent. r=roc
2014-02-09 00:28:04 -05:00
Robert O'Callahan
648ec3e0c8
Backing out patches for bug 972713 (changesets b5486b9ed88c and 7829e535cdd7) due to Windows 8 test failure.
2014-02-18 22:48:18 +13:00
Robert O'Callahan
7b54370bdc
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.
--HG--
extra : rebase_source : 249fd847a2c08f8d0846d698cce9dd4681e38a98
2014-02-18 14:26:57 +13:00
Tor Arvid Lund
cdfd45fed5
Bug 948765 - Port CopyableCanvasLayer to Moz2D. r=nical
...
This patch deprecates the UpdateSurface and PaintWithOpacity methods in the
CCL class. To do this, many other changes were made in the process.
BasicImplData::Paint was deprecated, and its mOperator was ported to Moz2D.
This caused changes in several *Layer subclasses.
GLScreenBuffer::Readback was deprecated.
I want to change the usages of the (now) deprecated functions, so that they
use the new Moz2D ones: CanvasClient::Update has been updated, but the big
one (BasicLayerManager::PaintSelfOrChildren) will have to be its own
project.
2014-02-12 10:07:46 -05:00
L. David Baron
82503f4eca
Bug 91419 patch 5: Rename everything with SpecialSibling to IBSplitSibling. r=mats
2014-02-06 17:45:31 -08:00
Kartikaya Gupta
3195471b3f
Bug 963278 - Better fix to deal with concurrent scroll updates from APZ and other places. r=tn,botond,jimm
2014-02-05 17:43:20 -05:00
Timothy Nikkel
851085bcf7
Bug 962791. Include nsIFrameInlines.h so linux debug build doesn't complain about missing IsAbsolutelyPositioned. r=me on a CLOSED TREE
2014-02-04 00:14:07 -06:00
Timothy Nikkel
a3873c8033
Bug 962791. Fail to create a scrollable layer if it would cause incorrect clipping of absolutely position items. r=roc
...
We incorrectly wrap abs pos items, but not wrapping them leads to too many sites failing to create scrollable layers that we can't do that. So instead just fix the clipping issue for now until a more robust solution can be developed.
2014-02-03 23:16:20 -06:00
Matt Woodrow
ce740641cb
Bug 952011 - Use Untransform API to safetly untransform points when we have a projective matrix. r=roc
2014-02-04 12:25:23 +13:00
Matt Woodrow
5ead3a7c0c
Bug 952011 - Remove some nsLayoutUtils transform functions that are no longer needed. r=roc
2014-02-04 12:25:22 +13:00
Robert O'Callahan
7a45ea7b6c
Bug 946502. Part 4: Remove mStickyPosFrame. r=mattwoodrow
...
--HG--
extra : rebase_source : 71bcbd246cf6806196a3e64d32fdde169bddfa07
2014-01-04 18:14:27 +13:00
Robert O'Callahan
2a1134e322
Bug 946502. Part 3: Extend FrameLayerBuilder to set fixed-pos metadata on layers created for background-attachment:fixed content. r=mattwoodrow
...
--HG--
extra : rebase_source : dbaab718d7a358bfaa40124913bcd5acf0255aa1
2013-12-18 00:30:21 +13:00
Matt Woodrow
a3449e66b6
Bug 946952 - Run a 'compressed' paint up to 1 second after skipping the ColorLayer optimization. r=roc
2014-01-30 18:41:17 +13:00
Benoit Girard
6e831dc5e6
Bug 940842 - 2/3 - Implement will-change in layers-building code - r=mattwoodrow
2013-11-22 13:14:34 -05:00
Timothy Nikkel
3a0677e2bd
Bug 950301. Make the underlying frame of scroll layer items be the scrolled frame before the layerizing display lists. r=mattwoodrow
2014-01-27 17:30:29 -06:00
David Zbarsky
bab894b2de
Bug 952977: Convert SetBaseTransform to gfx::Matrix4x4 r=nical
2014-01-27 10:28:33 -05:00
Timothy Nikkel
e64b543f02
Bug 962505. Put the scroll frame and the scrolled frame in the display list dump for scroll layer items. r=mats
2014-01-26 16:09:06 -06:00
Timothy Nikkel
89b437d807
Bug 962505. When dumping display lists print the entire line at once so it works better with Fennec and b2g. r=mats
2014-01-26 16:07:08 -06:00
Benoit Girard
4923504486
Bug 950488 - Overhaul APZ handling of overflow:hidden. r=botond
...
--HG--
extra : rebase_source : 6ba93899e5ac446b5c4a4cacb18574dd05c54c62
2014-01-21 12:33:52 -05:00
Timothy Nikkel
382342f71e
Bug 931028. Remove app units per pixel argument from nsDisplayTransform::GetTransform. r=mattwoodrow
...
All callers were using, and should only be using, the same value.
2014-01-20 00:56:55 -06:00
Timothy Nikkel
eeeb31d1b6
Bug 931028. Transform matrices when used for painting related things should be in dev pixels and not CSS pixels. r=mattwoodrow
2014-01-19 17:30:36 -06:00
Robert O'Callahan
a4d6b3c1d0
Bug 812795. Disable subpixel AA in content subject to SVG effects such as filters. r=jwatt
...
--HG--
extra : rebase_source : 7cd6724d55b57af99db8077517564c01ba1848a8
2014-01-10 16:03:24 +13:00
Anthony Jones
ee3c6259c8
Bug 951463 - Rename ClampRect to ForceInside; r=botond
2014-01-06 10:05:07 -05:00
Robert O'Callahan
6947f1f4f7
Bug 945203. Part 4: Add nsDisplayEventRegions and build it when painting. r=mats
...
--HG--
extra : rebase_source : 26b71b6a18681e8fc48c6082c8df6263c1bd3739
2013-12-17 00:22:11 +13:00
David Zbarsky
56c69a7b3f
Bug 952977: Switch IsSVGTransformed to gfx::Matrix r=nical
2013-12-29 18:35:53 -05:00
Robert O'Callahan
2f559956a1
Bug 950427. Don't descend into subdocuments at all in elementFromPoint. r=mats
...
--HG--
extra : rebase_source : 59ce23c3ab81afc624921e4543fe48dd7ae47ce2
2013-12-18 18:37:24 +13:00
Phil Ringnalda
d12a89d025
Back out f55504b0184f (bug 950427) for mochitest-4 and mochitest-oth bustage (at least)
...
CLOSED TREE
2013-12-17 23:22:20 -08:00
Robert O'Callahan
4e5e1fbf10
Bug 950427. Don't descend into subdocuments at all in elementFromPoint. r=mats
2013-12-18 18:37:24 +13:00
Timothy Nikkel
9e366145a2
Bug 951467. Give scroll layer items the bounds of the scroll port, not the bounds of the display port. r=roc
...
The bounds of the scroll port match what will actually be drawn on the screen.
The bounds of the contained content (sized to the display port) are still accessible via mList.GetBounds, and similarly the visible rect of the contained content is mList.GetVisibleRect. The external bounds/visible rect are GetBounds and GetVisibleRect on the nsDisplayScrollLayer object itself.
We implement nsDisplayScrollInfoLayer::GetBounds solely so that it continues to return an empty rect because we expect active empty layers to have empty visible rects.
We no longer have to set our mVisibleRect in nsDisplayScrollLayer::ComputeVisibility because nsDisplayList::ComputeVisibilityForSublist now does it correctly for us (like other items).
We also have to teach ContainerState::ProcessDisplayItems to not set the visible region for scroll layers because it has the external visible region, not the larger internal display port sized visible region. We instead let BuildContainerLayer set the visible region of the layer.
2013-12-17 23:02:56 -06:00
Kartikaya Gupta
4ad1847fb9
Bug 949132 - Add a flag to FrameMetrics indicating a non-APZ scroll (original patch by mstange). r=tn
2013-12-16 12:04:45 -05:00
Matt Woodrow
b51b6f7228
Bug 913503 - Fix reversed if() condition to fix bustage.
2013-12-16 21:05:20 +13:00
Matt Woodrow
0b806c9170
Bug 913503 - Update windowed plugin positions before we schedule a composite with OMTC. r=roc
2013-12-16 18:38:42 +13:00
Chris Lord
fd192955fd
Bug 936500 - Always build layers for nsDisplayScrollLayer. r=tn
...
APZC information is associated with layers, and having those layers suddenly
disappear because they became occluded, or their displayports are off-screen
has undesired effects.
2013-12-13 19:37:34 +00:00
Tor Arvid Lund
3d5f99f7f3
Bug 929513 - Replace some instances of gfxIntSize with gfx::IntSize r=nical
2013-12-13 18:32:02 +01:00
Robert O'Callahan
182a8c2ebe
Bug 945634. The fixed-pos anchor point should be in the layer's coordinate system, whose 0,0 is the top-left of the fixed-pos frame. r=mattwoodrow
2013-12-13 01:33:02 +13:00
Cameron McCormack
a9096d4a6d
Bug 773296 - Part 16a: Followup to move to using nsCSSValueSharedList in OMTA code. r=roc
2013-12-12 13:09:44 +11:00
Cameron McCormack
ae655160b2
Bug 773296 - Part 16: Add a ref-counted list nsCSSValue unit and use it for tranform lists; hold a strong reference to one on nsStyleDisplay. r=dbaron
...
This adds a new eCSSUnit_SharedList type for nsCSSValue, which is a
reference counted object that contains an nsCSSValueList. We need this
so that nsStyleDisplay::mSpecifiedTransform can hold a strong reference
to a specified transform list value. When 'transform' is specified
using a variable reference, the resulting nsCSSValue does not stick
around in the Declaration object, so we wouldn't be guaranteed that
it lives long enough for nsStyleDisplay to keep referencing it.
2013-12-12 13:09:44 +11:00
Ryan VanderMeulen
7a6613cc88
Merge m-c to inbound.
2013-12-10 15:48:16 -05:00
Kartikaya Gupta
2b78585247
Bug 814435 - Annotate layers for scrollbars as such. r=tn, BenWa
2013-12-09 22:14:53 -05:00
Matt Woodrow
70481ebbac
Bug 926268 - Don't include the full frame bounds in nsDisplayBorder if we're only painting one side. r=roc
2013-12-09 12:01:30 +13:00
Timothy Nikkel
170cebf220
Bug 933264. If we have to flatten scroll layer items make sure to clip their child items properly. r=roc
...
The scroll layer item has the clip induced by the scroll frame, but the scrolled items are only clipped to the (larger) display port so we can async scroll the display port area. But if we can't merge all the scroll layer items then we can't render the expanded display port content so we have to clip the scrolled items to the scroll frame by propagating the clip on the scroll layer item to its children.
2013-12-10 12:05:18 -06:00
Timothy Nikkel
688dd8051e
Bug 947467. Active transform layers should obey ancestor clipping if we don't need to prerender non-visible parts of them. r=roc
2013-12-07 12:33:09 -06:00
Botond Ballo
3e7f6be0e0
Bug 942995 - Squish the FrameMetrics::mScrollableRect for overflow:hidden elements. r=tn
2013-11-26 18:46:47 -05:00
Botond Ballo
a1f8dce7ee
Bug 943619 - Do not discard scroll info layers inside an nsDisplayTransform. r=tn
2013-11-26 16:30:20 -05:00
Benoit Girard
a735170d84
Bug 942483 - Port paint-dumping to android/b2g. r=gal
2013-11-23 17:44:18 -05:00
Botond Ballo
89ad1afe7a
Bug 912666 - Force scroll frames for 'scrollgrab' elements to always create a real scrollable layer rather than a scroll info layer. r=roc,tn
2013-10-23 05:04:42 -04:00
Botond Ballo
830bab31c9
Bug 912666 - Propagate the 'scrollgrab' attribute to FrameMetrics. r=kats,Cwiiis
2013-09-23 14:09:48 -05:00
Botond Ballo
774451c530
Bug 900092 - Remove FrameMetrics::ROOT_SCROLL_ID. r=kats,tn
2013-11-08 19:07:00 -05:00
Ryan VanderMeulen
f370741daa
Merge m-c to inbound on a CLOSED TREE.
2013-11-18 10:59:48 -05:00
Gijs Kruitbosch
65c5bb5207
Merge m-c to ux
2013-11-18 13:44:32 +01:00
Gijs Kruitbosch
c3218cf205
Merge m-c to ux
2013-11-17 23:37:53 +01:00
Matt Woodrow
dc67315f3f
Bug 939607 - Part 3: Try fold nsDisplayOpacity items opacity value into their children. r=roc
2013-11-18 22:32:09 +13:00
Matt Woodrow
4fa53e45d1
Bug 939607 - Part 2: Add an API for storing an opacity on a display item, and implement it for nsDisplayBoxShadowOuter. r=roc
2013-11-18 22:32:09 +13:00
Gijs Kruitbosch
0c81a0b0ac
Merge mozilla-central and ux
2013-11-11 22:41:49 +01:00
Matthew Noorenberghe
aba2581f1a
Merge mozilla-central to UX
2013-11-09 17:46:29 -08:00
Gijs Kruitbosch
7f6c0c05d0
merge m-c to ux
2013-11-06 22:25:39 +01:00
Gijs Kruitbosch
4cb965f7aa
Merge mozilla-central and ux
2013-11-05 20:14:58 +01:00
Kartikaya Gupta
ca69417651
Bug 930904 - Remove some old code for android that is now no-op'd. r=tn
2013-11-04 21:40:05 -05:00
Kartikaya Gupta
044d3975ab
Bug 930904 - Ensure the presShell resolution is recorded on the FrameMetrics for the root scrollable layer of the presShell. r=tn
...
Previously the code would only set the resolution on the FrameMetrics when
the scroll ID was equal to ROOT_SCROLL_ID. This only happens on the root
scrollable frame for a layer tree. However, with bug 732971 fixed, any presShell
can have a resolution associated with it, so we need to populate the mResolution
for any layer that is the root scrollable layer for a presShell.
On platforms like Fennec and Metro the content presShell is a sub-presShell
of the root presShell. The resolution is set on the content presShell, but would
not get populated on the FrameMetrics correctly because of this condition. The #ifdef
ANDROID hack a few lines below was used to work around this on Fennec but it
was broken on Metro. This change corrects the behaviour on both of these platforms.
2013-11-04 21:39:44 -05:00
Gijs Kruitbosch
adc9c274bb
Merge mozilla-central and ux
2013-11-03 23:36:57 +01:00
Gijs Kruitbosch
f298c06fde
Merge mozilla-central and ux
2013-11-01 09:20:15 +01:00
Robert O'Callahan
6331fbf62b
Bug 933354. Avoid calling GetDeltaToPerspectiveOrigin for elements that don't have perspective. r=heycam
...
--HG--
extra : rebase_source : 2e887376cc3529191799e6e7726c336199121e96
2013-11-05 23:03:38 -08:00
Ryan VanderMeulen
1d57260a86
Merge m-c to inbound on a CLOSED TREE.
2013-10-30 22:42:13 -04:00
Jim Mathies
731d75722b
Bug 931146 - Set FrameMetrics mMayHaveTouchListeners for all frames that call RecordFrameMetrics. Fixes missing touch info for sub documents. r=tnikkel,kats
2013-10-29 20:51:00 -05:00
Kartikaya Gupta
5b8181c580
Bug 732971 - Create a new layer type for subdocuments with a resolution. r=tn
...
The new nsDisplayResolution layer type is created for any subdocument whose
presShell specifies a non-1.0 resolution. This is specifically needed for
platforms such as Android and Metro, where the presShells corresponding to
the tabs (which have non-1.0 resolutions) are not the root presShell.
2013-10-29 09:27:15 -04:00
Phil Ringnalda
fb73812f4a
Back out 0a88dee3b92b:dc5cc7d7b84d (bug 911889) for beaucoup unexpected assertions
...
--HG--
extra : rebase_source : a2a13633b6028c99a3c732dbbafe8c800bc32071
2013-10-28 23:38:02 -07:00
Ehsan Akhgari
c70da60ccf
Bug 938114 - Build layout/base in unified mode; r=roc
2013-11-14 21:43:56 -05:00
Robert O'Callahan
6db16af142
Backout changesets 37f9a5424227, c1578a4fc86d and a417424f9213 (for bugs 933354, 929021 and 923193 respectively) while we figure out performance regressions
...
--HG--
extra : rebase_source : e4a004a15c92b5a8a8b780e7da779ac86d1c29be
2013-11-11 15:23:56 +13:00
Robert O'Callahan
01aedc2359
Bug 919144. Part 10: Fold nsDisplayFixedPosition into nsDisplayStickyPosition. r=mattwoodrow
...
--HG--
extra : rebase_source : 597e2a178762509421a32d53be6242cd588c7995
2013-09-27 18:02:03 +12:00
Robert O'Callahan
f994dec6df
Bug 919144. Part 9: Move FrameLayerBuilder::ContainerParameters to mozilla::ContainerLayerParameters. r=mattwoodrow
...
This is to avoid having to #include FrameLayerBuilder.h in nsLayoutUtils.h in the next patch.
--HG--
extra : rebase_source : 5f3c3ae2785267949766ae094414781133d4ce44
2013-09-27 18:01:16 +12:00
Robert O'Callahan
94d3e5ce37
Bug 919144. Part 8: Delete lots of code that's no longer needed. r=mattwoodrow
...
I never liked nsDisplayListBuilder::IsFixedItem anyway, its behavior and
naming was confusing. Also, it assumed there's only one viewport displayport,
on the rootmost document, and that's a bad assumption in general.
We're able to remove calls to ForceVisiblityForFixedItem because FrameLayerBuilder
is now responsible for inflating the visible region of the fixed-pos layers.
--HG--
extra : rebase_source : e93d8e25d2f5c7f3e167e47203d961e6b4293b81
2013-09-27 18:01:16 +12:00
Robert O'Callahan
fad9790f33
Bug 919144. Part 6: nsDisplayListBuilder::MarkOutOfFlowFrameForDisplay should call IsFixedPosFrameInDisplayPort and make fixed-pos frames intersect their overflow-rect with the viewport's displayport to get their dirty rect. r=mattwoodrow
...
This prevents insanely large fixed-pos elements from getting an over-huge
dirty rect and building an enormous display list.
This is also a step towards getting rid of nsDisplayListBuilder::mHasDisplayPort,
which is good because the new code works on any subdocument that has a displayport.
--HG--
extra : rebase_source : e853022dd2ce85af318f235f8851d9dd8b5001ac
2013-09-27 18:01:15 +12:00
Robert O'Callahan
fd9ce678dc
Bug 919144. Part 1: Rename identifiers from 'active scroll(ed) root' to 'animated geometry root'. r=mattwoodrow
...
Also sneaks in a couple of other refactorings:
--HG--
extra : rebase_source : 8b0e0729f26231d98ed069b54dd4f7c1e51b10b5
2013-09-26 09:07:26 +12:00
Horia Iosif Olaru
b360983fd3
Bug 841601 - Add background-blend-mode implementation. r=roc
2013-11-08 10:08:03 -05:00
Robert O'Callahan
94564fbd20
Bug 911889. Part 3: Create nsLayoutUtils::HasAnimations, and suppress opacity:0 optimizations whenever there's any opacity animation even if it's not using the compositor. r=dbaron
...
--HG--
extra : rebase_source : b3ffe185686e38226e0979060a74669271e1c2d5
2013-09-04 23:30:57 +12:00
Robert O'Callahan
50a8ed91e8
Bug 911889. Part 3: Create nsLayoutUtils::HasAnimations, and suppress opacity:0 optimizations whenever there's any opacity animation even if it's not using the compositor. r=dbaron
2013-09-04 23:30:57 +12:00
Robert O'Callahan
7633c2c898
Bug 911889. Part 2: Refactor MarkLayersActive code into its own class and be much more explicit about what it does. r=mattwoodrow
...
This also changes the functionality a little bit to track independent
per-property mutation counts and independent "content active" status.
--HG--
extra : rebase_source : e69b8e7a95d36720bd38d74f0789ede603e58a09
2013-09-04 23:30:57 +12:00
Robert O'Callahan
62b7c5862c
Bug 911889. Part 2: Refactor MarkLayersActive code into its own class and be much more explicit about what it does. r=mattwoodrow
...
This also changes the functionality a little bit to track independent
per-property mutation counts and independent "content active" status.
2013-09-04 23:30:57 +12:00
Robert O'Callahan
8bac055181
Bug 929021. Skip calling GetFrameBoundsForTransform when we don't need it. r=heycam
...
--HG--
extra : rebase_source : 646bea24724034ca4e2c0f2075ae8cb86f884023
2013-10-22 11:09:46 +02:00
Markus Stange
454295facd
Bug 851652 - Change position of the standardWindowButtons for Australis [r=smichaud r=mnoorenberghe+bmo r=jaws r=roc]
...
--HG--
extra : rebase_source : 4936bfc62a4712871caa5d767b1dd2e496e0826c
2013-06-12 23:42:00 +02:00
Chris Lord
7337378c00
Bug 933556 - Anchor fixed, left+right/top+bottom positioned content to center. r=roc
...
If a fixed position element has both top and bottom, or both left and right
positioning, set the fixed position anchor to the center of the corresponding
axis. This causes it to remain center-aligned when async zooming.
2013-11-15 17:06:29 +00:00
L. David Baron
785d543a47
Bug 929673 Patch 3: Rename GetDeltaToMoz{Transform,Perspective}Origin to remove the Moz to avoid use of deprecated CSS prefixes in variable names. r=dzbarsky
2013-10-24 14:46:00 +02:00
L. David Baron
9b57c9876e
Bug 929673 Patch 2: Rename mToMozOrigin to mToTransformOrigin to avoid use of deprecated CSS prefixes in variable names. r=dzbarsky
2013-10-24 14:46:00 +02:00
Rik Cabanier
b0c424efea
Bug 929591 - Blending fails if parent stacking context has text
2013-10-22 13:31:00 +01:00
Ed Morley
c38972e11a
Backed out changeset 75ee2a0bc5d3 (bug 929021)
2013-10-24 10:28:12 +01:00
Robert O'Callahan
e6ff4d26f4
Bug 929021. Skip calling GetFrameBoundsForTransform when we don't need it. r=heycam
...
--HG--
extra : rebase_source : d081b5acc5df7518e004a9ce5e9d27afaa7041fe
2013-10-22 11:09:46 +02:00
Ed Morley
2b652a30e1
Backed out changeset a61d898ea4fa (bug 929021) on suspicion of reftest failures on a CLOSED TREE
2013-10-23 16:22:47 +01:00
Robert O'Callahan
43c5f9f44d
Bug 929021. Skip calling GetFrameBoundsForTransform when we don't need it. r=heycam
...
--HG--
extra : rebase_source : cc2d02ef222883bb3a95295c5c896990f199047d
2013-10-22 11:09:46 +02:00
Wes Kocher
3d55f8e6de
Merge m-c to inbound
2013-10-22 18:43:11 -04:00
Robert O'Callahan
64040f3483
Bug 903340. Make nsDisplayScrollInfoLayer::ShouldFlattenAway side-effect-free. r=tn
2013-10-21 15:47:26 -07:00
Robert O'Callahan
e4edd353f5
Bug 923193. Make transform-origin on SVG elements use the SVG bbox as the reference rectangle. r=heycam
...
--HG--
extra : rebase_source : f4f620acc51e14625f45b8022385d8a1112fd086
2013-10-03 08:34:24 -04:00
Markus Stange
4822f99e19
Bug 929362 - When refusing compositor animation during BuildLayer, set a property on the frame that disables all async animations on it forever. r=roc
...
--HG--
extra : rebase_source : 98c9b690a4842c19314dd46f5e531601b77fe527
2013-10-22 12:30:45 +02:00
Robert O'Callahan
7078351f62
Backed out changeset 0ef00ffc6c12 for bug 923193 due to test failures:
2013-10-03 09:52:44 -04:00
Robert O'Callahan
82e98d5a7a
Bug 923193. Make transform-origin on SVG elements use the SVG bbox as the reference rectangle. r=heycam
...
--HG--
extra : rebase_source : 7c8d1b42a09b9389d082195edd0c683e2dc7e12e
2013-10-03 08:34:24 -04:00
Wes Kocher
edf79e60e0
Merge fx-team to m-c
2013-09-27 20:32:24 -07:00
Kartikaya Gupta
370d1627f6
Bug 918682 - Fix the check for finding the root content document's root scroll frame. r=tn
2013-09-27 15:15:57 -04:00
Markus Stange
52b360943f
Bug 532828 - Don't invalidate the whole window on window activation/deactivation. r=roc
2013-09-27 17:24:32 +02:00
Mats Palmgren
4974add798
Bug 919318 - Drop the Get prefix on the frame methods GetFirstContinuation, GetLastContinuation, GetFirstInFlow, GetLastInFlow and also on nsLayoutUtils::GetLastContinuationWithChild, because they never return null. r=dholbert
2013-09-25 11:42:34 +00:00
Robert O'Callahan
29b44fab90
Bug 913438. Remove mAnchor check since it doesn't help correct inconsistency between ImageLayer snapping and regular snapped image drawing, and can hurt performance. r=tnikkel
...
--HG--
extra : rebase_source : 5f62e052d20a9acb0a428b988e2d9b16c7b19dbc
2013-09-09 17:08:41 -07:00
Rik Cabanier
8c416eb225
Bug 902525 - Part 7: fix to turn off text anti-aliasing r=roc
2013-09-15 16:48:14 -07:00
Rik Cabanier
fc566afdce
Bug 902525 - Part 3: create a layer for content that stores the blend mode r=roc
2013-09-14 20:40:11 -07:00
Rik Cabanier
0383e51844
Bug 902525 - Part 2: Create layers for isolated groups when blending is involved r=roc
2013-09-14 20:30:00 -07:00
Ehsan Akhgari
6ada2899b2
Bug 916610 - Minimize the #includes in layout/style; r=roc
2013-09-15 21:06:52 -04:00
Ryan VanderMeulen
a3f1ea6990
Backed out 7 changesets (bug 902525) for B2G reftest failures.
...
Backed out changeset bbca63772c83 (bug 902525)
Backed out changeset edb386989dbd (bug 902525)
Backed out changeset 3137dadb4fcd (bug 902525)
Backed out changeset e562afcb3c89 (bug 902525)
Backed out changeset 8ef3a516bd68 (bug 902525)
Backed out changeset 520fcd422150 (bug 902525)
Backed out changeset 4e553e8da44e (bug 902525)
2013-09-15 18:59:27 -04:00
Rik Cabanier
8c46808517
Bug 902525 - Part 7: Fix to turn off text anti-aliasing. r=roc
2013-09-15 16:24:57 -04:00
Rik Cabanier
c25a2667f4
Bug 902525 - part 3: Create a layer for content that stores the blend mode. r=roc
2013-09-15 16:24:16 -04:00
Rik Cabanier
80eedaeab4
Bug 902525 - Part 2: Create layers for isolated groups when blending is involved. r=roc
2013-09-15 16:24:06 -04:00
Ryan VanderMeulen
fd45cb64f6
Merge m-c to b2g-inbound.
2013-09-13 16:11:28 -04:00
Botond Ballo
0271c3e3ed
Bug 914825 - Compute FrameMetrics::mCompositionBounds correctly for the root scroll frame. r=tn
2013-09-10 17:47:14 -04:00
Ryan VanderMeulen
a352effd6a
Merge b2g-inbound to m-c.
2013-09-11 20:58:14 -04:00
Kartikaya Gupta
d3935b3b5a
Bug 912806 - Special-case the resolution behaviour on Fennec to work around other bugs. r=tn
2013-09-11 18:17:20 -04:00
Botond Ballo
0f2c4e94ea
Bug 912806 - Store both cumulative and non-cumulative resolutions in FrameMetrics and use whichever is appropriate. r=kats
2013-09-05 18:26:59 -04:00
Kartikaya Gupta
1b7a51767f
Bug 909281 - Add some strongly-typed conversion functions for margins and use them in RecordFrameMetrics. r=BenWa
2013-09-11 13:20:43 -04:00
Botond Ballo
6f8dbcbad1
Bug 913205 - Compute offset of FrameMetrics::mCompositionBounds correctly. r=tn
2013-09-05 18:36:07 -04:00
Botond Ballo
3c1ca05731
Bug 904533 - Compute FrameMetrics::mCompositionBounds correctly for subframes. r=tn
2013-08-30 13:22:33 -04:00
Jonathan Watt
7e60ad4ae6
Bug 907503 - Fix invalidation for SMIL animation in SVG-as-an-image. r=roc
2013-09-04 11:39:31 +01:00
Kartikaya Gupta
cc96ea4f38
Bug 907754 - Ensure that the zoom on the FrameMetrics is initialized correctly for all frames. r=tn
...
RecordFrameMetrics gets called on a variety of layers. Previously it would
incorrectly set mZoom for a number of these layers. For scrollable container
layers inside the main document, it would set the mResolution from the
presShell's resolution, thus compounding the painted resolution.
Furthermore, for iframes inside the document, it would assign mZoom the
value from TabChild's mLastMetrics, which is only meant to apply to the
top-level document. Prior to multi-apzc work these values were never used
so it didn't matter but now they are so they should be assigned correctly.
2013-08-30 13:11:01 -04:00
Nicholas Cameron
4b66038b85
Bug 893330. Invalidate the frame area for box shadow display list items with border radius. r=mattwoodrow
2013-08-23 13:47:54 +12:00
Bill McCloskey
dfc3ae2fef
Bug 907495 - Scrollbars cause content to be shifted in e10s (r=kats,mattwoodrow)
2013-08-22 13:18:11 -07:00
Ehsan Akhgari
2621b190f1
Bug 906790 - Minimize layout/base #includes; r=roc
2013-08-19 18:55:18 -04:00
Botond Ballo
4110c30f98
Bug 895905 - Eliminate some of the special handling of ROOT_SCROLL_ID. r=kats, r=tn
2013-08-08 15:56:08 -04:00
Botond Ballo
f3c2ea43d5
Bug 895905 - B2G mechanism for content to inform APZC about scroll events. Handles multi-APZC. r=kats
2013-08-08 15:56:08 -04:00
Markus Stange
1213991850
Bug 904541 - Don't #include Layers.h in nsPresContext.h. r=roc
2013-08-14 13:33:03 +02:00
Kan-Ru Chen (陳侃如)
41345e7739
Bug 845169 - Update touch region from remote frame. r=roc
2013-08-13 15:56:57 +08:00
Benoit Girard
084ae6868c
Bug 873378 - Add a limit on mobile of 20 layers per container layer. r=roc
2013-07-16 16:17:18 -04:00
Timothy Nikkel
680c0cb73c
Bug 837242. Part 2. Add a function to calculate the area of an nsRegion. r=roc
2013-07-30 11:22:43 -05:00
Ehsan Akhgari
ef4b479714
Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted
2013-07-30 10:25:31 -04:00
David Zbarsky
0c95eabb49
Backout 4c89002460da (Bug 873378) for breaking the settings app on B2G
2013-07-26 13:20:23 -07:00
Ryan VanderMeulen
8a72e4a46d
Backed out changesets 4f35e943f939 and da5fa63e90cb (bug 896250) for causing frequent OSX debug asserts on a CLOSED TREE.
2013-07-26 01:22:40 -04:00
Milan Sreckovic
0c56314e69
Bug 896250: Return the max number, not the flag checking if the number was set. r=joe
2013-07-22 17:05:21 -04:00
Ryan VanderMeulen
fd2218b43a
Backed out changeset 8322b4eeb9c6 (bug 897239) to avoid the same Android reftest failures we hit when bug 896250 landed.
...
CLOSED TREE
2013-07-24 16:14:01 -04:00
Dave Hylands
7abc325927
Bug 897239 - Fix regression introduced by bug 873378. a=roc
2013-07-24 09:22:22 -07:00
Ms2ger
fe97b4a6ec
Bug 896261 - Remove aAppendedThemedBackground arguments from nsDisplayBackgroundImage::AppendBackgroundItemsToTop, nsFrame::DisplayBackgroundUnconditional; r=roc
2013-07-24 09:38:55 +02:00
Ryan VanderMeulen
5ba309bbd0
Backed out changeset 1e1b4d5c51b7 (bug 896250) to see if it fixes the Android reftest orange.
...
CLOSED TREE
2013-07-23 14:06:40 -04:00
Milan Sreckovic
4958630a4c
Bug 896250 - Return the max number, not the flag checking if the number was set. r=joe
2013-07-22 17:05:21 -04:00
Corey Ford
d5b2deaa8e
Bug 897105 - Part 4: Build display items and layers for sticky positioned elements. r=roc
2013-09-12 18:56:57 -07:00
Chris Lord
10605e0e62
Bug 886298 - Convert Layers fixed position margins to typed units. r=kats
2013-07-22 09:50:13 +01:00
Chris Lord
baaed043f6
Bug 886298 - Convert Layers fixed position anchor to typed units. r=kats
2013-07-22 09:50:09 +01:00
Benoit Girard
1591216c2a
Bug 873378 - Add a limit on mobile of 20 layers per container layer. r=roc
2013-07-16 16:17:18 -04:00
Markus Stange
cddb8f5c57
Bug 894905 - Create a separate nsDisplayItem subclass for -moz-appearance backgrounds. r=roc
2013-07-18 08:34:58 +02:00
Markus Stange
da419264b0
Bug 894905 - Make AppendBackgroundItemsToTop return a bool instead of an nsDisplayBackgroundImage. r=roc
2013-07-18 08:34:10 +02:00
Benoit Girard
f152264ea8
Bug 890279 - Create ScrollInfoLayers for frames we want APZC support. r=kats
2013-07-02 11:16:05 -04:00
Kartikaya Gupta
cd818593b0
Bug 866265 - Revert a line from bug 883646 because it was incorrect. r=kentuckyfriedtakahe
2013-07-03 09:04:48 -04:00
Timothy Nikkel
e53199ae28
Bug 695763. Part 5. Invalidate background images if they are not decoded and we are asked to do a sync decode. r=matt.woodrow
2013-06-26 11:43:27 -05:00
Timothy Nikkel
5942372742
Bug 695763. Part 3. Invalidate the background images of buttons, fieldsets, and mathml chars if they are not decoded and we are asked to do a sync decode. r=matt.woodrow
2013-06-26 11:43:26 -05:00
Phil Ringnalda
fbec0d00df
Merge m-c to m-i
2013-06-22 15:56:20 -07:00
David Zbarsky
68e5aca4a0
Bug 881121: Remove the 3d-transforms-enabled pref because it is always enabled and has been for a while r=dbaron
2013-06-22 13:35:09 -07:00
Kartikaya Gupta
1de2b15435
Bug 883646 - Propagate the ScaleFactor classes far and wide. r=kentuckyfriedtakahe
2013-06-21 17:03:56 -04:00
Ryan VanderMeulen
d2b6c8631b
Backed out 7 changesets (bug 883646) for reftest-ipc failures.
...
Backed out changeset 2272804a8e71 (bug 883646)
Backed out changeset e39d3bdf847a (bug 883646)
Backed out changeset bf46fc332efe (bug 883646)
Backed out changeset 6bb558c3136f (bug 883646)
Backed out changeset d7d5d16e27e0 (bug 883646)
Backed out changeset 14c73096a132 (bug 883646)
Backed out changeset 89f6185a271b (bug 883646)
2013-06-20 17:36:39 -04:00
Kartikaya Gupta
603cf626d1
Bug 883646 - Propagate the ScaleFactor classes far and wide. r=kentuckyfriedtakahe
2013-06-20 16:10:58 -04:00
Robert O'Callahan
50ed09d4f7
Bug 876092. Copy the DisplayItemClip into OutOfFlowDisplayData instead of storing a pointer. r=mats
2013-06-18 21:15:39 +12:00
Robert O'Callahan
3626efe7eb
Bug 876092. Part 1. Don't let effects of MarkFramesForDisplayList carry over between pages. r=mats
2013-06-18 21:15:37 +12:00
Matt Woodrow
7b9d5b3e53
Bug 873944 - When we have OMTC, don't invalidate and wait for the widget paint event, just call DidPaint immediately. If we do get a widget paint event (from an OS initiated resize or similar), then block until the compositor has drawn the frame. r=roc
2013-06-18 19:59:29 +12:00
Kartikaya Gupta
fa6e557e9e
Bug 880676 - Correct the composition bounds to be in screen coordinates rather than layer coordinates. r=kentuckyfriedtakahe
2013-06-14 16:11:29 -04:00
Kartikaya Gupta
dc77049db1
Bug 785929 - Kill FrameMetrics.mContentRect. r=kentuckyfriedtakahe
2013-06-11 09:46:51 -04:00
Kartikaya Gupta
95a5f9d752
Bug 879004 - Change FrameMetrics.mViewport to be a CSSRect. r=BenWa
2013-06-10 09:05:43 -04:00
Kartikaya Gupta
39f7cc7f7b
Bug 879004 - Convert mDisplayport and mCriticalDisplayport in FrameMetrics to CSSRects. r=BenWa
2013-06-10 09:05:42 -04:00
David Zbarsky
01bf8c6778
Bug 779395 - Add support for skew transforms to compositor-driven animations r=dbaron
2013-05-21 18:22:44 +08:00
Timothy Nikkel
c29d266b4a
Bug 878612. Make sure to pass through the background painting flags through in all cases. r=matt.woodrow
2013-06-03 23:49:03 -05:00
Joe Drew
339528e31f
Bug 878062 - Don't call TryOptimizeToImageLayer if we are definitely not going to optimize to an image layer, since it uses lots of memory. r=mattwoodrow
2013-06-03 10:57:06 -04:00
Kartikaya Gupta
1fa7c9cb13
Bug 877728 - Convert the page rect passed to SetFirstPaintViewport to LayerIntRect. r=BenWa
2013-06-03 09:58:34 -04:00
Kartikaya Gupta
46a7789a65
Bug 877728 - Convert some CSS rects passed to Java from gfx::Rect to CSSRect. r=BenWa
2013-06-03 09:52:44 -04:00
David Zbarsky
25c207c56b
Bug 788549: Fix matrix animations (patch hunk got lost in rebasing) r=dbaron
2013-06-02 13:35:17 -07:00
David Zbarsky
2e90cee850
Bug 788549 Part 9: matrix() animations interpret arguments in wrong order r=dbaron
2013-05-31 11:06:56 -07:00
Joe Drew
46f4aef1d0
Bug 867770 - Add a pref as to whether we layerize animated images, disabled by default. r=mattwoodrow
2013-05-30 21:33:17 -04:00
Joe Drew
64fe79505a
Bug 867770 - Layerize all animated images. r=mattwoodrow
2013-05-30 09:50:50 -04:00
Kartikaya Gupta
1e3b912be9
Bug 877726 - Convert FrameMetrics.mScrollOffset to be a CSSPoint. r=kentuckyfriedtakahe
2013-05-30 21:30:13 -04:00
Matt Woodrow
7d4cb174a7
Bug 869133 - Recycle the ImageLayers created by nsDisplayImage/nsDisplayBackgroundImage instead of recreating them each time. r=roc
2013-05-30 14:42:28 +12:00
Anthony Jones
2301455d33
Bug 868047 - Use a PresShell ID to eliminate stale APZC events; r=roc,benwa
2013-05-24 09:43:36 +08:00
Markus Stange
08702570d3
Bug 676241 part 8: Remove alternate layer manager handling. r=mattwoodrow
2013-05-23 16:49:18 +02:00
Markus Stange
df0daeb0fd
Bug 871590 - Make unified titlebar / toolbar handling more robust. r=roc
2013-05-22 11:50:57 +02:00
Markus Stange
78a27ca962
Backed out 2 changesets (bug 871590) CLOSED TREE
2013-05-22 14:10:46 +02:00
Markus Stange
ac855585e9
Bug 871590 - Make unified titlebar / toolbar handling more robust. r=roc
...
--HG--
extra : rebase_source : dc4c5dff4f0a392e096976b355bcf2140f7b2879
2013-05-22 11:50:57 +02:00
Ed Morley
fa097e6aaa
Backed out changeset 1d056bb94292 (bug 779395) for reftest failures on Tegras
2013-05-21 14:03:43 +01:00
David Zbarsky
f4fefe3c41
Bug 779395 - Add support for skew transforms to compositor-driven animations r=dbaron
2013-05-21 18:22:44 +08:00
Matt Woodrow
aa1f1295a6
Bug 866470 - Make the style context lookup in nsDisplayList match what nsCSSRendering does. r=roc
2013-05-08 15:47:31 +12:00
Robert O'Callahan
7e20e1ed1a
Bug 866579. Don't bother adding an arena-allocated DisplayItemClip to mDisplayItemClipsToDestroy if its destructor isn't going to do anything interesting. r=mattwoodrow
...
--HG--
extra : rebase_source : b8b64d9697cd2f19a42ff751cbfb7a1566f28209
2013-05-07 22:16:30 -07:00