-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transform-style:preserve-3d doesn't work across display:contents ancestors #28077
transform-style:preserve-3d doesn't work across display:contents ancestors #28077
Conversation
EWS run on previous version of this PR (hash adf1737) |
adf1737
to
0a7f113
Compare
EWS run on previous version of this PR (hash 0a7f113) |
0a7f113
to
81763e2
Compare
EWS run on previous version of this PR (hash 81763e2) |
auto parent = flattenedParent(renderer().element()); | ||
if (parent && ancestor->renderer().element() == parent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess flattenedParent(renderer().element()) == ancestor->renderer().element()
would be sufficient but ofc checking against parent is less error prone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(totally not suggesting to change it:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess I was worried about nullptr == nullptr
, not sure how probable that actually is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, probably close to 0, but then again being defensive here is not a bad thing.
81763e2
to
d8e6277
Compare
β¦stors https://bugs.webkit.org/show_bug.cgi?id=273627 <rdar://127468969> Reviewed by Alan Baradlay. When looking for the ancestor element to see if it has 'preserve-3d', any intermediate ancestors with display:contents should be skipped. * LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/transform3d-preserve3d-014-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/transform3d-preserve3d-014.html: Added. * LayoutTests/platform/mac/TestExpectations: * Source/WebCore/rendering/RenderLayer.cpp: (WebCore::flattenedParent): (WebCore::RenderLayer::ancestorLayerIsDOMParent const): Canonical link: https://commits.webkit.org/278499@main
d8e6277
to
adf1f00
Compare
Committed 278499@main (adf1f00): https://commits.webkit.org/278499@main Reviewed commits have been landed. Closing PR #28077 and removing active labels. |
adf1f00
d8e6277
π§ͺ mac-wk2-stress