mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibWeb: Avoid dynamic_cast in DOM::Document::is_decoded_svg()
This commit is contained in:
parent
ce263eaf78
commit
bbef0e8375
Notes:
github-actions[bot]
2025-04-18 12:46:52 +00:00
Author: https://github.com/awesomekling
Commit: bbef0e8375
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4395
3 changed files with 5 additions and 1 deletions
|
@ -6033,7 +6033,7 @@ void Document::for_each_shadow_root(Function<void(DOM::ShadowRoot&)>&& callback)
|
|||
|
||||
bool Document::is_decoded_svg() const
|
||||
{
|
||||
return is<Web::SVG::SVGDecodedImageData::SVGPageClient>(page().client());
|
||||
return page().client().is_svg_page_client();
|
||||
}
|
||||
|
||||
// https://drafts.csswg.org/css-position-4/#add-an-element-to-the-top-layer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue