Backed out changeset d90ec14fc8e3 (bug 1817608) for causing reftest failures in 1329849-1.svg CLOSED TREE

This commit is contained in:
Cristian Tuns 2023-02-19 18:24:00 -05:00
Родитель 8f72da76f1
Коммит f98b8cdeb7
1 изменённых файлов: 11 добавлений и 4 удалений

Просмотреть файл

@ -128,11 +128,18 @@ SVGFilterFrame* SVGFilterFrame::GetReferencedFilter() {
this->mNoHRefURI = aHref.IsEmpty();
};
return do_QueryFrame(SVGObserverUtils::GetAndObserveTemplate(this, GetHref));
nsIFrame* tframe = SVGObserverUtils::GetAndObserveTemplate(this, GetHref);
if (tframe) {
LayoutFrameType frameType = tframe->Type();
if (frameType == LayoutFrameType::SVGFilter) {
return static_cast<SVGFilterFrame*>(tframe);
}
// We don't call SVGObserverUtils::RemoveTemplateObserver and set
// `mNoHRefURI = false` here since we want to be invalidated if the ID
// specified by our href starts resolving to a different/valid element.
}
// We don't call SVGObserverUtils::RemoveTemplateObserver and set
// `mNoHRefURI = false` on failure since we want to be invalidated if the ID
// specified by our href starts resolving to a different/valid element.
return nullptr;
}
nsresult SVGFilterFrame::AttributeChanged(int32_t aNameSpaceID,