Граф коммитов

2735 Коммитов

Автор SHA1 Сообщение Дата
Timothy Nikkel 409d2513b2 Bug 1729604. Remove unused aClipRect argument to nsLayoutUtils::ComputeScrollMetadata. r=hiro
Depends on D124871

Differential Revision: https://phabricator.services.mozilla.com/D124872
2021-09-08 04:20:56 +00:00
Marian-Vasile Laza d25d135947 Backed out 7 changesets (bug 1728050, bug 1728251, bug 1728232, bug 1542929, bug 1714138, bug 1728258) for causing reftest failures. CLOSED TREE
Backed out changeset 41e053201cd3 (bug 1714138)
Backed out changeset 16ae9f5b4aa0 (bug 1728258)
Backed out changeset 414aa7ff05fe (bug 1542929)
Backed out changeset 7217ecf149c4 (bug 1728251)
Backed out changeset 405ff2ed2110 (bug 1728251)
Backed out changeset 3eec9e6c7218 (bug 1728232)
Backed out changeset 66038c15fe54 (bug 1728050)
2021-09-07 09:00:26 +03:00
Matt Woodrow 4588b30e2b Bug 1714138 - Remove AnimatedGeometryRoot. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D124154
2021-09-06 23:12:05 +00:00
Matt Woodrow e060744ad1 Bug 1728258 - Compute AnimatedGeometryRoot frames in RetainedDisplayListBuilder without needing the existing object stored on nsDisplayItem. r=miko,mstange
Differential Revision: https://phabricator.services.mozilla.com/D124153
2021-09-06 23:12:04 +00:00
Matt Woodrow 9bdea2da6b Bug 1542929 - Remove mReferenceFrame from nsDisplayItem. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D124009
2021-09-06 23:12:04 +00:00
Matt Woodrow 51b371636c Bug 1728251 - Remove mClip and compute it when we need it. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D124008
2021-09-06 23:12:04 +00:00
Matt Woodrow e7b3614318 Bug 1728251 - Remove FuseClipChainUpTo since its unused. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D124007
2021-09-06 23:12:03 +00:00
Matt Woodrow 3f9d3853cd Bug 1728232 - Remove RestoreState. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D124006
2021-09-06 23:12:03 +00:00
Matt Woodrow 7e0f7ff766 Bug 1728050 - Move opacity flattening to be part of WR DL serialization. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D124005
2021-09-06 23:12:02 +00:00
Sandor Molnar e259e004de Backed out 3 changesets (bug 1729236) for causing reftest failures in layout/reftests/svg/filters/filter-giant.
Backed out changeset 1333d00d417c (bug 1729236)
Backed out changeset a3021a3499e1 (bug 1729236)
Backed out changeset 49a5aa4c8eb7 (bug 1729236)
2021-09-06 19:31:31 +03:00
Matt Woodrow 47cbc38463 Bug 1729236 - Remove GetPaintRect. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D124590
2021-09-06 06:26:08 +00:00
Matt Woodrow 42dfbb387c Bug 1729236 - Don't use GetPaintRect for painting text. r=jrmuizel
Text is the exception, where clipping the WR commands to the paint rect can let us reduce the size sent.
We want to avoid this when doing fallback painting, since we don't want to have to track paint rect changes for invalidation.

Differential Revision: https://phabricator.services.mozilla.com/D124589
2021-09-06 06:26:08 +00:00
Matt Woodrow 3cdf8e4aeb Bug 1729236 - Don't use GetPaintRect for CreateWebRenderCommands. r=jrmuizel
WebRender prefers to know the full bounds of the primitive, since it makes invalidation easier (and doesn't increase the size of the commands we send).

Differential Revision: https://phabricator.services.mozilla.com/D124588
2021-09-06 06:26:07 +00:00
Iulian Moraru 80b969f9fe Backed out 3 changesets (bug 1729236) for causing multiple failures. CLOSED TREE
Backed out changeset 8ebf965d624b (bug 1729236)
Backed out changeset 0d26dce41a12 (bug 1729236)
Backed out changeset bf228d1f3b49 (bug 1729236)
2021-09-06 07:32:43 +03:00
Matt Woodrow 0b4541468e Bug 1729236 - Remove GetPaintRect. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D124590
2021-09-06 03:42:26 +00:00
Matt Woodrow d84885ee2a Bug 1729236 - Don't use GetPaintRect for painting text. r=jrmuizel
Text is the exception, where clipping the WR commands to the paint rect can let us reduce the size sent.
We want to avoid this when doing fallback painting, since we don't want to have to track paint rect changes for invalidation.

Differential Revision: https://phabricator.services.mozilla.com/D124589
2021-09-06 03:42:26 +00:00
Matt Woodrow 87fc1d4890 Bug 1729236 - Don't use GetPaintRect for CreateWebRenderCommands. r=jrmuizel
WebRender prefers to know the full bounds of the primitive, since it makes invalidation easier (and doesn't increase the size of the commands we send).

Differential Revision: https://phabricator.services.mozilla.com/D124588
2021-09-06 03:42:25 +00:00
Matt Woodrow d41e38aec0 Bug 1727682 - Make WebRenderLayerManager not inherit LayerManager. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D124433
2021-09-05 22:36:45 +00:00
Matt Woodrow 5fa3be57b1 Bug 1728925 - Convert IsImageContainerAvailable to use WindowRenderer. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D124427
2021-09-05 22:36:45 +00:00
Matt Woodrow 700f26a934 Bug 1728925 - Remove unused nsDisplayImageContainer. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D124426
2021-09-05 22:36:44 +00:00
Matt Woodrow 4ffaa45107 Bug 1728914 - Remove AsLayerManager. r=gfx-reviewers,aosmond
Depends on D124420

Differential Revision: https://phabricator.services.mozilla.com/D124421
2021-09-05 02:16:38 +00:00
Matt Woodrow de15de8fe8 Bug 1728914 - Convert painting entrance points to use WebRenderLayerManager directly. r=gfx-reviewers,aosmond
Depends on D124417

Differential Revision: https://phabricator.services.mozilla.com/D124418
2021-09-05 02:16:37 +00:00
Matt Woodrow 3b71aff051 Bug 1728914 - Convert GetWidgetLayerManager to return a WebRenderLayerManager. r=gfx-reviewers,aosmond
Depends on D124416

Differential Revision: https://phabricator.services.mozilla.com/D124417
2021-09-05 02:16:37 +00:00
Timothy Nikkel 5d32280331 Bug 1729120. Remove nsDisplayBackgroundImage::ShouldCreateOwnLayer since it's unused. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D124534
2021-09-04 11:52:35 +00:00
Matt Woodrow a1f669f3aa Bug 1728709 - Add nsDisplayItem::GetPaintRect that computes a value using the current clip extents. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D124299
2021-09-03 18:58:18 +00:00
Iulian Moraru d7a06601a0 Backed out changeset 089962073382 (bug 1728903) for causing Bp-hybrid bustages on ImageBitmapRenderingContext.cpp. CLOSED TREE 2021-09-03 18:49:32 +03:00
Andrew Osmond 472ab1dfc3 Bug 1728903 - Remove plumbing for CanvasLayer and ImageLayer. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D124406
2021-09-03 12:52:05 +00:00
Emilio Cobos Álvarez 70f53c85d4 Bug 856337 - Implement image-rendering: smooth and image-rendering: pixelated. r=jrmuizel,dholbert,longsonr
Also, more directly go from StyleImageRendering to wr::ImageRendering.

 * image-rendering: smooth the non-deprecated version of
   OptimizeQuality, which maps to SamplingFilter::LINEAR /
   wr::ImageRendering::Auto (which uses gl::LINEAR).

 * image-rendering: pixelated maps to wr::ImageRendering::Pixelated /
   SamplingFilter::POINT which is the same crisp-edges does.

Note that this uncovers that we were mapping image-rendering:
crisp-edges to wr::ImageRendering::Pixelated.

I'm going to preserve behavior on this patch but we should consider
switching that to map to wr::ImageRendering::CrispEdges on a
follow-up (filed bug 1728831 for this).

Differential Revision: https://phabricator.services.mozilla.com/D124378
2021-09-03 08:56:43 +00:00
Noemi Erli e5f5e8d032 Backed out changeset f12c6a6cd1a5 (bug 1728903) for causing build bustage in TestTextures.cpp CLOSED TREE 2021-09-03 05:16:59 +03:00
Andrew Osmond 4219d92daf Bug 1728903 - Remove plumbing for CanvasLayer and ImageLayer. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D124406
2021-09-03 01:48:17 +00:00
Noemi Erli f3a236c514 Backed out 2 changesets (bug 856337) for causing xpcshell failures in test_css-properties-db.js CLOSED TREE
Backed out changeset 7070c7cea8ec (bug 856337)
Backed out changeset edc12b36439f (bug 856337)
2021-09-03 01:36:17 +03:00
Andrew Osmond e9c57362fa Bug 1728890 - Remove unused ImageContainer related image code. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D124396
2021-09-02 21:46:14 +00:00
Emilio Cobos Álvarez 1602724fa9 Bug 856337 - Implement image-rendering: smooth and image-rendering: pixelated. r=jrmuizel,dholbert,longsonr
Also, more directly go from StyleImageRendering to wr::ImageRendering.

 * image-rendering: smooth the non-deprecated version of
   OptimizeQuality, which maps to SamplingFilter::LINEAR /
   wr::ImageRendering::Auto (which uses gl::LINEAR).

 * image-rendering: pixelated maps to wr::ImageRendering::Pixelated /
   SamplingFilter::POINT which is the same crisp-edges does.

Note that this uncovers that we were mapping image-rendering:
crisp-edges to wr::ImageRendering::Pixelated.

I'm going to preserve behavior on this patch but we should consider
switching that to map to wr::ImageRendering::CrispEdges on a
follow-up (filed bug 1728831 for this).

Differential Revision: https://phabricator.services.mozilla.com/D124378
2021-09-02 20:28:39 +00:00
Matt Woodrow 766f6df6e7 Bug 1728498 - Remove nsDisplayItem::mPaintRect. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D124156
2021-09-01 23:15:15 +00:00
Jeff Muizelaar aa6cf4b3d4 Bug 1728246. Remove unused ComputeVisibility infrastructure. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D124109
2021-08-31 20:52:54 +00:00
Jeff Muizelaar bfc8589cf8 Bug 1728246. Drop call to ComputeVisibility in nsDisplayList::Paint. r=mattwoodrow
This will cause to paint items that would've previously been occlusion culled,
but we shouldn't be using this code in any performance critical areas and
removing the occlusion culling infrastructure will let us make the fast path
faster.

Differential Revision: https://phabricator.services.mozilla.com/D124108
2021-08-31 20:52:54 +00:00
Jeff Muizelaar efa40c6470 Bug 1728246. Calculate opaqueness on demand instead of in ComputeVisibility. r=mattwoodrow
This lets us remove ComputeVisibility()

Differential Revision: https://phabricator.services.mozilla.com/D124106
2021-08-31 20:52:53 +00:00
Glenn Watson bc95f6481b Bug 1726708 - Add stable key for spatial nodes r=gfx-reviewers,kvark
Add an interface (and update Gecko to provide) a stable unique
identifier for each spatial node that is consistent across
display lists.

Although this patch doesn't _do_ anything useful with this yet,
we'll use this in future to allow interning, persisting and caching
a lot more information related to primitives and clips.

For now, it just asserts that the calling code never supplies a
duplicate unique identifier - which will be useful to have running
in nightly for a couple of weeks before starting to make use of
these identifiers.

Differential Revision: https://phabricator.services.mozilla.com/D123177
2021-08-30 00:33:22 +00:00
Matt Woodrow 5c99a19709 Bug 1727683 - Remove LayerTreeInvalidation. r=jrmuizel
Depends on D123881

Differential Revision: https://phabricator.services.mozilla.com/D123882
2021-08-28 03:54:23 +00:00
Jeff Muizelaar 03b9326d8e Bug 1727814 - Drop mVisibleRegion from box shadow items. r=miko
mVisibleRegion was added in bug 530686 as an optimization for when the invalid
region was vertically discontiguous. WebRender doesn't call ComputeVisibility
and so never had an updated mVisibleRegion and so never used it during drawing.

WebRender fallback drawing has limited invalidation support and currently only
passes a rect to ComputeVisibility so it also wasn't taking advantage of this
optimization. This is also true of nsDisplayList::Paint.

In summary, we're not currently using this optimization and supporting it bloats
the display items. If we were to reintroduce it, I think it would make more sense
for the paint region to show up in the Paint function and not be stored in the
display item.

Differential Revision: https://phabricator.services.mozilla.com/D123791
2021-08-26 20:29:23 +00:00
Alexandru Michis dc7a2fbe2f Backed out changeset 9c2d20304eee (bug 1726708) for causing conflicts while backing out Bug 1724846 2021-08-26 22:50:37 +03:00
Jeff Muizelaar 4120284f9a Bug 1727774 - Remove unused RecomputeVisibility method. r=miko
This was previously used by FrameLayerBuilder, but that's gone now.

Differential Revision: https://phabricator.services.mozilla.com/D123771
2021-08-26 16:04:50 +00:00
Matt Woodrow d751b43176 Bug 1727489 - Remove PLayerTransaction. r=jrmuizel,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D123595
2021-08-26 04:59:57 +00:00
Botond Ballo 3ef87f649b Bug 1685146 - Add ActiveScrolledRoot::IsProperAncestor(). r=tnikkel
Depends on D123700

Differential Revision: https://phabricator.services.mozilla.com/D123701
2021-08-26 04:39:49 +00:00
Butkovits Atila c83e348e26 Backed out 2 changesets (bug 1727488, bug 1727489) for causing bustages on KnowsCompositor.cpp. CLOSED TREE
Backed out changeset 5a00db1b7a6a (bug 1727489)
Backed out changeset 13686567e748 (bug 1727488)
2021-08-26 04:49:16 +03:00
Matt Woodrow 0d4e9aa48a Bug 1727489 - Remove PLayerTransaction. r=jrmuizel,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D123595
2021-08-26 00:25:21 +00:00
Glenn Watson 7401f9f93e Bug 1726708 - Add stable key for spatial nodes r=gfx-reviewers,kvark
Add an interface (and update Gecko to provide) a stable unique
identifier for each spatial node that is consistent across
display lists.

Although this patch doesn't _do_ anything useful with this yet,
we'll use this in future to allow interning, persisting and caching
a lot more information related to primitives and clips.

For now, it just asserts that the calling code never supplies a
duplicate unique identifier - which will be useful to have running
in nightly for a couple of weeks before starting to make use of
these identifiers.

Differential Revision: https://phabricator.services.mozilla.com/D123177
2021-08-25 21:52:13 +00:00
Jonathan Kew ef07bb0d84 Bug 1725743 - Put the use of internal PDF destinations behind a pref, and disable by default due to possible cairo assertions. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D123650
2021-08-25 16:28:43 +00:00
Andi-Bogdan Postelnicu 2fc4f70e9b Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium
Automatically generated path that adds flag `REQUIRES_UNIFIED_BUILD = True` to `moz.build`
when the module governed by the build config file is not buildable outside on the unified environment.

This needs to be done in order to have a hybrid build system that adds the possibility of combing
unified build components with ones that are built outside of the unified eco system.

Differential Revision: https://phabricator.services.mozilla.com/D122345
2021-08-25 10:46:17 +00:00
Matt Woodrow 7755c29fd8 Bug 1727423 - Remove BasicLayerManager. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D123555
2021-08-25 07:35:17 +00:00