12021-05-16 Tim Nguyen <ntim@apple.com>
2
3 will-change: position should not create a containing block for position: fixed elements
4 https://bugs.webkit.org/show_bug.cgi?id=225443
5
6 Reviewed by NOBODY (OOPS!).
7
8 - Removed CSSPropertyPosition from createsContainingBlockForOutOfFlowPositioned() to not create a containing block
9 for the fixed position case.
10 - Added createsContainingBlockForAbsolutelyPositioned() with CSSPropertyPosition to still create a containing block
11 in the absolute position case.
12
13 Enabled WPT (which covers both cases): css/css-will-change/will-change-fixpos-cb-position-1.html
14
15 * rendering/RenderElement.h:
16 (WebCore::RenderElement::canContainAbsolutelyPositionedObjects const):
17 * rendering/style/WillChangeData.cpp:
18 (WebCore::WillChangeData::createsContainingBlockForAbsolutelyPositioned const):
19 (WebCore::WillChangeData::createsContainingBlockForOutOfFlowPositioned const):
20 * rendering/style/WillChangeData.h:
21