Bug 1727434 - Replace GetCrossDocParentFrame nsIFrame::IsVisibleConsideringAncestors with GetCrossDocParentFrameInProcess. r=tnikkel

IsVisibleConsideringAncestors has a PresShell::IsUnderHiddenEmbedderElement which
is representing ancestor's visibility state in different process (but only for
contents processes). so it doesn't need to walk up the frame tree across process
boundaries.

Differential Revision: https://phabricator.services.mozilla.com/D123556
This commit is contained in:
Hiroyuki Ikezoe 2021-08-24 23:33:07 +00:00
parent 85d4a5f4ed
commit 99412d3e2c

View File

@ -410,7 +410,7 @@ bool nsIFrame::IsVisibleConsideringAncestors(uint32_t aFlags) const {
if (parent) {
frame = parent;
} else {
parent = nsLayoutUtils::GetCrossDocParentFrame(frame);
parent = nsLayoutUtils::GetCrossDocParentFrameInProcess(frame);
if (!parent) break;
if ((aFlags & nsIFrame::VISIBILITY_CROSS_CHROME_CONTENT_BOUNDARY) == 0 &&