Bug 1820757 - SVGImageFrame::NotifySVGChanged should not rely on the base class implementation but instead do nothing at all r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D171856
This commit is contained in:
Robert Longson 2023-03-13 16:57:30 +00:00
parent 86dbf59d2b
commit 60ec046ced
2 changed files with 6 additions and 0 deletions

View File

@ -824,6 +824,11 @@ uint16_t SVGImageFrame::GetHitTestFlags() {
return flags;
}
void SVGImageFrame::NotifySVGChanged(uint32_t aFlags) {
MOZ_ASSERT(aFlags & (TRANSFORM_CHANGED | COORD_CONTEXT_CHANGED),
"Invalidation logic may need adjusting");
}
//----------------------------------------------------------------------
// SVGImageListener implementation

View File

@ -59,6 +59,7 @@ class SVGImageFrame final : public SVGGeometryFrame, public nsIReflowCallback {
const nsIntRect* aDirtyRect = nullptr) override;
nsIFrame* GetFrameForPoint(const gfxPoint& aPoint) override;
void ReflowSVG() override;
void NotifySVGChanged(uint32_t aFlags) override;
// SVGGeometryFrame methods:
uint16_t GetHitTestFlags() override;