Update on what happened in WebKit in the week from November 9 to November 16.
The bag of updates this week is composed of improvements to click events generation, improved scale factor and fixed rendering of SVG images, and the introduction of the new ATrace backend for performance analysis on WPE Android.
Cross-Port ๐ฑ
Taps now correctly generate click events when touchmove is prevented, as long as movement stays within the tap threshold.
Graphics ๐ผ๏ธ
Made SVG images use the device scale factor of the document drawing them, instead of always rendering at 1x. On high-DPI displays, resolution media queries inside the image now match the real display, and HTML content in <foreignObject> is now aligned to the display's actual pixels and its CSS filters render at full resolution.
Fixed masks and patterns going stale after their element is scaled or resized in the Layer-Based SVG Engine (LBSE). Their cached images are now kept per element and scale and are dropped when the element's bounds change, so an element painted at several scales (as inside nested patterns) gets a correctly sized image for each scale.
WPE WebKit ๐
WPE Android โ ๐ค
Adaptation of WPE WebKit targeting the Android operating system.
Added an ATrace backend for performance analysis on WPE Android. Until now the port built with Sysprof capture disabled, so every WTF::tracePoint() and signpost compiled to nothing; now they land in the same systrace/Perfetto timeline as SurfaceFlinger, input dispatch, and the scheduler. The compositor's FPS counter is also computed while ATrace is on. The backend is selected with the new USE_ATRACE_CAPTURE build option, which is on by default when building for Android and replaces Sysprof capture there.
Thatโs all for this week!