Bug 367994 - Map all SVG styles to all non-animation SVG elements r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D172590
This commit is contained in:
Robert Longson
2023-03-15 13:27:02 +00:00
parent 3d4740cab2
commit cf4a47d4ec
53 changed files with 84 additions and 702 deletions

View File

@@ -3233,8 +3233,7 @@ nsresult PresShell::GoToAnchor(const nsAString& aAnchorName, bool aScroll,
}
// If the target is an animation element, activate the animation
if (nsCOMPtr<SVGAnimationElement> animationElement =
do_QueryInterface(target)) {
if (auto* animationElement = SVGAnimationElement::FromNode(target.get())) {
animationElement->ActivateByHyperlink();
}