Update on what happened in WebKit in the week from November 23 to November 30.
Another exciting week with the regular handful of updates on the Layer-Based SVG Engine front, as well as new public API to control Global Privacy Control, a fix to critical memory pressure events, and a performance optimization to GTK and WPE ports.
Cross-Port 🐱
Allowed critical memory pressure events to bypass a hold-off period started by a non-critical memory pressure event. The hold-off period is there to avoid us spinning trying to free memory when that hasn't proven to be effective. However, when the criticality of the memory pressure event increases, we should end the hold-off period early.
Fixed missing mutation observer notifications when using moveBefore().
Added new public API that allows configuring whether to provide Global Privacy Control signalling to loaded websites (spec). A default policy can be set for web views at construction, and for each top-level page load by handling the WebKitWebView:decide-policy signal.
Graphics 🖼️
Fixed textPath and clip-path content in the Layer-Based SVG Engine (LBSE) ignoring the CSS transform-origin of the referenced element, so a CSS rotate() with a non-default transform-origin or with transform-box: fill-box turned around the wrong point.
Fixed scrollIntoView() for SVG text in the Layer-Based SVG Engine (LBSE), which applied the position of the enclosing <text> element twice and scrolled to the wrong place.
Fixed caret positions in SVG text using lengthAdjust="spacingAndGlyphs", where the complex text shaper ignored the glyph stretch, so clicks and selections landed on the wrong characters.
Fixed selection, caret and client rects of SVG text in the Layer-Based SVG Engine (LBSE), which applied the position of the <text> element twice. Selection highlighting, mouse selection, Range rects and <tspan> client rects are now correct.
Reduced repaints in the GTK and WPE compositor when an animated clip slides over content that stays in place, by damaging only the strips the clip uncovered or covered instead of the whole layer. On an i.MX8 with six canvases revealed by sliding clips, GPU time per frame dropped from about 14ms to 5ms and GPU load from about 85% to 30%.
Fixed the string offsets that the complex text shaper assigns to glyphs in right-to-left runs, which were mirrored and made SVG text place Arabic characters (and on GTK and WPE also Hebrew ones) at the wrong positions. This affected both SVG text layout and the SVG text DOM APIs.
Fixed the repaint rects of transformed SVG text in the Layer-Based SVG Engine (LBSE), which ignored the transform of a <text> element without a layer of its own, so for example the selection highlight was not repainted correctly.
That’s all for this week!