Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Ensure that the top layer is always anchored to the RenderView
https://bugs.webkit.org/show_bug.cgi?id=231292 Reviewed by Simon Fraser. A fixed positioned block level box is not necessarily anchored to the RenderView (see canContainFixedPositionObjects). This patch ensures that we skip those ancestors and return the RenderView as the containing block for the top layer content. https://fullscreen.spec.whatwg.org/#new-stacking-layer "If the top layer position property computes to fixed, its containing block is the viewport, and the initial containing block otherwise." * rendering/RenderObject.cpp: (WebCore::RenderObject::containingBlock const): (WebCore::containerForElement): Canonical link: https://commits.webkit.org/242585@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information