mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LibWeb: Add FlyString variants of get_element_by_id
Unfortunately we can't port these functions entirely over to FlyString from DeprecatedString as Document includes NonElementParentNode and has not yet been ported over to new AK string. In the mean time, this should help up in porting over NonElementParentNode itself.
This commit is contained in:
parent
b2f3aa1c76
commit
3e0849eb4f
Notes:
sideshowbarker
2024-07-17 07:09:53 +09:00
Author: https://github.com/shannonbooth
Commit: 3e0849eb4f
Pull-request: https://github.com/SerenityOS/serenity/pull/21024
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 13 additions and 2 deletions
|
@ -49,7 +49,7 @@ Optional<Gfx::PaintStyle const&> SVGGraphicsElement::svg_paint_computed_value_to
|
|||
auto const& url = paint_value->as_url();
|
||||
if (!url.fragment().has_value())
|
||||
return {};
|
||||
auto gradient = document().get_element_by_id(url.fragment()->to_deprecated_string());
|
||||
auto gradient = document().get_element_by_id(url.fragment().value());
|
||||
if (!gradient)
|
||||
return {};
|
||||
if (is<SVG::SVGGradientElement>(*gradient))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue