[webkit-changes] [WebKit/WebKit] 97f84b: Do not synchronously measure SVG text every time i...
Vitor Roriz
noreply at github.com
Thu Dec 7 09:41:06 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 97f84b2e6bd16d246a6006c38f434cbdf441b0d7
https://github.com/WebKit/WebKit/commit/97f84b2e6bd16d246a6006c38f434cbdf441b0d7
Author: Vitor Roriz <vitor.roriz at 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
More information about the webkit-changes
mailing list