Commit Graph

970 Commits

Author SHA1 Message Date
Timothy Nikkel
fb63d1472a Bug 1042772. Update the reference frame and current frame offset when moving to outside a transform so that we can use the correct offset to compute the initial visible rect for wrap list display items. r=roc
* * *
The current reference frame is still the same as our reference frame because we set and restore it in nsFrame::BuildDisplayListForChild before this. So we need to actually compute it.
2014-08-07 11:33:18 -05:00
Botond Ballo
720158f10e Bug 1040087 - For root scroll frames, use the canvas background color calculated by the pres shell when overscrolling. r=tn 2014-08-06 18:05:11 -04:00
Matt Woodrow
cfce6663f6 Bug 1045864 - Disable layerized background-attachment:fixed when we're using a software compositor. r=roc 2014-08-05 15:25:00 +12:00
Botond Ballo
e2b30297a4 Bug 1023557 - Store the content description in ContainerLayer instead of FrameMetrics. r=kats,BenWa 2014-07-31 16:11:47 -04:00
David Zbarsky
dcd4a14940 Bug 952977: More gfx::Matrix cleanup in FrameLayerBuilder r=nical 2014-08-01 08:31:49 -04:00
David Zbarsky
1c4b5d248a Bug 952977: More gfx::Matrix cleanup in nsDisplayTransform r=nical 2014-08-01 08:31:48 -04:00
Robert O'Callahan
38abe3cebe Bug 1042104. Part 2: Set nsDisplayTransform's visible rect appropriately if we're prerendering it. r=tn
--HG--
extra : rebase_source : 20e95312e0b3b17098314647edc1ad9786c46eb9
2014-07-30 00:09:35 +12:00
Robert O'Callahan
cdaa7cd2e4 Bug 1042104. Part 1: Cache prerender flag in nsDisplayTransform. r=tn
--HG--
extra : rebase_source : 79f39bb1b0d29cc28b4d492fbf6a497f99ec9dac
2014-07-30 00:09:35 +12:00
Wes Kocher
3c155637a3 Backed out 11 changesets (bug 952977) for reftest-no-accel failures
Backed out changeset ea2367c19da3 (bug 952977)
Backed out changeset c401c8748eb3 (bug 952977)
Backed out changeset a93e9ff1043b (bug 952977)
Backed out changeset 765b7f67163e (bug 952977)
Backed out changeset 3d8cf4f5777f (bug 952977)
Backed out changeset 8993710a3ab3 (bug 952977)
Backed out changeset 1298c39b745a (bug 952977)
Backed out changeset be0b899fbe5e (bug 952977)
Backed out changeset f69bea1f1feb (bug 952977)
Backed out changeset 1a745777f07e (bug 952977)
Backed out changeset 5ad1d18dfe17 (bug 952977)
2014-07-29 18:58:46 -07:00
David Zbarsky
6cf4dc1afd Bug 952977: More gfx::Matrix cleanup in FrameLayerBuilder r=nical 2014-07-29 19:18:52 -04:00
David Zbarsky
b967b647bf Bug 952977: More gfx::Matrix cleanup in nsDisplayTransform r=nical 2014-07-29 19:18:50 -04:00
Timothy Nikkel
728274599e Bug 1043644 - Use the frame bounds instead of the view bounds. r=kats 2014-07-29 14:50:48 -04:00
Kartikaya Gupta
917e8cd729 Bug 1043644 - Use the content viewer bounds instead of the view bounds if available. r=tn 2014-07-29 14:50:48 -04:00
Matt Woodrow
21c89b906b Bug 1043961 - Disabled desktop display port changes for android. r=tn
--HG--
extra : rebase_source : d1de78af825bac1e7f06ff81c4394d70a75cc8fd
2014-07-29 12:07:36 +12:00
Botond Ballo
fd0b0c0f0a Bug 1032880 - Disable 'transparent content with displayports' warning in tests. r=tn
--HG--
extra : source : 15adf5eda9a8f4576202b62ad0268c73bcdc4977
2014-07-22 17:01:50 -04:00
Matt Woodrow
cf61976550 Bug 1031107 - Part 6: Subtract from the visible region in nsDisplayScrollLayer if we're not using APZ. r=tn 2014-07-24 15:13:23 +12:00
Matt Woodrow
26e1f42909 Bug 1031107 - Part 3: Skip display port visibility when computing plugin geometry. r=tn 2014-07-24 15:11:30 +12:00
Matt Woodrow
57456c50b6 Bug 1031107 - Part 2: Don't restrict out-of-flow frames dirty area to the viewport when not painting. r=tn 2014-07-24 15:10:44 +12:00
Matt Woodrow
90607a09dc Bug 1031107 - Part 1: Fix DoLogTestDataForPaint when using temporary layer managers. r=kats 2014-07-24 15:10:05 +12:00
Wes Kocher
50fa9c92c0 Backed out changeset 6ab8ef0895ca (bug 1032880) for bustage 2014-07-23 16:55:00 -07:00
Botond Ballo
a7f4a6dd87 Bug 1032880 - Disable 'transparent content with displayports' warning in tests. r=tn
--HG--
extra : rebase_source : 21ea67d322cb4a780b67584be4047f6ca8ac6690
2014-07-22 17:01:50 -04:00
Timothy Nikkel
3ace971252 Bug 1041510. Allow z-index overrides of 0 to work correctly on display items. r=roc 2014-07-23 18:07:18 -05:00
Botond Ballo
be603754de Bug 1035598 - Add gfx3DMatrix::ChangeBasis(), replacing nsLayoutUtils::ChangeMatrixBasis(). r=mattwoodrow 2014-07-22 18:05:13 -04:00
Matt Woodrow
8bae8c6efc Bug 1039926 - Refactor display list invalidation so that the majority happens after we've finished assigning items to ThebesLayers. r=roc 2014-07-23 18:03:24 +12:00
Matt Woodrow
14faf75e9b Bug 1042423 - Part 5: Remove PaintBackgroundColor. r=roc 2014-07-23 17:23:38 +12:00
Matt Woodrow
8028bbe23b Bug 1042423 - Part 4: Clip background display items using DisplayItemClip. r=roc 2014-07-23 17:22:17 +12:00
Kartikaya Gupta
0df3a31848 Bug 1040906 - Replace the out-param on matrix conversion helpers with a return value. r=Bas 2014-07-22 09:12:14 -04:00
Robert O'Callahan
91f1cc1251 Bug 1041200. Ensure nsDisplayZoom and friends compute mVisibleRect relative to their reference frame. r=mattwoodrow 2014-07-22 17:50:11 +12:00
Robert O'Callahan
37ae3ee79e Bug 1003425. When opacity is delegated to an nsDisplayBoxShadowOuter via nsDisplayItem::ApplyOpacity, store the opacity in our geometry so we can invalidate if it changes. r=mattwoodrow
--HG--
extra : rebase_source : f4b44bad8537029b0e03d912b927686aa352d681
2014-07-22 01:59:10 +12:00
Robert O'Callahan
815af71a46 Bug 1022612. Part 37: Remove aAllowVisibleRegionExpansion. r=mattwoodrow
This is no longer needed thanks to the readback simplification.

--HG--
extra : rebase_source : 659147670395fefe41647daab8af93f6c439a99c
2014-06-23 16:24:51 +12:00
Robert O'Callahan
fec34e5e0f Bug 1022612. Part 36: Avoid redundant calls to ShouldPrerenderTransformedContent. r=mattwoodrow
--HG--
extra : rebase_source : 0c1fd6bbe77ccf5811620be8333a5dfdc21e2d5b
2014-06-23 16:24:15 +12:00
Robert O'Callahan
06102a099d Bug 1022612. Part 33: Remove InFixedPos code. r=mattwoodrow
This hasn't been used for a while I guess.

--HG--
extra : rebase_source : d59328f96a11cc65e141c75475c09edac5d42af2
2014-06-23 16:24:14 +12:00
Robert O'Callahan
808792d22f Bug 1022612. Part 30: Expose IsConstructingScrollLayerForScrolledFrame and IsDisplayPortOpaque on nsDisplayScrollLayer. r=mattwoodrow
--HG--
extra : rebase_source : 87d76ad3e9d560f34dad56c25cb96516871e280a
2014-06-23 16:23:58 +12:00
Robert O'Callahan
4ee42acd8c Bug 1022612. Part 27: Make FrameLayerBuilder responsible for setting all layer visible regions. r=mattwoodrow
Calling Layer::SetVisibleRegion multiple times in a transaction can result in
unnecessary IPC traffic.

This patch removes Intersect(childGfxBounds). This is only needed to
restrict the visible region to something sane for 3D transforms, and this will
be fixed up in a later patch.

--HG--
extra : rebase_source : 4518bc060fa2c28dacdb7d3aaeca55a148dfe762
2014-06-18 15:12:55 +12:00
Robert O'Callahan
77fd4a6c97 Bug 1022612. Part 26: nsDisplayList::mVisibleRect is no longer used. r=mattwoodrow
--HG--
extra : rebase_source : 7043ed9341a44cbb35f7ac5d836fe9b11a0f3911
2014-06-12 00:09:13 +12:00
Robert O'Callahan
8d8d911af5 Bug 1022612. Part 25: We don't need to explicitly worry about displayports anymore when computing occlusion. r=mattwoodrow
--HG--
extra : rebase_source : 45b7a56291309e79327d240e81b1de4c499695dc
2014-06-09 16:48:02 +12:00
Robert O'Callahan
a438107cde Bug 1022612. Part 24: Simplify nsDisplayList::ComputeVisibilityForSublist now that FrameLayerBuilder does most of the work. r=mattwoodrow
--HG--
extra : rebase_source : 0db68211898c111a465dc641bed8e3b2923f0e4e
2014-06-09 16:48:02 +12:00
Robert O'Callahan
f00b9f098c Bug 1022612. Part 23: Remove nsDisplayItem::IsVaryingRelativeToMovingFrame. r=mattwoodrow
It's obsolete and no-one calls it.

--HG--
extra : rebase_source : f07121d1e5766d7b2a0ecdc2d10bc3ccf587a14b
2014-06-09 16:48:02 +12:00
Robert O'Callahan
b767cf2502 Bug 1022612. Part 22: Add MOZ_COUNT_CTOR to nsDisplayWrapList. r=mattwoodrow
--HG--
extra : rebase_source : 09252e01de90bd3e5c0cb77de80ee88e24b85f05
2014-06-09 16:48:01 +12:00
Robert O'Callahan
de781d04dc Bug 1022612. Part 21: Remove DidComputeVisibility checking. r=mattwoodrow
--HG--
extra : rebase_source : 31b54ea4998ddc6fa62369f9f943b4c751101cad
2014-06-09 16:48:01 +12:00
Robert O'Callahan
6fb1dbced3 Bug 1022612. Part 20: Do the business. r=mattwoodrow
--HG--
extra : rebase_source : c13789e08893c3ac7745aa32c9002b6edb6e2192
2014-06-09 16:48:01 +12:00
Robert O'Callahan
0494ac0078 Bug 1022612. Part 18: When ComputeVisibility returns false, RecomputeVisibility should avoid painting the item. r=mattwoodrow
--HG--
extra : rebase_source : 5f4fcb05204262bf6fea0c9df00137ab7e26bb00
2014-06-20 17:24:31 +12:00
Robert O'Callahan
bc099798f5 Bug 1022612. Part 17: RecordFrameMetrics should not set layer visible regions. r=mattwoodrow
This is unnecessary. FrameLayerBuilder sets the correct region.

--HG--
extra : rebase_source : 4fdef8f272870667a73575685e04644dca9473f3
2014-06-11 23:12:14 +12:00
Robert O'Callahan
7632a9b8c6 Bug 1022612. Part 15: Add nsDisplayItem::GetVisibleRectForChildren(). r=mattwoodrow
--HG--
extra : rebase_source : cf958f41493ab25762f0c3bcc0361b0810e88549
2014-07-15 23:47:46 +12:00
Robert O'Callahan
60c38334c4 Bug 1022612. Part 14: Don't compute a final transparent region anymore. r=mattwoodrow
Computing this via FrameLayerBuilder is some work and we don't really have to.

SuppressComponentAlpha will be true in more cases. This will be OK as long as
text in the chrome window is over opaque content in the same ThebesLayer. We
will miss some edge cases such as text in 'opacity' with no opaque background.
This should be OK.

--HG--
extra : rebase_source : fa23d4980710a3961f23cedf3ebdf01b49d63518
2014-06-09 16:48:00 +12:00
Robert O'Callahan
f454ea8959 Bug 1022612. Part 10: Implement merging and flattening in ProcessDisplayItems. r=mattwoodrow
BuildContainerLayerFor now has to be able to mutate the passed-in display item
list.

--HG--
extra : rebase_source : a3cf9106703d4946a49a73ef60a605f72b2afee3
2014-06-09 16:48:00 +12:00
Robert O'Callahan
621ee65ba4 Bug 1022612. Part 9: nsDisplayScrollInfoLayer destructor does not need to destroy ScrollLayerCount. r=mattwoodrow
Getting the timing of this right without processing display items in reverse
order is hard. But it doesn't matter if this property sticks around anyway.

--HG--
extra : rebase_source : a5a68cc0184209506b5c842bf3c5b90648aae159
2014-06-09 16:47:59 +12:00
Robert O'Callahan
a7afb232a3 Bug 1022612. Part 6: Set the initial mVisibleRect for each display item to the dirty rect when we create the item. r=mattwoodrow
--HG--
extra : rebase_source : b3207861e7476e954a8869a8b2d74e642ea6e56b
2014-06-09 16:47:59 +12:00
Robert O'Callahan
b928ef8d93 Bug 1022612. Part 4: Track current dirty rect in nsDisplayListBuilder. r=mattwoodrow
We need this to set the initial visible rect during display list construction.
Eventually we'll also be able to get rid of the dirty rect parameter to
nsIFrame::BuildDisplayList.

--HG--
extra : rebase_source : b793c7d51917b85ea2a5f39993bc1fec24b49d04
2014-05-20 15:59:14 +12:00
Robert O'Callahan
2f1bbefcfd Bug 1022612. Part 3: Rename "cached frame" to "current frame" in nsDisplayListBuilder and take advantage of the fact it's always set. r=mattwoodrow
--HG--
extra : rebase_source : cde43a3f358fbb0991ed84d10fc4e1a0de255e9c
2014-05-20 15:49:54 +12:00