Re: Include out of viewport frames in display list

[email protected]
Newsgroups gmane.comp.mozilla.devel.layout
Message-ID <[email protected]>
On Monday, May 2, 2016 at 4:55:13 PM UTC-4, [email protected] wrote:
> Does it means I also have to modify nsDisplayList.h in order to add the flag to nsDisplayListBuilder? I'm still a bit unsure how to add a flag to nsDisplayListBuilder. 

Just add a new member variable, like mIgnoreVisibility (and a getter/setter for it, if it's not public).

> In my brief testing I noticed that overriding the pointer-events check in nsDisplayList::HitTest() allows me to also retrieve elements with pointer-events:none. Though strangely no iframes with pointer-events:none. Those are still left out.

Ah, there is a separate check for iframes here [1]!

> I made this screen recording to give an idea of my end goal: https://youtu.be/EtH1MMDorKA

The video is private, I can't access it.

Cheers,
Botond

[1] https://dxr.mozilla.org/mozilla-central/rev/369a5ee3a2880a4a98df3a00bf3db8d8f36b181b/layout/generic/nsSubDocumentFrame.cpp#379
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.