Bug 1724904. Send resolution to oopifs with webrender. r=mattwoodrow

Differential Revision: https://phabricator.services.mozilla.com/D122212
This commit is contained in:
Timothy Nikkel 2021-08-10 23:42:43 +00:00
Родитель 91fed01266
Коммит 33ea672136
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -51,6 +51,7 @@
#include "mozilla/layers/WebRenderUserData.h"
#include "mozilla/layers/WebRenderScrollData.h"
#include "mozilla/layers/RenderRootStateManager.h"
#include "mozilla/layers/StackingContextHelper.h" // for StackingContextHelper
#include "mozilla/ProfilerLabels.h"
using namespace mozilla;
@ -1421,9 +1422,10 @@ bool nsDisplayRemote::CreateWebRenderCommands(
visibleRect -= contentRect.TopLeft();
// Generate an effects update notifying the browser it is visible
// TODO - Gather scaling factors
gfx::Size scale = aSc.GetInheritedScale();
aDisplayListBuilder->AddEffectUpdate(
remoteBrowser, EffectsInfo::VisibleWithinRect(visibleRect, 1.0f, 1.0f));
remoteBrowser,
EffectsInfo::VisibleWithinRect(visibleRect, scale.width, scale.height));
// Create a WebRenderRemoteData to notify the RemoteBrowser when it is no
// longer visible