diff options
author | Andreas Kling <kling@serenityos.org> | 2022-04-10 19:05:12 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-10 21:35:55 +0200 |
commit | e81594d9a1528c57d5c94b475e11efe26a324766 (patch) | |
tree | 7c6f70dcfc6bde1e46dc00bd1c9a345931a799b5 /AK/NonnullRefPtrVector.h | |
parent | c6e79124c7f479da5bb2b97cc59868763d013d51 (diff) | |
download | serenity-e81594d9a1528c57d5c94b475e11efe26a324766.zip |
LibWeb: Sketch out a very basic SVG <clipPath> element
This element doesn't actually support anything at the moment, but it
still massively speeds up painting performance on Wikipedia! :^)
How? Because we no longer paint SVG <path> elements found inside
<clipPath> elements. SVGClipPathElement::create_layout_node() returns
nullptr which stops the layout tree builder from recursing further into
the subtree, and so the <path> element never gets a layout or paint box.
Mousing over Wikipedia now barely break 50% CPU usage on my machine :^)
Diffstat (limited to 'AK/NonnullRefPtrVector.h')
0 files changed, 0 insertions, 0 deletions