-
Notifications
You must be signed in to change notification settings - Fork 1.7k
thesession.org: [content-visibility] SVG text not shown in content-visibility: auto subtree. #36342
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
Conversation
|
EWS run on previous version of this PR (hash 7fb5942) |
7fb5942 to
36256da
Compare
|
EWS run on previous version of this PR (hash 36256da)
|
36256da to
c415157
Compare
|
EWS run on previous version of this PR (hash c415157)
|
c415157 to
b2bd93d
Compare
|
EWS run on previous version of this PR (hash b2bd93d) |
b2bd93d to
6610903
Compare
|
EWS run on previous version of this PR (hash 6610903)
|
6610903 to
5c590ce
Compare
|
EWS run on previous version of this PR (hash 5c590ce) |
5c590ce to
4354e13
Compare
|
EWS run on current version of this PR (hash 4354e13) |
…sibility: auto subtree. https://bugs.webkit.org/show_bug.cgi?id=281570 rdar://138040315 Reviewed by Alan Baradlay. RenderSVGText expects to be able to perform some sort of initialization on its first pass of layout by checking everHadLayout(). Unfortunately, if this renderer is in a content-visibility: auto subtree, the content-visibility logic will descend down that subtree, clearing layout on all the renderers, which ends up setting the "ever had layout," bit. This ends up confusing RenderSVGText since it thinks it has gone through layout and assumes that it had performed this initialization, which can result in us not computing the proper geometry for the content. To address this, let's keep track of a bit on RenderSVGText that indicates if it has ever performed a full pass of layout. We can use this in the same places we were previously using everHadLayout(). * LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-auto-svg-text-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-contain/content-visibility/content-visibility-auto-svg-text.html: Added. * Source/WebCore/rendering/svg/RenderSVGText.cpp: (WebCore::RenderSVGText::shouldHandleSubtreeMutations const): (WebCore::RenderSVGText::subtreeTextDidChange): (WebCore::RenderSVGText::layout): * Source/WebCore/rendering/svg/RenderSVGText.h: Canonical link: https://commits.webkit.org/286447@main
4354e13 to
84a4a18
Compare
|
Committed 286447@main (84a4a18): https://commits.webkit.org/286447@main Reviewed commits have been landed. Closing PR #36342 and removing active labels. |
84a4a18
4354e13