Bug 1917669 - Document the purpose of nsDisplayList::mIsRelativeToLayoutViewport. r=hiro DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D221536
This commit is contained in:
Botond Ballo 2024-09-09 21:09:47 +00:00
parent 1f769c3782
commit d155669472

View File

@ -441,6 +441,13 @@ class nsDisplayListBuilder {
* Get the scrollframe to ignore, if any.
*/
nsIFrame* GetIgnoreScrollFrame() { return mIgnoreScrollFrame; }
/**
* Set for display lists built for hit-testing a point that is already
* relative to the layout viewport. Display lists with this flag set
* do not build an async zoom container (which would transform coordinates
* relative to the visual viewport into coordinates relative to the
* layout viewport during hit-testing).
*/
void SetIsRelativeToLayoutViewport();
bool IsRelativeToLayoutViewport() const {
return mIsRelativeToLayoutViewport;