gecko-dev/layout
Timothy Nikkel 9e235485ec Bug 1749286. Remove redundant calls marking remote browsers as hidden. r=miko
Remote browsers are fully hidden by default. The only place we mark them as visible is in nsDisplayRemote::CreateWebRenderCommands

https://searchfox.org/mozilla-central/rev/b3933df6e119bd6caf5d9e5868670348ec26dee3/layout/generic/nsSubDocumentFrame.cpp#1363

and we create a WebRenderUserData item there that marks the remote browser hidden in its destructor

https://searchfox.org/mozilla-central/rev/b3933df6e119bd6caf5d9e5868670348ec26dee3/gfx/layers/wr/WebRenderUserData.cpp#426

So that will mark it hidden when it's no longer visible. And in fact we destroy the WebRenderUserData table for the frame at both call sites that we are removing in this patch. So there shouldn't be any change with this patch.


I think the way this redundancy came about was because the code was first added for the layers backend in

https://hg.mozilla.org/integration/mozilla-inbound/rev/b81cf35a573e

and that of course doesn't user WebRenderUserdata so it needed to mark remote browsers hidden in its own way.

And then for webrender in

https://hg.mozilla.org/integration/mozilla-inbound/rev/ac0ad5d8e9a5

And then when FrameLayerBuilder was removed they got put together directly

https://hg.mozilla.org/mozilla-central/rev/a95f6a0cd9eb


The reason this is important is for bug 1737503. In that bug we destroy and recreate a remote iframe to handle a style change. If we mark a remote browser as hidden we will draw it as blank for one frame. So instead we want to delay this until the end of the next frame so we don't do that.

Differential Revision: https://phabricator.services.mozilla.com/D135575
2022-01-14 08:47:52 +00:00
..
base Bug 1745113 Part 4 - Change AppUnitWidthOfString to take a Span parameter. r=jfkthame 2022-01-13 18:36:04 +00:00
build Bug 1707963: Let the PermissionManager be initialized lazily but not after shutdown started. r=permissions-reviewers,timhuang,janv 2021-12-14 18:39:41 +00:00
docs Bug 1735445 - Add a few more examples to the CSS Gap Decorations draft spec. NPOTB DONTBUILD 2021-12-18 16:58:27 +00:00
forms Bug 1745113 Part 5 - Make grapheme cluster break iterators implement SegmentIteratorUtf16, and adapt the callers. r=necko-reviewers,jfkthame,kershaw 2022-01-13 18:36:04 +00:00
generic Bug 1749286. Remove redundant calls marking remote browsers as hidden. r=miko 2022-01-14 08:47:52 +00:00
inspector Bug 1746683 - Remove hwba since it's not a thing (hwb function supports alpha). 2021-12-20 02:53:31 +00:00
ipc Bug 1728914 - Convert a few uses of AsLayerManager to use WebRenderLayerManager. r=gfx-reviewers,aosmond 2021-09-05 02:16:38 +00:00
mathml Bug 1747922 - Rename StyleMathMLMathVariant -> StyleMathVariant. 2021-12-30 02:35:54 +01:00
media
painting Bug 1748216 - Ensure that we invalidate previously decoded images without a surface ready. r=jrmuizel 2022-01-04 22:01:26 +00:00
printing Bug 1663722: Make nsPageSequenceFrame gracefully handle SizeToContent calls. r=emilio 2022-01-13 06:08:51 +00:00
reftests Backed out changeset 68e326b1f0de (bug 1746662) for causing reftest failures 2021-12-22 09:17:42 +02:00
style Bug 1745113 Part 3 - Change CountGraphemeClusters() to take a Span parameter. r=jfkthame 2022-01-13 18:36:04 +00:00
svg Bug 1743761 - Ensure we invalidate substituted images when the preferred size is ready. r=tnikkel 2021-12-03 03:14:01 +00:00
tables Bug 1741148 - part 3: Make users of nsINode::ComputeIndexOf_Deprecated() use nsINode::ComputeIndexOf() if the result is not set to int32_t nor return as int32_t r=smaug 2021-12-09 11:55:36 +00:00
tools Bug 1744091 - Update test harnesses to run with fission by default, except on android; r=perftest-reviewers,releng-reviewers,jmaher,AlexandruIonescu 2022-01-07 20:30:45 +00:00
xul Bug 1745113 Part 5 - Make grapheme cluster break iterators implement SegmentIteratorUtf16, and adapt the callers. r=necko-reviewers,jfkthame,kershaw 2022-01-13 18:36:04 +00:00
moz.build Bug 1728240 - Remove DrawTargetWrapAndRecord and gfx.2d.recording pref. r=jrmuizel 2021-08-31 02:03:58 +00:00