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

@@ -119,7 +119,6 @@
#undef NOISY_FIRST_LETTER
#include "nsMathMLParts.h"
#include "mozilla/dom/SVGAnimationElement.h"
#include "mozilla/dom/SVGFilters.h"
#include "mozilla/dom/SVGTests.h"
#include "mozilla/SVGGradientFrame.h"
@@ -4930,8 +4929,7 @@ nsCSSFrameConstructor::FindSVGData(const Element& aElement,
}
// We don't need frames for animation elements
if (nsCOMPtr<SVGAnimationElement> animationElement =
do_QueryInterface(const_cast<Element*>(&aElement))) {
if (aElement.IsSVGAnimationElement()) {
return &sSuppressData;
}