Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 97f84b2e6bd16d246a6006c38f434cbdf441b0d7 https://github.com/WebKit/WebKit/commit/97f84b2e6bd16d246a6006c38f434cbdf441b0d7 Author: Vitor Roriz <vitor.ro...@apple.com> Date: 2023-12-07 (Thu, 07 Dec 2023)
Changed paths: M Source/WebCore/rendering/svg/RenderSVGText.cpp Log Message: ----------- Do not synchronously measure SVG text every time it changes https://bugs.webkit.org/show_bug.cgi?id=264669 rdar://problem/118451741 Reviewed by Simon Fraser. This is a optimization done in the Blink fork https://chromium.googlesource.com/chromium/src.git/+/34c351416a102e4ee510badb86fbc4f57604ccd0 and found by Ahmad Saleem. If SVG text is set multiple times in a row, we would measure text synchronously for every set, even though just the last measurement would count. This patch marks it as "need layout", so we measure text in the next layout. * Source/WebCore/rendering/svg/RenderSVGText.cpp: (WebCore::RenderSVGText::subtreeTextDidChange): Canonical link: https://commits.webkit.org/271678@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes