mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
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:
parent
85d4a5f4ed
commit
99412d3e2c
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user