mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Remove redundant SVG presentation attribute handling
This commit is contained in:
parent
884b7fcbf5
commit
dab994c4f3
Notes:
github-actions[bot]
2025-10-20 11:39:33 +00:00
Author: https://github.com/tcl3
Commit: dab994c4f3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6448
Reviewed-by: https://github.com/AtkinsSJ ✅
8 changed files with 0 additions and 117 deletions
|
|
@ -33,22 +33,6 @@ void SVGViewElement::visit_edges(Visitor& visitor)
|
|||
SVGFitToViewBox::visit_edges(visitor);
|
||||
}
|
||||
|
||||
bool SVGViewElement::is_presentational_hint(FlyString const& name) const
|
||||
{
|
||||
if (Base::is_presentational_hint(name))
|
||||
return true;
|
||||
|
||||
return first_is_one_of(name,
|
||||
SVG::AttributeNames::viewBox,
|
||||
SVG::AttributeNames::preserveAspectRatio);
|
||||
}
|
||||
|
||||
void SVGViewElement::apply_presentational_hints(GC::Ref<CSS::CascadedProperties> cascaded_properties) const
|
||||
{
|
||||
Base::apply_presentational_hints(cascaded_properties);
|
||||
auto parsing_context = CSS::Parser::ParsingParams { document(), CSS::Parser::ParsingMode::SVGPresentationAttribute };
|
||||
}
|
||||
|
||||
void SVGViewElement::attribute_changed(FlyString const& name, Optional<String> const& old_value, Optional<String> const& value, Optional<FlyString> const& namespace_)
|
||||
{
|
||||
Base::attribute_changed(name, old_value, value, namespace_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue